vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   PHP 5.3 and vBulletin 3.6.4 (https://vborg.vbsupport.ru/showthread.php?t=261299)

NeXuM 04-01-2011 04:02 PM

PHP 5.3 and vBulletin 3.6.4
 
My webhost just upgrader PHP to version 5.3 and now i am getting errors on three vbulletin forums (version 3.6.4)

Quote:

Deprecated: Assigning the return value of new by reference is deprecated in /var/alternc/html/a/anarchoi/includes/init.php on line 45

Deprecated: Assigning the return value of new by reference is deprecated in /var/alternc/html/a/anarchoi/includes/init.php on line 93

Deprecated: Assigning the return value of new by reference is deprecated in /var/alternc/html/a/anarchoi/includes/init.php on line 97

Deprecated: Assigning the return value of new by reference is deprecated in /var/alternc/html/a/anarchoi/includes/init.php on line 105

Deprecated: Assigning the return value of new by reference is deprecated in /var/alternc/html/a/anarchoi/includes/init.php on line 116

Deprecated: Assigning the return value of new by reference is deprecated in /var/alternc/html/a/anarchoi/includes/init.php on line 120

Deprecated: Assigning the return value of new by reference is deprecated in /var/alternc/html/a/anarchoi/includes/init.php on line 128

Deprecated: Assigning the return value of new by reference is deprecated in /var/alternc/html/a/anarchoi/includes/init.php on line 197

Deprecated: Assigning the return value of new by reference is deprecated in /var/alternc/html/a/anarchoi/includes/init.php on line 404

Deprecated: Assigning the return value of new by reference is deprecated in /var/alternc/html/a/anarchoi/includes/class_core.php on line 2345

Deprecated: Function set_magic_quotes_runtime() is deprecated in class_core.php on line 1514

is there a way to fix those errors ? i really cant upgrade to a newer version of vbulletin, i have spent hundreds of hours customizing my forums.... half of my forum is based on mods that doesnt exist in newer versions, and if i upgrade i will loose my custom scripts, custom mods, custom template, etc....

If it is impossible to fix the errors without upgrading, could someone please tell me how the errors can affect my forum ?? If i just turn off error display, will it affect my forum somehow ? are the deprecated functions very important for the basic functionement of the forum?

Lynne 04-01-2011 04:22 PM

vB3.6 (and 3.7 and most of 3.8) will not work with PHP 5.3.

NeXuM 04-01-2011 04:38 PM

one of my forums under 3.6.4 is still working but displaying a couple of errors...

if i turn off the error displaying, can i know how these errors will affect my forums ?

thanks

Lynne 04-01-2011 05:10 PM

I do not know what they will do. Running 3.6.4 is not supported under PHP 5.3. It's not been tested at all.

FudgeBalls2002 06-17-2011 02:48 PM

Just happened to me this morning...I have a heavily modded forum and didn't really want to pay money to upgrade there's really no option for this problem?

Paul M 06-17-2011 02:54 PM

The errors are mostly just warnings of deprecated functionality, so the forum should work, except you will need to disable the error messages somehow. However, the functionality is likely to be removed from php at some point, then you will have problems.

Frosty 06-17-2011 03:15 PM

Just decrease the version, I did the same. It should work without any problems or whatsoever on PHP 5.1.6.

Adrian Schneider 06-17-2011 03:40 PM

You could probably do a mass find replace...

"=&" with "="

This should take care of the majority of them, but I'd definitely back up first or try it locally first.

Zachery 06-17-2011 04:00 PM

Try
ini_set(display_errors, 0);

In your config.php file.

Eslob 02-04-2012 11:29 AM

Quote:

Originally Posted by Adrian Schneider (Post 2209017)
You could probably do a mass find replace...

"=&" with "="

This should take care of the majority of them, but I'd definitely back up first or try it locally first.

This fixes the problem.

As i have dedicated server and my forum on it.

I got this error and now i'm downgrading my php version to 5.2.X.

And keep the php as it is without upgrades, unless if i plan to go for 4.X.

IRANCITY 05-11-2012 10:35 AM

please Fix VB 3.8 for PHP 5.3 !

Paul M 05-11-2012 10:40 AM

vB 3.8.7 works perfectly fine with php 5.3

Xp.Warrior 05-11-2012 12:57 PM

Brother You Have 2 Ways To fix Thease Errors
1 You Request To Your Hosting Server To Downgrade php5.3x To php5.2 Beacues php5.3x Not Supported vbulletin old versions php5.3 Only Support vbulletin 3.8.5 or Up Version
2 Way You Upgrade Your This Version Of Vbulletin To Vbulletin 3.8.5 and Up
I Hope This Is Help Full For You

mrspring 04-19-2013 04:36 PM

Quote:

Originally Posted by Lynne (Post 2179825)
vB3.6 (and 3.7 and most of 3.8) will not work with PHP 5.3.

Can You be a little clearer on this? And how long will non version 4 customers be able to sustain their boards, if they are regularly upgrading PHP?

Lynne 04-19-2013 10:33 PM

Of the 3.x series, only 3.8.5 and newer will work with PHP5.3 and only version 3.8.8 will work with PHP5.4

hotshot 04-25-2013 12:51 AM

Quote:

Originally Posted by NeXuM (Post 2179812)
My webhost just upgrader PHP to version 5.3 and now i am getting errors on three vbulletin forums (version 3.6.4)




is there a way to fix those errors ? i really cant upgrade to a newer version of vbulletin, i have spent hundreds of hours customizing my forums.... half of my forum is based on mods that doesnt exist in newer versions, and if i upgrade i will loose my custom scripts, custom mods, custom template, etc....

If it is impossible to fix the errors without upgrading, could someone please tell me how the errors can affect my forum ?? If i just turn off error display, will it affect my forum somehow ? are the deprecated functions very important for the basic functionement of the forum?

We can host your site we offer either version of PHP on our server. We are a web design company and we also have a Vbulletin 3.8 that belongs to me on the server, experienced the same issue you described, so I kept both versions of PHP on the server.

Killsparer 07-06-2013 04:38 PM

Quote:

Originally Posted by Paul M (Post 2328346)
vB 3.8.7 works perfectly fine with php 5.3

I'm using 3.8.7 PL3 and once i switch to PHP 5.3.26 or 5.3.25 i'm getting the following errors e.g. while visiting the blog index:

Quote:

Deprecated: Assigning the return value of new by reference is deprecated in /home/projedbv/www.projektstarwars.de/forum/includes/init.php on line 55

Deprecated: Assigning the return value of new by reference is deprecated in /home/projedbv/www.projektstarwars.de/forum/includes/init.php on line 107

Deprecated: Assigning the return value of new by reference is deprecated in /home/projedbv/www.projektstarwars.de/forum/includes/init.php on line 111

Deprecated: Assigning the return value of new by reference is deprecated in /home/projedbv/www.projektstarwars.de/forum/includes/init.php on line 119

Deprecated: Assigning the return value of new by reference is deprecated in /home/projedbv/www.projektstarwars.de/forum/includes/init.php on line 130

Deprecated: Assigning the return value of new by reference is deprecated in /home/projedbv/www.projektstarwars.de/forum/includes/init.php on line 134

Deprecated: Assigning the return value of new by reference is deprecated in /home/projedbv/www.projektstarwars.de/forum/includes/init.php on line 142

Deprecated: Assigning the return value of new by reference is deprecated in /home/projedbv/www.projektstarwars.de/forum/includes/init.php on line 211

Deprecated: Assigning the return value of new by reference is deprecated in /home/projedbv/www.projektstarwars.de/forum/includes/init.php on line 389

Deprecated: Assigning the return value of new by reference is deprecated in /home/projedbv/www.projektstarwars.de/forum/includes/class_core.php on line 2552

Warnung: trim() expects parameter 1 to be string, array given in [path]/includes/functions.php (Zeile 307)

Warnung: number_format() expects parameter 1 to be double, array given in [path]/includes/functions.php (Zeile 361)

Warnung: trim() expects parameter 1 to be string, array given in [path]/includes/functions.php (Zeile 307)

Warnung: number_format() expects parameter 1 to be double, array given in [path]/includes/functions.php (Zeile 361)
I appreciate any help and thanks in advance!

snakes1100 07-06-2013 04:49 PM

The deprecated errors can be ignored, they arent a big deal.

The trim errors are most likely caused by a bad hack you installed.

You can disable display_errors in php.ini & restart apache if your seeing them on your external web pages.

You should also start your own thread when asking for help.

Killsparer 07-06-2013 05:23 PM

Quote:

Originally Posted by snakes1100 (Post 2432417)
The deprecated errors can be ignored, they arent a big deal.

Thanks. So this is a bug with 3.8.7 PR3? Is there no official fix?

snakes1100 07-06-2013 05:57 PM

Did you disable your hacks & test?

BirdOPrey5 07-09-2013 06:27 PM

Quote:

Originally Posted by Killsparer (Post 2432430)
Thanks. So this is a bug with 3.8.7 PR3? Is there no official fix?

I think it is caused by a modification but the fix is simple.

Just edit the two files in the warnings. on each line number mentioned remove the & next to the = then resave and reupload the files.


All times are GMT. The time now is 06:04 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.02348 seconds
  • Memory Usage 1,781KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (8)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (21)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete