Uploaded image for project: 'eZ Publish / Platform'
  1. eZ Publish / Platform
  2. EZP-19526

(tc-54)(eZ Survey) Adding a 'related object' attributa to a survey raises a fatal error

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Critical Critical
    • Resolution: Fixed
    • Affects Version/s: None
    • Labels:
      None
    • Environment:

      Operating System: RHEL 6.2
      PHP Version: 5.3.3
      Database and version: Mysql 5.1.52
      Browser (and version): Firefox 13.0

      July 10th build

      Description

      Hi
      When i try to create a Survey and add a 'related object' attribute, a fatal error is raised.

      Fatal error: Call to a member function exitStatus() on a non-object in /var/www/apache2php53/ezp/app/ezpublish_testsystem/.run/extension/ezsurvey/modules/survey/classes/ezsurveyrelatedobject.php on line 77 503 Service UnavailableFatal error: The web server did not finish its request
       
      The execution of eZ Publish was abruptly ended, the debug output is present below.
      

      And my var/log/errors.log has the following:

      [ Jul 12 2012 15:30:43 ] [192.168.2.40] eZINI::variable:
      Undefined group: 'ImageDataTypeSettings' in site.ini
      

      Steps to reproduce

      Prepare your survey using setup wizard
      -Log in as admin in plain admin interface
      -Click "Survey" in top menu
      -Click "Automatic" button
      -Click "Next" button
      -Click "Create new" button
      -Click "Content structure" in top menu
      -Create a folder named "Survey data"
      -Click "Survey" in top menu
      -Click "Browse" button
      -Click "Content structure" in top menu
      -Select "Survey data" and click Select button
      -Click "Next" button
       
      Create a survey
      Click "Content structure" in top menu
      Create a new "Survey" object
           Name : Test survey
      Create a new "related object"
      

      The error occur after last step described above

        Issue Links

          Activity

          Hide
          Paulo Cardiga added a comment -

          Have had the same error on August 27th with message:

          Fatal error: Call to a member function exitStatus() on a non-object in /var/www/apache2php53/ezp/app/ezpublish_testsystem/.run/extension/ezsurvey/modules/survey/classes/ezsurveyrelatedobject.php on line 77 503 Service UnavailableFatal error: The web server did not finish its request
           
          The execution of eZ Publish was abruptly ended, the debug output is present below.
          

          Below, i have had no errors, but a php notice:

          Notice: PHP: E_NOTICE
          Undefined index: module in /var/www/apache2php53/ezp/app/ezpublish_testsystem/.run/extension/ezsurvey/modules/survey/classes/ezsurveyrelatedobject.php on line 71
           
          the var/log/error.log do not registered any message for this problem.
          
          

          Show
          Paulo Cardiga added a comment - Have had the same error on August 27th with message: Fatal error: Call to a member function exitStatus() on a non-object in /var/www/apache2php53/ezp/app/ezpublish_testsystem/.run/extension/ezsurvey/modules/survey/classes/ezsurveyrelatedobject.php on line 77 503 Service UnavailableFatal error: The web server did not finish its request   The execution of eZ Publish was abruptly ended, the debug output is present below. Below, i have had no errors, but a php notice: Notice: PHP: E_NOTICE Undefined index: module in /var/www/apache2php53/ezp/app/ezpublish_testsystem/.run/extension/ezsurvey/modules/survey/classes/ezsurveyrelatedobject.php on line 71   the var/log/error.log do not registered any message for this problem.
          Hide
          Romain Bremaud added a comment -

          Hello,

          I have the same bug in the 2012.8 cummunity project.
          I replace in ezsurveyrelatedobject.php and in datatypes/ezsurvey/ezsurveytype.php all the $GLOBALS['module'] by $GLOBALS['eZRequestedModule'] and it's work.

          Show
          Romain Bremaud added a comment - Hello, I have the same bug in the 2012.8 cummunity project. I replace in ezsurveyrelatedobject.php and in datatypes/ezsurvey/ezsurveytype.php all the $GLOBALS ['module'] by $GLOBALS ['eZRequestedModule'] and it's work.
          Show
          Patrick Allaert (Inactive) added a comment - https://github.com/ezsystems/ezsurvey/pull/12
          Show
          Patrick Allaert (Inactive) added a comment - - edited Fixed in: eZ Survey master: https://github.com/ezsystems/ezsurvey/commit/9b37e13fde44ff9537a708e0ab2290e6b5c087f5 eZ Survey master (merge): https://github.com/ezsystems/ezsurvey/commit/51d73ac4c066c9512dd3d5b79f1cd96f1e41258b eZ Survey 2.5: https://github.com/ezsystems/ezsurvey/commit/e128320b9550e6d189a424f93b17ccf4fb1e7ab6 eZ Survey 2.4: https://github.com/ezsystems/ezsurvey/commit/af4ccfb1718a0eab32511d6cbd9a3e91a811f2df eZ Survey 2.0: https://github.com/ezsystems/ezsurvey/commit/ba78ed813d3fe1d766e1876bb3a7c704521ae7d9
          Hide
          Patrick Allaert (Inactive) added a comment -

          Merging + solving conflicts

          Show
          Patrick Allaert (Inactive) added a comment - Merging + solving conflicts
          Hide
          Filipe Dobreira (Inactive) added a comment -

          Approved by QA.

          Show
          Filipe Dobreira (Inactive) added a comment - Approved by QA.

            People

            • Assignee:
              Unassigned
              Reporter:
              Paulo Cardiga
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 2 hours, 5 minutes
                2h 5m