Firefox PHP

console_upgrade stops

Posted by wloges 
console_upgrade stops
June 17, 2019 12:10PM
Hello,
I try to upgrade Phorum from 5.1.25 to 5.2.23.
console_upgrade.php stops after (during?) 27 step.
Any suggestions will be appreciated.
Regards
-wg


Next upgrade: 2007092900-patch (24 of 44)
Press ENTER to run this upgrade or CTRL+C to stop >
Upgrading from patch level 2007091000 to 2007092900 ...
The upgrade was successful.

Next upgrade: 2007100800-patch (25 of 44)
Press ENTER to run this upgrade or CTRL+C to stop >
Upgrading from patch level 2007092900 to 2007100800 ...
The upgrade was successful.

Next upgrade: 2007100801-patch (26 of 44)
Press ENTER to run this upgrade or CTRL+C to stop >
Upgrading from patch level 2007100800 to 2007100801 ...
The upgrade was successful.

Next upgrade: 2007100802-patch (27 of 44)
Press ENTER to run this upgrade or CTRL+C to stop >
root@xxxxxx:/ig/forum/scripts#
Re: console_upgrade stops
June 17, 2019 12:49PM
I've changed memory limit in mysql-pathces/2007108002.php to 128M.
After that I've got
Fatal error: Cannot unset string offsets in /var/www/html/users/a/d/admin/ig.portel.pl/forum/include/thread_info.php on line 93

In my Phorum is about 700K posts.
Re: console_upgrade stops
June 17, 2019 03:02PM
Check the links in this message.
[www.phorum.org]

What version of mysql and php are you moving to?
Re: console_upgrade stops
June 17, 2019 04:50PM
Mysql server version 5.6.43
PHP 5.6.40
Re: console_upgrade stops
June 17, 2019 07:28PM
Read this thread please

[www.phorum.org]

Let us know if it works.
Re: console_upgrade stops
June 17, 2019 11:29PM
Thx, it's Ok. Just warnings:

Warning: Illegal string offset 'message_ids' in /var/www/html/users/a/d/admin/ig.portel.pl/forum/include/thread_info.php on line 95

Warning: Illegal string offset 'message_ids_moderator' in /var/www/html/users/a/d/admin/ig.portel.pl/forum/include/thread_info.php on line 99
Re: console_upgrade stops
June 18, 2019 12:02AM
.... but phorum shows empty, blanc screen.
All sanity checks are green. No database errors :(
Any idea ? :)
Re: console_upgrade stops
June 18, 2019 04:11AM
Did you copy and paste the missing line, or copy and paste the whole program?

<?php     // must be top left of the file (no spaces or blank lines prior to)

// other code ...

        if (is_array($message['meta']) && isset($message['meta']['recent_post'])) {
          unset($message['meta']['recent_post']);
        }            // You did not miss the curly brace?
Re: console_upgrade stops
June 18, 2019 09:17AM
I've just commented 93 line in thread_info.php.
I've don't understand. What missing line You mean? Could You send me proper thread_info.php file please?
Re: console_upgrade stops
June 24, 2019 12:15PM
This part of thread_info.php looks like that:


$message["meta"] = $parent_message["meta"];

// For cleaning up pre-5.2 recent post data.
// unset($message["meta"]["recent_post"]);

if (is_array($message['meta']) && isset($message['meta']['recent_post'])) {
unset($message['meta']['recent_post']);
}

$message["meta"]["message_ids"]=$message_ids;


I've got
Warning: Illegal string offset 'message_ids' in /var/www/html/users/a/d/admin/ig.portel.pl/forum/include/thread_info.php on line 99

Warning: Illegal string offset 'message_ids_moderator' in /var/www/html/users/a/d/admin/ig.portel.pl/forum/include/thread_info.php on line 103

The upgrade was successful but I can see only blanc screen.
Re: console_upgrade stops
June 24, 2019 04:55PM
in php.ini

display_errors = Off


log_errors = On

see if that gets rid of the blank page
Re: console_upgrade stops
June 24, 2019 10:28PM
Still blank page. No errors in /var/log/php/phperrorlog :(
Sorry, only registered users may post in this forum.

Click here to login