Forums

Unfortunately no one can be told what FluxBB is - you have to see it for yourself.

You are not logged in.

#1 2020-12-09 08:11:56

colak
Member
Registered: 2010-06-16
Posts: 14
Website

migrate from PunBB to FluxBB

Hi all,

My first question to this forum was over 10 years ago, asking for instructions on how to migrate from PunBB to FluxBB. Admittedly up, to last week, we were hosted on a server which could cope with the older specs required by PunBB, so I took the lazy path and remained with the unsupported PunBB software.

We are now in the unfortunate position that PunBB no longer functions as our new php environment no longer supports it, so my question is the same as it was then.

Could someone point me to some instructions on how to migrate a PunBB 1.4.5 forum to the latest FluxBB?

Many thanks in advance.

Offline

#2 2020-12-09 08:30:30

Visman
Member
From: Siberia
Registered: 2010-07-10
Posts: 1,476
Website

Re: migrate from PunBB to FluxBB

PunBB 1.4.4 with my fixes and improvements works fine on PHP 5.3-8.0

https://punbb.informer.com/forums/post/158390/#p158390
https://punbb.informer.com/forums/topic … 72-and-74/

P.S. Original FluxBB does not work above php 7.2 https://fluxbb.org/forums/viewtopic.php?id=9822

Offline

#3 2020-12-09 15:25:12

colak
Member
Registered: 2010-06-16
Posts: 14
Website

Re: migrate from PunBB to FluxBB

Hi Visman,
I have actually tried your version from github. This is what I get:( https://forum.neme.org/index.php

Offline

#4 2020-12-09 16:00:03

Visman
Member
From: Siberia
Registered: 2010-07-10
Posts: 1,476
Website

Re: migrate from PunBB to FluxBB

In config.php replace

//define('FORUM_DEBUG', 1);

to

define('FORUM_DEBUG', 1);

and look to the errors log on your server.

Offline

#5 2020-12-09 16:52:06

colak
Member
Registered: 2010-06-16
Posts: 14
Website

Re: migrate from PunBB to FluxBB

Hi Visman, Thanks for coming back for this. Here is what I get

AH01215: PHP Parse error:  syntax error, unexpected ')' in /path/to/forum/include/common.php on line 126: /dh/cgi-system/php72.cgi.

A similar error is returned when I am using php 7.4

Offline

#6 2020-12-09 17:50:54

Visman
Member
From: Siberia
Registered: 2010-07-10
Posts: 1,476
Website

Re: migrate from PunBB to FluxBB

1. It is suspected that you have only updated older files compared to the archived files.
2. The file may have been modified in some way on the server (copied as a text file, not as a binary, or hackers hacked you).
Make file comparison between server and archive from github.

Offline

#7 2020-12-10 05:59:54

colak
Member
Registered: 2010-06-16
Posts: 14
Website

Re: migrate from PunBB to FluxBB

I replaced common.php and I started getting the following error in my logs

mod_fcgid: stderr: PHP Warning:  "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in /path/to/forum.neme.org/include/functions.php on line 1818

... I then reuploaded everything just in case. I am now getting

mod_fcgid: stderr: PHP Fatal error:  Cannot 'continue' 2 levels in /path/to/forum.neme.org/include/functions.php on line 1819

Offline

#8 2020-12-10 08:04:09

Visman
Member
From: Siberia
Registered: 2010-07-10
Posts: 1,476
Website

Re: migrate from PunBB to FluxBB

Sorry, but you are not using my punbb version. This bug you are writing about is fixed in my version.
or

1. It is suspected that you have only updated older files compared to the archived files.

Offline

#9 2020-12-10 08:28:05

colak
Member
Registered: 2010-06-16
Posts: 14
Website

Re: migrate from PunBB to FluxBB

Visman wrote:

Sorry, but you are not using my punbb version. This bug you are writing about is fixed in my version.
or

1. It is suspected that you have only updated older files compared to the archived files.

Thanks for your help about this!!!

I updated the whole install using the files from the repository on https://github.com/MioVisman/punbb. Is there another version you worked on that I should download?

Last edited by colak (2020-12-10 08:28:35)

Offline

#10 2020-12-10 08:45:45

Visman
Member
From: Siberia
Registered: 2010-07-10
Posts: 1,476
Website

Re: migrate from PunBB to FluxBB

https://github.com/MioVisman/punbb/archive/master.zip - this is a working version, the other is not.
9bfbd731da0b6bea52d96b2f3b120dd3.jpg

Offline

#11 2020-12-10 09:49:12

colak
Member
Registered: 2010-06-16
Posts: 14
Website

Re: migrate from PunBB to FluxBB

Hi Visman, I get the same error:(

mod_fcgid: stderr: PHP Fatal error:  Cannot 'continue' 2 levels in /path/to/forum.neme.org/include/functions.php on line 1819

Offline

#12 2020-12-10 10:16:31

Visman
Member
From: Siberia
Registered: 2010-07-10
Posts: 1,476
Website

Re: migrate from PunBB to FluxBB

1. Please copy the file /path/to/forum.neme.org/include/functions.php from the server to your computer;
2. Show me line 1819 from this file.

Offline

#13 2020-12-10 12:13:22

colak
Member
Registered: 2010-06-16
Posts: 14
Website

Re: migrate from PunBB to FluxBB

Here are line numbers 1818, 1819, and 1820

		if (($pos = strpos($id_data, '=')) === false)
			continue;
		$timestamp = intval(substr($id_data, $pos + 1));

Last edited by colak (2020-12-10 12:13:37)

Offline

#14 2020-12-10 12:43:22

Visman
Member
From: Siberia
Registered: 2010-07-10
Posts: 1,476
Website

Re: migrate from PunBB to FluxBB

Change get_tracked_topics() function
https://github.com/MioVisman/punbb/comm … 98a7c356c0

Offline

#15 2020-12-10 14:37:15

colak
Member
Registered: 2010-06-16
Posts: 14
Website

Re: migrate from PunBB to FluxBB

My error log does not show any error but the front page still returns: This PHP environment doesn't have MySQL support built in. MySQL support is required if you want to use a MySQL database to run this forum. Consult the PHP documentation for further assistance. I have set up the subdomain the same way I have set up the other domains/subdomain in the host. I really cannot understand what is happening here.

Offline

#16 2020-12-10 14:51:28

Visman
Member
From: Siberia
Registered: 2010-07-10
Posts: 1,476
Website

Re: migrate from PunBB to FluxBB

config.php

$db_type = 'mysql';

replace to

$db_type = 'mysqli';

OR

$db_type = 'mysql_innodb';

replace to

$db_type = 'mysqli_innodb';

Offline

#17 2020-12-10 16:48:37

colak
Member
Registered: 2010-06-16
Posts: 14
Website

Re: migrate from PunBB to FluxBB

That was it!!!! Thanks so much for your support Visman. The forum is now onliine!

Offline

Board footer

Powered by FluxBB