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

[eZ Cluster mode] PHP Warnings in ezphpcreator.php and ezexpiryhandler.php

    XMLWordPrintable

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Medium Medium
    • 3.9.1
    • 3.8.6
    • Misc
    • None
    • Operating System: Linux Debian/sarge
      PHP Version: 4.4.4
      Database and version: MySQL 4.1.15
      Browser (and version): All

    Description

      In a clusterized configuration, on a live server, we can see some of the following errors in apache error log :

      [Thu Dec  7 11:32:57 2006] [error] PHP Warning:  restore(var/femmeactuelle/cache/sortkey_ez_femmeactuelle_formation.php) [<a href='function.restore'>function.restore</a>]: failed to open stream: No such file or directory in /var/www/ezpublish.formation/lib/ezutils/classes/ezphpcreator.php on line 838
      [Thu Dec  7 11:32:57 2006] [error] PHP Warning:  restore() [<a href='function.include'>function.include</a>]: Failed opening 'var/femmeactuelle/cache/sortkey_ez_femmeactuelle_formation.php' for inclusion (include_path='.:/usr/share/pear:/var/www/ezpublish.formation/') in /var/www/ezpublish.formation/lib/ezutils/classes/ezphpcreator.php on line 838
      [...]
      [Thu Dec  7 11:37:24 2006] [error] PHP Warning:  restore(var/femmeactuelle/cache/expiry.php) [<a href='function.restore'>function.restore</a>]: failed to open stream: No such file or directory in /var/www/ezpublish/lib/ezutils/classes/ezexpiryhandler.php on line 66
      [Thu Dec  7 11:37:24 2006] [error] PHP Warning:  restore() [<a href='function.include'>function.include</a>]: Failed opening 'var/femmeactuelle/cache/expiry.php' for inclusion (include_path='.:/usr/share/pear:/var/www/ezpublish/') in /var/www/ezpublish/lib/ezutils/classes/ezexpiryhandler.php on line 66
      

      Other scripts like ezuser.php on line 1343.

      The problem seems to come from the fact you delete the local file in var after use. The problem is that, with multi user, the file can be deleted just before it is used.

      It's not always the case, but on my config, it happens 2 or 3 times per minute.

      Is it necessary to delete the file after use since it is restored each time it is necessary.

      Steps to reproduce

      Only happens on live servers.

      Attachments

        Activity

          People

            unknown unknown
            zibok zibok
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: