Fud 2.6.8 RC1 issues [message #20700] |
Tue, 26 October 2004 09:37 |
Olliver
Messages: 443 Registered: March 2002
Karma: 0
|
Senior Member |
|
|
I upgraded from 2.6.7 RC1 to 2.8.7 RC1 and had quite a few problems while upgrading:
- Sql error in one category with two forums which didn't contain any posts. Removing it got me one step further
- Compile error with Lithuanian language: Error message states that it seems to miss the help files. Well, removing Lithuanian got me finally completing the upgrade.
As a permanent error I get this here:
Quote: | Warning: glob() expects parameter 2 to be long, string given in /xxx/xxx/xxx/forum/adm/admthemes.php on line 231
Warning: Invalid argument supplied for foreach() in /xxx/xxx/xxx/forum/adm/admthemes.php on line 232
Warning: Invalid argument supplied for foreach() in /xxx/xxx/xxx/forum/adm/admthemes.php on line 244
|
Olliver
[Updated on: Tue, 26 October 2004 09:38] Report message to a moderator
|
|
|
Re: Fud 2.6.8 RC1 issues [message #20702 is a reply to message #20700] |
Tue, 26 October 2004 10:08 |
Olliver
Messages: 443 Registered: March 2002
Karma: 0
|
Senior Member |
|
|
Since the latest cvs file is also broken I hacked into the file myself in order to get my forum back to operation. The following change fixes the problem.
admthemes.php, line 231
$files = glob($DATA_DIR.'/thm/default/i18n/*', intval(GLOB_ONLYDIR));
Works for me, but I dunno whether it may break something elsewhere.
Olliver
[Updated on: Tue, 26 October 2004 10:10] Report message to a moderator
|
|
|
Re: Fud 2.6.8 RC1 issues [message #20703 is a reply to message #20702] |
Tue, 26 October 2004 10:19 |
Olliver
Messages: 443 Registered: March 2002
Karma: 0
|
Senior Member |
|
|
Unless this was triggered by my modification, I'd say this is another issue:
Quote: | Warning: Invalid argument supplied for foreach() in /xxx/xxx/xxx/forum/adm/admlock.php on line 48
|
Message is accompanied by a maximum execution time error.
The error was trigerred by attempting to lock the forum files.
Olliver
|
|
|
Re: Fud 2.6.8 RC1 issues [message #20705 is a reply to message #20703] |
Tue, 26 October 2004 12:49 |
Ilia
Messages: 13241 Registered: January 2002
Karma: 0
|
Senior Member Administrator Core Developer |
|
|
What was the SQL error? I did make an sql error fix after RC1 release, but I am wondering was it the same as the one you saw...
The GLOB constant should be made available by PHP, the fact you don't have implies there is a problem with your PHP build.
Other foreach() warnins are due to glob returning nothing, which suggests the function has issues on your system.
FUDforum Core Developer
|
|
|
Re: Fud 2.6.8 RC1 issues [message #20724 is a reply to message #20705] |
Tue, 26 October 2004 14:58 |
Olliver
Messages: 443 Registered: March 2002
Karma: 0
|
Senior Member |
|
|
Regarding the PHP binary:
It's PHP 4.3.1 as Apache 1.3.x module on FreeBSD 4.8. It has almost nothing else but the standard functions built in. I can provide phpinfo() if necessary.
Regarding the SQL error:
I got it when I ran the upgrade script for 2.6.8 RC1. It was the originally released version, not the latest snap from CVS, hence I assume I experienced the problem you fixed right afterwards.
Unfortunately I didn't save the excact message, but it was complaining about some forum names, which used to work in all previous releases. Since the category with the two forums were empty I deleted them which seemed to cure the problem.
So the remaining problem is the defunct glob constant
Olliver
[Updated on: Tue, 26 October 2004 14:59] Report message to a moderator
|
|
|
Re: Fud 2.6.8 RC1 issues [message #20725 is a reply to message #20724] |
Tue, 26 October 2004 15:05 |
Ilia
Messages: 13241 Registered: January 2002
Karma: 0
|
Senior Member Administrator Core Developer |
|
|
Well 4.3.1 is pretty old release, the current release is 4.3.9 and as a PHP 4.3.X release manager I'd definately recommend upgrading. If not for the sake of the forum and resolving the GLOB bug then for the sake of making your PHP install more secure, since 4.3.1 has a number of security issues fixed in later releases.
I don't have access to FreeBSD 4.8, however PHP 4.3.3 on FreeBSD 4.10 does have this constant defined.
<?php var_dump(GLOB_ONLYDIR); ?>
prints int(1073741824)
FUDforum Core Developer
|
|
|
|
|