Problem Converting phpBB2.x to phpBB3.2.1

Get help with installation and running phpBB 3.2.x here. Please do not post bug reports, feature requests, or extension related questions here.
Post Reply
Tyrefryer
Registered User
Posts: 8
Joined: Wed Feb 06, 2008 6:32 pm

Problem Converting phpBB2.x to phpBB3.2.1

Post by Tyrefryer » Wed Aug 09, 2017 5:36 pm

I'm trying to convert a forum in phpBB 2.0.21 to phpBB 3.2.1, I've been following the instructions on docs/INSTALL.html#convert and have the old forum running and a new phpBB 3.2.1 installation installed in a different directory.

As soon as I try to run the convertor I get the following error message:

Fatal error: Call to a member function error() on null in /XXXXXXXXXXXXX/forum/install/convertors/functions_phpbb20.php on line 1348

functions_phpbb20.php line 1348 is:

$convert->p_master->error($user->lang['CONV_ERROR_ATTACH_FTP_DIR'], __LINE__, __FILE__);

I've tried searching but can't find any references to this, does anyone have any suggestions as to what the problem might be?

Thanks, Martin.

Tyrefryer
Registered User
Posts: 8
Joined: Wed Feb 06, 2008 6:32 pm

Re: Problem Converting phpBB2.x to phpBB3.2.1

Post by Tyrefryer » Thu Aug 10, 2017 2:15 pm

The above error was when running under PHP 5.6, if I change to PHP 7.0 I get a bit more information with the following error:

Fatal error: Uncaught Error: Call to a member function error() on null in /XXXXXXXXXXXXX/forum/install/convertors/functions_phpbb20.php:1348 Stack trace: #0 /XXXXXXXXXXXXX/forum/install/convertors/convert_phpbb20.php(317): phpbb_get_files_dir() #1 /XXXXXXXXXXXXX/forum/install/convert/convertor.php(210): include('/homepages/3/d6...') #2 /XXXXXXXXXXXXX/forum/install/convert/controller/convertor.php(370): phpbb\convert\convertor->convert_data('phpbb20') #3 [internal function]: phpbb\convert\controller\convertor->convert('phpbb20') #4 /XXXXXXXXXXXXX/forum/vendor/symfony/http-kernel/HttpKernel.php(144): call_user_func_array(Array, Array) #5 /XXXXXXXXXXXXX/forum/vendor/symfony/http-kernel/HttpKernel.php(64): Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object(phpbb\symfony_request), 1) #6 /ho in /XXXXXXXXXXXXX/forum/install/convertors/functions_phpbb20.php on line 1348

rxu
Extensions Development Team
Posts: 2956
Joined: Wed Oct 25, 2006 12:46 pm
Location: Siberia, Russian Federation
Name: Ruslan
Contact:

Re: Problem Converting phpBB2.x to phpBB3.2.1

Post by rxu » Thu Aug 10, 2017 6:06 pm

Tyrefryer wrote:
Thu Aug 10, 2017 2:15 pm
Call to a member function error() on null
Looks like phpBB bug. Could you try the following; in phpBB 3.2.1 folder:

Code: Select all

OPEN
\install\convert\convert.php

FIND
	function convert($p_master)

REPLACE WITH
	function __construct($p_master)
and then retry converting.

Tyrefryer
Registered User
Posts: 8
Joined: Wed Feb 06, 2008 6:32 pm

Re: Problem Converting phpBB2.x to phpBB3.2.1

Post by Tyrefryer » Tue Sep 05, 2017 2:46 pm

Thanks very much rxu, that's seemed to fix that!

Post Reply

Return to “[3.2.x] Support Forum”