Uploaded image for project: 'phpBB3'
  1. phpBB3
  2. PHPBB3-15796

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

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Minor
    • Resolution: Duplicate
    • Affects Version/s: 3.2.3
    • Fix Version/s: None
    • Component/s: Update system
    • Labels:
    • Environment:
      Host: localhost
      OS: Linux (Fedora 28)
      Database: PostgreSQL 10.5
      PHP version: 7.1.17

      Description

      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.

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: