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

Upgrading from 5.3 to 5.4 clearing cache script does not work with postgreSQL

    XMLWordPrintable

    Details

      Description

      After upgrading from 5.3 to 5.4 when running the script for clearing caches, as described on Step 7, https://doc.ez.no/pages/viewpage.action?title=Upgrading+from+5.3+to+5.4&spaceKey=EZP#Upgradingfrom5.3to5.4-Step7:Clearthecaches,

      $ php bin/php/ezcache.php --clear-all --purge
      
      PHP fails with Call to undefined function, mysql_escape_string().
      
      Stack trace:
      
      PHP Fatal error:  Call to undefined function mysql_escape_string() in /var/www/ezpublish5/ezpublish_legacy/lib/ezdb/classes/ezmysqlidb.php on line 844
      PHP Stack trace:
      PHP   1. {main}() /var/www/ezpublish5/ezpublish_legacy/bin/php/ezcache.php:0
      PHP   2. eZCacheHelper->purgeItems() /var/www/ezpublish5/ezpublish_legacy/bin/php/ezcache.php:149
      PHP   3. eZCacheHelper->internalClear() /var/www/ezpublish5/ezpublish_legacy/lib/ezutils/classes/ezcachehelper.php:36
      PHP   4. eZCache::clearItem() /var/www/ezpublish5/ezpublish_legacy/lib/ezutils/classes/ezcachehelper.php:129
      PHP   5. call_user_func_array() /var/www/ezpublish5/ezpublish_legacy/kernel/classes/ezcache.php:493
      PHP   6. eZCache::purgeImageAlias() /var/www/ezpublish5/ezpublish_legacy/kernel/classes/ezcache.php:493
      PHP   7. eZContentClassAttribute::fetchList() /var/www/ezpublish5/ezpublish_legacy/kernel/classes/ezcache.php:570
      PHP   8. eZPersistentObject::fetchObjectList() /var/www/ezpublish5/ezpublish_legacy/kernel/classes/ezcontentclassattribute.php:432
      PHP   9. eZPersistentObject::conditionText() /var/www/ezpublish5/ezpublish_legacy/kernel/classes/ezpersistentobject.php:850
      PHP  10. eZPersistentObject::conditionTextByRow() /var/www/ezpublish5/ezpublish_legacy/kernel/classes/ezpersistentobject.php:614
      PHP  11. eZMySQLiDB->escapeString() /var/www/ezpublish5/ezpublish_legacy/kernel/classes/ezpersistentobject.php:691
      

        Attachments

          Activity

            People

            Assignee:
            Unassigned
            Reporter:
            pedro.resende-obsolete@ez.no Pedro Resende (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: