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

eZComments : Fatal error during add comment on a untranslated content

    XMLWordPrintable

Details

    Description

      Hi,

      On a siteaccess ShowUntranslatedObjects configuration parameter is enabled :

      siteaccess/fre/site.ini

      [RegionalSettings]
      Locale=fre-FR
      ContentObjectLocale=fre-FR
      ShowUntranslatedObjects=enabled

      The content language is in English, but it is displayed on the french web site. The comment form is visible but after the user push the Add comment button, the server returns a Fatal error :
      Fatal error: eZ Publish did not finish its request

      The execution of eZ Publish was abruptly ended. Contact website owner with current url and what you did, and owner will be able to debug the issue further.

      To fix this in the PHP file ezcomPostHelper.php, the dataMap should be fetch antother time with the another languageCode, for instance eng-GB.
      [ezcomPostHelper.php] line 47 : $dataMap = $contentObject->fetchDataMap( false, 'eng-GB' );

      Or to find the attribute data_type_string their are other solutions :

      • contentclass
      • passing the parameter in the POST form ....

      Regards
      Olivier

      Steps to reproduce

      Create a new siteaccess with antother language, activate the ShowUntranslatedObjects parameter.
      Don't create a translation of your content.
      Try to create a new comment, you will get the error.

      Attachments

        Activity

          People

            chen chen
            op op
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: