FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » FUDforum Development » Bug Reports » Fud 2.6.8 RC1 issues
Show: Today's Messages :: Polls :: Message Navigator
Switch to threaded view of this topic Create a new topic Submit Reply
Fud 2.6.8 RC1 issues [message #20700] Tue, 26 October 2004 09:37 Go to next message
Olliver   Germany
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 Go to previous messageGo to next message
Olliver   Germany
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 Go to previous messageGo to next message
Olliver   Germany
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 Go to previous messageGo to next message
Ilia is currently offline  Ilia   Canada
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 Go to previous messageGo to next message
Olliver   Germany
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 Confused

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 Go to previous messageGo to next message
Ilia is currently offline  Ilia   Canada
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
Re: Fud 2.6.8 RC1 issues [message #20727 is a reply to message #20725] Tue, 26 October 2004 16:30 Go to previous messageGo to next message
Olliver   Germany
Messages: 443
Registered: March 2002
Karma: 0
Senior Member
I know that 4.3.1 isn't the freshest release, but upgrading is currently not possible because I don't have a spare machine running BSD 4.8 so I could compile the latest version Sad

glob says:
string(12)

which explains why I got this warning with the wrong data type. Is there a way to find a workaround or does it mean I have to switch to a different forum because my configuration is no longer covered?

Olliver
Re: Fud 2.6.8 RC1 issues [message #20735 is a reply to message #20727] Tue, 26 October 2004 21:08 Go to previous message
Ilia is currently offline  Ilia   Canada
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
Here is a work-around patch:
http://cvs.prohost.org/c/index.cgi/FUDforum/chngview?cn=3062


FUDforum Core Developer
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: possible some bug in upgrade script
Next Topic: FUDForum 2.6.8 RC1 db update issue
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Sun Nov 10 04:45:47 GMT 2024

Total time taken to generate the page: 0.05652 seconds