Uploaded image for project: 'phpBB'
  1. phpBB
  2. PHPBB-15796

Database update with 3.2.3 'Full Package' has PHP Warning - memcache

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Minor Minor
    • None
    • 3.2.3
    • Update system
    • Host: localhost
      OS: Linux (Fedora 28)
      Database: PostgreSQL 10.5
      PHP version: 7.1.17

      I am updating from 3.2.2 to 3.2.3 with the 'Full Package' install as described in Knowledge Base > Updating 3.2.x. When I update the database from the command line, a PHP warning is displayed.

      #  php ./bin/phpbbcli.php db:migrate --safe-mode
      Installed Schema: \phpbb\db\migration\data\v32x\enable_accurate_pm_button; Time: 0.00 seconds
      Installed Data: \phpbb\db\migration\data\v32x\enable_accurate_pm_button; Time: 0.01 seconds
      Installed Schema: \phpbb\db\migration\data\v32x\v323rc1; Time: 0.00 seconds
      PHP Warning:  count(): Parameter must be an array or an object that implements Countable in /var/www/html/forum/phpbb/cache/driver/memory.php on line 191
      Installed Data: \phpbb\db\migration\data\v32x\v323rc1; Time: 0.00 seconds
      Installed Schema: \phpbb\db\migration\data\v32x\v323rc2; Time: 0.00 seconds
      PHP Warning:  count(): Parameter must be an array or an object that implements Countable in /var/www/html/forum/phpbb/cache/driver/memory.php on line 191
      Installed Data: \phpbb\db\migration\data\v32x\v323rc2; Time: 0.00 seconds
      Installed Schema: \phpbb\db\migration\data\v32x\v323; Time: 0.00 seconds
      PHP Warning:  count(): Parameter must be an array or an object that implements Countable in /var/www/html/forum/phpbb/cache/driver/memory.php on line 191
      Installed Data: \phpbb\db\migration\data\v32x\v323; Time: 0.00 seconds
       
      [OK] The database update was successful.
      

      I am using memcache, my config.php file contains:

      $acm_type = 'memcache';
      

      I have experienced memcache problems with an earlier upgrade. See: Database update from 3.1.10 to 3.2.1 broken (postgreSQL) (Open - can it be dispositioned?)

      My workaround was to utilize the phpBB cache driver for the upgrade. I modified config.php to:

      $acm_type = 'phpbb\\cache\\driver\\file';
      

      The database update was successful with no errors. I will use this workaround for my production server.

            Unassigned Unassigned
            Lady_G Lady_G
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: