News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

i can't run SMF 1.1 RC1 with PHP 5.0.5

Started by WBTCPIP, October 02, 2005, 08:36:37 PM

Previous topic - Next topic

WBTCPIP

Hi,
is there any known issue using SMF 1.1 RC1 with PHP 5.0.5 on Apache/2.0.54?
I can't get it work!!! I only get blank pages!
I downgraded to php 4.2.10 and SMF 1.1 works fine.

Ben_S

Sounds like a config error, SMF does work fine with php 5.
Liverpool FC Forum with 14 million+ posts.

Oldiesmann

I've been running SMF on PHP 5.0.4 for some time now and haven't had any problems with it. I doubt there have been that many significant changes in PHP 5.0.5 that would cause SMF to not work.
Michael Eshom
Christian Metal Fans

WBTCPIP

Ok..i found the problem...PHP5 was not finding the php.ini and due to this it was not loading mysql extension. All tutorials learn to store this file in c:\windows and this was fine for me until php 4. After installing PHP5 i have to keep php.ini into the same folder where php is installed....strange but true! now PHP 5.0.5 + MySQL 5 + SMF 1.1 RC1 all is ok!   :D (late night....now i can go sleep  :-X )

Bonk

#4
SSI.php is broken on php 5.0.5  (SMF 1.0.5)

Quote
[Tue Oct 11 05:06:14 2005] [error] [client XXXXXX] PHP Fatal error:  Only variables can be passed by reference in XXXXXXX\\SSI.php on line 606

I do not get this error on php 5.0.4

http://www.php.net/ChangeLog-5.php#5.0.5

This is the afected line in SSI.php:

if (!empty($return['users']))
$return['users'][array_pop(array_keys($return['users']))]['is_last'] = true;


The same line is in SMF 1.1 RC1 SSI.php as well.

marinelife

I got the same blank page, I will try and change it again and see it what you did works, thanks for the fix

Advertisement: