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

/content/treemenu throws PHP notices with nginx-1.6.2

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: Medium
    • Resolution: Unresolved
    • Affects Version/s: 2014.11
    • Fix Version/s: None
    • Labels:
    • Environment:

      fedora 21
      nginx-1.6.2-4.fc21.x86_64
      php-5.6.6-1.fc21.x86_64 (php-fpm)
      ezversion 2014.11

      Description

      The same warning / problem with admin treemenu descripted in
      @see Ticket https://jira.ez.no/browse/EZP-22982

      The current version of ezsys.php not working for our setup with nginx and php-fpm on fedora 21.
      We get the warning descriped in EZP-22982

      >>

      With display_errors set to E_ALL and nginx, the content tree menu isn't shown in the backend (only the "Internal error" message).

      Calling the requested url directly (/content/treemenu/2/.... reveals a JSON encoded PHP notice:

      Warning: strpos(): Empty needle in /var/www/ezpublish/ezpublish_legacy/lib/ezutils/classes/ezsys.php line 1231"

      I modified this line in the ezSys class locally, by not only comparing to /{$index}, but also to $index directly and it worked again.
      >>>

      no json output ist produced for content tree menu in the backend.
      For us the first patch from Jérôme Vieilledent ist working
      if ( $phpSelf === $index || $phpSelf === "/{$index}" )
      @see https://github.com/ezsystems/ezpublish-legacy/commit/d75874b892a8fa2f79c14e581a7ab09b129ad65c

        Attachments

          Activity

            People

            Assignee:
            Unassigned
            Reporter:
            felix.jac Felix Woldt
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Dates

              Created:
              Updated: