PDA

View Full Version : Unable to install / use vB3 where PHP version is less than 4.1.0


Scott MacVicar
Sat 14th Jun '03, 2:35pm
Open /includes/init.php

look for the following around line 41

PHPVERSION

replace with

phpversion()

Kaffeerappel
Sun 15th Jun '03, 2:59am
Open /includes/init.php

look for the following around line 41
PHPVERSION
replace with
phpversion()

That did the trick for me on a fresh install, not for the upgrade, tho.

dantech30
Sun 15th Jun '03, 5:28am
Doing that gives me this error on upgrade:
Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /var/www/testforum/includes/init.php on line 3

Parse error: parse error, unexpected T_STRING in /var/www/testforum/includes/init.php on line 3

And changes nothing on a fresh install

Can you help me further?

Scott MacVicar
Sun 15th Jun '03, 7:20am
you've added something extra in that shouldn't be there as line 3 is the file header.

Try extracting a fresh copy from the zip, editing and then uploading in ASCII.

Scott MacVicar
Sun 15th Jun '03, 7:21am
how far did you get on the upgrade before it reset?

Kaffeerappel
Sun 15th Jun '03, 12:14pm
how far did you get on the upgrade before it reset?

Like before, I couldn't even get to Step 1. Login not accepted, without any error messages.

dantech30
Sun 15th Jun '03, 1:18pm
OK - I changed it and the upgrade works

Thank you very much

Dantech30

Ifrani
Tue 17th Jun '03, 1:14pm
That did the trick for me on a fresh install, not for the upgrade, tho.

Same problem here !!! I can't upgrade PHP 4.0.6, because it is the version of my provider...

Is there another idea ???

Steve Machol
Tue 17th Jun '03, 1:32pm
Did you make the change posted by Scott?

Ifrani
Tue 17th Jun '03, 5:07pm
Yes, with the change I can run an install (I try it yesterday and anything work fine) but not an upgrade... I try to delete the cookies, try the fix_login.php (Database error ?!?)...

Doublechecking that is was not my fault, I delete the new files, copy the "old" forum files back and run database_conflicts.php again... no errors...
I delete all "old" files again, copy the new files... Same problem...

Is PHP Version 4.0.6 to old ? I read a lot of statements that an update would help, but i can't do that...

Cyborg from DH
Wed 18th Jun '03, 1:10pm
Yes, PHP 4.0.6 is quite old, released about 2.5 years ago I think.

Ifrani
Wed 18th Jun '03, 4:35pm
http://www.vbulletin.com/images/bullet.gifSystem RequirementsMinimum Requirements: vBulletin is designed to run on every server that has PHP 4.0.4 or greater and MySQL 3.23 or greater installed.

MUG
Wed 18th Jun '03, 4:39pm
That is for vBulletin 2.

Blackjack
Thu 19th Jun '03, 1:11pm
I just installed fresh, making the change posted above, on 4.0.6 without any problems at all.

Being on a shared server, it has been quite difficult to get the host to upgrade php.

filburt1
Thu 19th Jun '03, 3:26pm
I just installed fresh, making the change posted above, on 4.0.6 without any problems at all.

Being on a shared server, it has been quite difficult to get the host to upgrade php.
If your host is in their right mind they'll upgrade very quickly considering that old versions of software == security holes. There was even an important fix in 4.3.1, to say nothing about the tons of versions after 4.0.6...

Blackjack
Thu 19th Jun '03, 3:29pm
If your host is in their right mind they'll upgrade very quickly considering that old versions of software == security holes. There was even an important fix in 4.3.1, to say nothing about the tons of versions after 4.0.6...
Yeah, I know that. They most likely know that. But they are not easy to get support from. I have plans to change hosts once the funds are available to do so. ;)

Blackjack
Thu 19th Jun '03, 5:45pm
Well Upgrade does not work.

4.0.6 fresh install, the forums work flawlessly. Try and login to upgrade1 to upgrade a 2.3.0 db and it will not work. Cookies are cleared.

fix_login just errors.
Invalid SQL:
### QUERY SPECIAL TEMPLATES ###
SELECT title, data FROM datastore
WHERE title IN ('options', 'cron', 'forumcache', 'usergroupcache')

mysql error: Table 'raaforum.datastore' doesn't exist

FYI: ;)
Pretty positive its not a cookie prob at my end as I understand how they work pretty well, and it does it on multiple computers, multiple locations.

Kaffeerappel
Tue 1st Jul '03, 5:59am
I was wondering whether the upgrade is working fine with Beta 4 now (PHP < 4.1.0)?

Haven't dared to try on my board thus far...

Brad.loo
Wed 16th Jul '03, 8:28pm
If your host is in their right mind they'll upgrade very quickly considering that old versions of software == security holes. There was even an important fix in 4.3.1, to say nothing about the tons of versions after 4.0.6...
I belive this will fix the upgrade problems, but I do not have a version of 4.0.6 to test it. Also, vB 3 requies at least php version 4.0.6 to run.

In /install/upgradecore.php

find:
PHPVERSION

replace with:
phpversion()

basicly the same fix, diff file. :)

Scott MacVicar
Wed 16th Jul '03, 10:12pm
that will only show a message when its less than 4.0.6.

I'll have to look at install in the morning since the machine with 4.0.6 is in another room and I can't get access till the morning.

starbucks
Fri 18th Jul '03, 5:44pm
its for this reason i like my host :)

I went on IRC, asked him to upgrade PHP as one of my pages wouldnt work (not vbulletin a external page parsing code).

2 minutes later he replied with "done"