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

warning when storing expiry cache on shutdown

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Critical Critical
    • Resolution: Fixed
    • Affects Version/s: 5.3-dev
    • Fix Version/s: Customer request, 5.2, 5.3
    • Component/s: None
    • Labels:
      None
    • Environment:

      eZ Publish legacy master @312dda9, apache2, mod_php. Calling /api/contentstaging/v1/nodes/2.

      Description

      When expiry cache is stored by eZExpiryHandler::shutdown(), a warning can be thrown:

      Warning: fopen(var/cache/ezfile-tmp.3f1ae5fbb0d9baf4466c6919e98530c4): failed to open stream: Permission denied in /home/bertrand/www/ezpublish-legacy/lib/ezfile/classes/ezfile.php on line 64
      

      As explained in the register_shutdown_function() documentation, this happens because on some servers (apache), the working directory can be unset, or set to a wrong value, in shutdown handlers. In my case, the directory was set to "/", leading to an fopen warning when trying to save expiry cache.

        Issue Links

          Activity

          Hide
          Bertrand Dunogier added a comment - - edited
          Show
          Bertrand Dunogier added a comment - - edited Pull-request: ezsystems/ezpublish-legacy#955 .
          Show
          André Rømcke added a comment - Merged in https://github.com/ezsystems/ezpublish-legacy/commit/1ee4a7d73d0759ccb9057127174610746a72e816
          Hide
          Bertrand Dunogier added a comment -

          They are the same yes. Yours is a duplicate.

          Show
          Bertrand Dunogier added a comment - They are the same yes. Yours is a duplicate.
          Hide
          Pedro Resende (Inactive) added a comment -

          Bertrand Dunogier: Apparently it only fixes the errors present in error log, but the message

          Object 62 to be synchronised to feed content: failure (HTTP error 404 (Not Found)) [Event 3]

          is still present

          Show
          Pedro Resende (Inactive) added a comment - Bertrand Dunogier : Apparently it only fixes the errors present in error log, but the message Object 62 to be synchronised to feed content: failure (HTTP error 404 (Not Found)) [Event 3] is still present
          Hide
          Pedro Resende (Inactive) added a comment -

          Tested and approved by Q.A.

          Show
          Pedro Resende (Inactive) added a comment - Tested and approved by Q.A.
          Hide
          Pedro Resende (Inactive) added a comment -

          Tested and approved by Q.A. on eZ Publish 5.2

          Show
          Pedro Resende (Inactive) added a comment - Tested and approved by Q.A. on eZ Publish 5.2

            People

            • Assignee:
              Unassigned
              Reporter:
              Bertrand Dunogier
            • Votes:
              0 Vote for this issue
              Watchers:
              8 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 - 3 hours, 50 minutes
                3h 50m