|
Re: phpBB import failed with FUDforum 2.7.3RC1 [message #27831 is a reply to message #27830] |
Tue, 27 September 2005 21:21 |
Ilia
Messages: 13241 Registered: January 2002
Karma: 0
|
Senior Member Administrator Core Developer |
|
|
Did you run the conversion script on the command line or via the browser? I suspect the script didn't have permissions to write to the messages/ directory where the message bodies are being stored.
FUDforum Core Developer
|
|
|
|
|
Re: phpBB import failed with FUDforum 2.7.3RC1 [message #27835 is a reply to message #27832] |
Tue, 27 September 2005 21:55 |
Ilia
Messages: 13241 Registered: January 2002
Karma: 0
|
Senior Member Administrator Core Developer |
|
|
The consistency checker run is mandatory after running conversion script, iirc the conversion script mentions that at the end of its run.
As far as the compactor goes, are the message bodies visible prior to its execution?
FUDforum Core Developer
|
|
|
|
Re: phpBB import failed with FUDforum 2.7.3RC1 [message #27837 is a reply to message #27836] |
Tue, 27 September 2005 22:15 |
Ilia
Messages: 13241 Registered: January 2002
Karma: 0
|
Senior Member Administrator Core Developer |
|
|
Ok, bug in the compactor then, need to trace that problem, I've had people report it earlier and 2.7.3RC1 should've fixed it. At least I could not longer replicate the problem.
Anyhow there is just one place in compact.php where files are being removed. Block under the "/* remove old message files */" comment. If you are willing, try to add a debug line there to see what it is trying to remove.
FUDforum Core Developer
|
|
|
Re: phpBB import failed with FUDforum 2.7.3RC1 [message #27838 is a reply to message #27837] |
Tue, 27 September 2005 22:36 |
nuno
Messages: 11 Registered: September 2005 Location: Portugal
Karma: 0
|
Junior Member |
|
|
OK, so here it goes:
* it first deletes all msg_* files (line 145).
* Then it was supposed to move all tmp_* to msg_*. The problem is that there are no tmp_* file there. So I end up with no files in the messages's folder.
* In addition, after running this script, error_log gets filled with:
[27-Set-2005 18:40:47] PHP Warning: mysql_fetch_row(): supplied argument is not a valid MySQL result resource in /home/fneinet/public_html/fudforum/include/theme/default/db.inc on line 128
So the error may be a non-validated sql result. I don't know..
Any more hints to help in the debugging?
[Updated on: Tue, 27 September 2005 22:44] Report message to a moderator
|
|
|
Re: phpBB import failed with FUDforum 2.7.3RC1 [message #27841 is a reply to message #27830] |
Wed, 28 September 2005 08:53 |
nuno
Messages: 11 Registered: September 2005 Location: Portugal
Karma: 0
|
Junior Member |
|
|
OK, after a quick sleep, I've found the cause:
$r = q('SELECT m.id, m.foff, (..)');
while ($r = db_rowarr($c)) {
if ($r[4] && $r[2] > $r[4]) {
the problem is that you are passing the $c var to db_rowarr() which isn't defined at all, instead of passing the $r result.
Nuno
[Updated on: Wed, 28 September 2005 08:54] Report message to a moderator
|
|
|
|
|