PDA

View Full Version : php 5.3.3 & vBulletin --or-- Host issue?


OldSchoolDSL
02-19-2011, 04:50 AM
So I just need to know if this is a hosting issue or does vBulletin not like php 5.3.3

I get this warning message on my forum header:

Warning: trim() expects parameter 1 to be string, array given in [path]/forum.php(653) : eval()'d code on line 28

When I follow this step to use php 5.3.3

https://support.hawkhost.com/index.php?_m=knowledgebase&_a=viewarticle&kbarticleid=147

(Option #2)

TheLastSuperman
02-19-2011, 04:58 AM
So I just need to know if this is a hosting issue or does vBulletin not like php 5.3.3

I get this warning message on my forum header:

Warning: trim() expects parameter 1 to be string, array given in [path]/forum.php(653) : eval()'d code on line 28

When I follow this step to use php 5.3.3

https://support.hawkhost.com/index.php?_m=knowledgebase&_a=viewarticle&kbarticleid=147

(Option #2)

Use 5.2, I've had issues with some of my clients when they tried to use 5.3 and noted to myself a while back the best for me so far has been 5.2.14. So for now rid yourself of that line and revert back to a 5.2 form.

OldSchoolDSL
02-19-2011, 05:12 AM
PHP Version 5.2.14 is the default on my host, but of course then I can not use all the file cache options.

*sigh* vBulletin needs a re-write.
https://vborg.vbsupport.ru/showthread.php?t=258319


Thanks for the friendly and quick reply. :)

Zachery
02-19-2011, 06:47 AM
vBulletin needs a rewrite because of a php bug in an out of date version of php? Wha?

OldSchoolDSL
02-19-2011, 07:03 AM
vBulletin needs a rewrite because of a php bug in an out of date version of php? Wha?

What's the newest version vBulletin can accept without conflict or error?

(assuming the majority is using a control panel and its dependents. )

KevinL
02-19-2011, 08:07 AM
I use 5.3.4 on all our servers.

I am assuming you just updated to 4.12? If so then that error is from this mod https://vborg.vbsupport.ru/showthread.php?t=243460

OldSchoolDSL
02-19-2011, 04:39 PM
I use 5.3.4 on all our servers.

I am assuming you just updated to 4.12? If so then that error is from this mod https://vborg.vbsupport.ru/showthread.php?t=243460

You sir, solved my problem. Thank you :)

I'm still on 4.1.1 and since I have things working the way I want... I may not update again until the new editor is released.

But you were right. This modification seem to conflict with some versions of PHP. As it's not 100% needed, I've removed it.

Boofo
02-19-2011, 06:54 PM
No, the mod does not conflict with any versions of PHP. I am using that mod on PHP 5.3.4 and vb 4.1.0 PL2 just fine. It is the 4.1.2 version of vb that is messing it up. They changed the way they list the active users now. I'll fix it when I upgrade to 4.1.2, and not before.

OldSchoolDSL
02-19-2011, 07:39 PM
No, the mod does not conflict with any versions of PHP. I am using that mod on PHP 5.3.4 and vb 4.1.0 PL2 just fine. It is the 4.1.2 version of vb that is messing it up. They changed the way they list the active users now. I'll fix it when I upgrade to 4.1.2, and not before.

Problem about that is I was using vBulletin 4.1.1 and not 4.1.2

Issue only happen upon changing to PHP 5.3.3. Reverting back to PHP 4.2.14 also corrected the issue.

Either way, uninstalling your modification corrected the issue and allowed me to us PHP 5.3.3.

Boofo
02-19-2011, 08:11 PM
Well, you're the only one using 4.1.1 that has reported that so it sounds to me like you have more going ion than just problems with this mod. Trim is a perfectly valid function on 5.3. AFAIK.

But, like you said, disabling it made things work right again in that area for you. As weird as this sounds, thanks for uninstalling it. Now I don't have to beat my head into the ground trying to figure out a fix for just one person. ;)

OldSchoolDSL
02-19-2011, 09:50 PM
Well, you're the only one using 4.1.1 that has reported that so it sounds to me like you have more going ion than just problems with this mod. Trim is a perfectly valid function on 5.3. AFAIK.

But, like you said, disabling it made things work right again in that area for you. As weird as this sounds, thanks for uninstalling it. Now I don't have to beat my head into the ground trying to figure out a fix for just one person. ;)

Always looking at the positive side of things.... Good for you :)