DeutschEnglish

Submenu

 - - - By CrazyStat - - -

29. August 2018

phpBB: Upgrade fails (timeout) – solution and how to update on the CLI

Filed under: PHP,Server Administration — Tags: , , , , , , , — Christopher Kramer @ 10:46

So if you are getting a Timeout when updating phpBB to 3.2.2, it tells you to either increase the maximum time limit or do the update on the CLI.

How to update on the CLI

Of course, this requires that you have access to the CLI.

  • On the CLI, go into the install folder of phpBB
  • Create a file named config.yml that contains this:
    updater:
        type: db_only
  • Make sure the above file does not end with newlines
  • Run:
    php ./phpbbcli.php update config.yml

Fixing the update timeout problem

In my case, the CLI update gave this error:

PHP Fatal error:  Call to a member function fetch_array() on resource in [...]/install/update/new/phpbb/db/migration/data/v32x/fix_user_styles.php on line 42

This is a bug in the migration script. The most easy way to fix it, is to go into your config.php and change the $dbms from mysql to mysqli. This is recommended anyway.

If this is not possible for you, open the mentioned file and search for:

$enabled_styles = $result->fetch_array();

And replace this with:

$enabled_styles = $this->db->sql_fetchrowset($result);

Thanks to RMcGirr83 and Marc on this thread.

Recommendation

Try my Open Source PHP visitor analytics script CrazyStat.

4. March 2012

Forum (board) opened for discussion and support

Filed under: CrazyStat,Uncategorized — Tags: , , , , — Christopher Kramer @ 12:42

Today I would like to introduce Christosoft Forum.

It is meant both for support, especially about CrazyStat, but also any general discussion about things of common interest.

I hope it will be used especially for CrazyStat support.

You do not even have to register at the moment, you can post as guest if you solve a captcha. Let’s hope I can keep this setting and it won’t be abused.

So from now on, please use the forum if you have any problems with CrazyStat. Other users might help you before I find the time or you might find the solution for your problem in an old thread.

Let me know what you think of it, either here or in the forum.

Also let me know if you have suggestions, e.g. for subforums or forum settings.

Edit: This is part of my plans to make development of CrazyStat more open. Expect other steps like Bugtracker or public SVN soon…