We've switched to a new bug tracking system!
Project Tools has been set to read-only. Please use the new tracker going forward.
PHP 5.3.0 Depracated messages Issue Tools
issueid=28380 Wed 1st Jul '09 5:55am
Senior Member
PHP 5.3.0 Depracated messages

As per this thread, I'm reporting these messages as a bug. :)

Seems to me a vBulletin 3.8.4 will be next to make vBulletin completely compatible with the latest PHP release.
Issue Details
Project vBulletin
Category Unknown
Status Fixed (Closed)
Priority 1 - Highest
Affected Version 3.8.3
Fixed Version 3.8.4
Users able to reproduce bug 12
Users unable to reproduce bug 1
Assigned Users (none)
Tags fixed 3.7.7, fixed in 3.8.4

Page 1 of 2 1 2 LastLast
Thu 2nd Jul '09 8:40pm
New Member
 
The fix for this is to remove the bits that E_DEPRECATED has, and since E_DEPRECATED is undefined it should be done like this:
PHP Code:
/* sample one */
error_reporting(E_ALL & ~E_NOTICE & -8191);

/* sample two */
error_reporting(E_ALL & ~E_NOTICE & ~8192); 
it looks ugly indeed, but it should do the job
Reply
Sun 5th Jul '09 11:43am
Senior Member
 
If you use a PHP IDE that supports directly find/replace, perform a find/replace on all vBulletin files.

Searching for:

PHP Code:
error_reporting(E_ALL & ~E_NOTICE); 
And replacing with:

PHP Code:
error_reporting(E_ALL & ~E_NOTICE & ~8192); 
Also related to PHP 5.3.0, if you get a PHP Warning pertaining to the server Timezone simply add this to your config.php file:

PHP Code:
date_default_timezone_set('Timezone'); 
Replacing Timezone with either your timezone or your server's timezone found on this page: http://us2.php.net/manual/en/timezones.php

Doing these two things makes vBulletin run flawlessly on PHP 5.3.0.
Reply
Mon 6th Jul '09 10:39am
vBulletin Team
 
I have applied the fix with ~8192 to 3.8 trunk (looks ugly but we need to support PHP4 in vB3), and updated the code for 4.0 trunk (vB4 will require PHP5). These changes will make it out with the next release.

For the timezone one, can you please open a new bug report with the specific symptoms so we can look into it?
Reply
Tue 4th Aug '09 5:55pm
Member
 
Even with the fix
error_reporting(E_ALL & ~E_NOTICE & ~8192);
I still get en error in an error.log file:
PHP Deprecated: Assigning the return value of new by reference is deprecated
Reply
Tue 4th Aug '09 9:34pm
Senior Member
 
Those need to be fixed manually.

Simply find the line it's talking about and change: =& to =

You're better off waiting for 3.8.4, though, because they are all fixed in that version.
Reply
Wed 5th Aug '09 7:11am
vBulletin Team
 
Actually, not =& to =, that will probably cause problems. It should be "=& new" to "= new", and we are not doing that for 3.8.4, as 3.8.x series must support PHP 4, and doing that in PHP 4 will tell php to make a copy of the variable instead of pass a reference back, which takes double the memory, and may cause undesired behaviors.

As for the error log, I think that's a PHP bug: http://bugs.php.net/bug.php?id=48843 and should be fixed in 5.3.1, which isn't out yet, but can be obtained through their CVS/SVN: http://svn.php.net/
Reply
Wed 16th Dec '09 11:44am
New Member
 
I don't understand how to fix the bug.
Can someone explain it to me?
Reply
Wed 16th Dec '09 12:15pm
Senior Member
 
Upgrade to vB 3.8.4. Simple like that.
Reply
Fri 18th Dec '09 1:45pm
New Member
 
Quote Originally Posted by PitchouneN64ngc
Upgrade to vB 3.8.4. Simple like that.
I have vB 3.8.4
Reply
This petition for a change to Not a Bug was rejected
Fri 18th Dec '09 1:56pm
New Member
 
Turn of show_errors errors in php.ini.
That solves the problem.
Sun 27th Dec '09 4:20pm
New Member
 
i am still getting this error
i dont know what to do....

please help

Deprecated: Assigning the return value of new by reference is deprecated in /customers/pakistanipoint.com/pakistanipoint.com/httpd.www/includes/init.php on line 55

Deprecated: Assigning the return value of new by reference is deprecated in /customers/pakistanipoint.com/pakistanipoint.com/httpd.www/includes/init.php on line 107

Deprecated: Assigning the return value of new by reference is deprecated in /customers/pakistanipoint.com/pakistanipoint.com/httpd.www/includes/init.php on line 111

Deprecated: Assigning the return value of new by reference is deprecated in /customers/pakistanipoint.com/pakistanipoint.com/httpd.www/includes/init.php on line 119

Deprecated: Assigning the return value of new by reference is deprecated in /customers/pakistanipoint.com/pakistanipoint.com/httpd.www/includes/init.php on line 130

Deprecated: Assigning the return value of new by reference is deprecated in /customers/pakistanipoint.com/pakistanipoint.com/httpd.www/includes/init.php on line 134

Deprecated: Assigning the return value of new by reference is deprecated in /customers/pakistanipoint.com/pakistanipoint.com/httpd.www/includes/init.php on line 142

Deprecated: Assigning the return value of new by reference is deprecated in /customers/pakistanipoint.com/pakistanipoint.com/httpd.www/includes/init.php on line 211

Deprecated: Assigning the return value of new by reference is deprecated in /customers/pakistanipoint.com/pakistanipoint.com/httpd.www/includes/init.php on line 389

Deprecated: Assigning the return value of new by reference is deprecated in /customers/pakistanipoint.com/pakistanipoint.com/httpd.www/includes/class_core.php on line 2552
Reply
Sun 27th Dec '09 4:37pm
Senior Member
 
Read the previous message, it should help you.
Reply
Tue 29th Dec '09 3:42pm
New Member
 
Quote Originally Posted by PitchouneN64ngc
Read the previous message, it should help you.
cant even find that file (the php.ini)

Turn of show_errors errors in php.ini.
That solves the problem.
Reply
Tue 29th Dec '09 3:43pm
New Member
 
where can i find this?? (It should be "=& new" to "= new", )
Reply
Wed 30th Dec '09 7:04pm
Senior Member
 
php.ini is controlled by your host. You need to contact your host for that.
Reply
Thu 31st Dec '09 7:10pm
New Member
 
Quote Originally Posted by PitchouneN64ngc
php.ini is controlled by your host. You need to contact your host for that.
Okay
Thank You
Reply
Wed 6th Jan '10 8:46am
Member
 
i had my host edit the php.ini but still get errors funny did not have a problem till they came out with 3.8.4 PL2
Reply
Sun 17th Jan '10 5:13pm
Member
 
Yes same here. 3.8.4 PL2 and PHP 5.3.1 does not fix the issue. Getting it on usercp.php, showthread.php, group.php have not found others yet.

Thought this was supposed to be fixed in 3.8.4?? I updated my files with a latest download from today, still showing error.

I am not turning off error reporting in the php.ini to simply "hide the problem". Need this fixed. This bug should be open...

Can you provide a separate download for php4 users? I mean all do respect, php reached EOL in 2007. PHP 5 has been out for 6 years now.
Reply
Tue 9th Feb '10 10:39am
New Member
 
Quote Originally Posted by Ryan Ashbrook
Those need to be fixed manually.

Simply find the line it's talking about and change: =& to =

You're better off waiting for 3.8.4, though, because they are all fixed in that version.
I had the same problem, but the above fixed worked for me.

Thanks
Reply
Thu 15th Apr '10 11:12am
New Member
 
Code:
/* sample one */ 
error_reporting(E_ALL & ~E_NOTICE & -8191); 

/* sample two */ 
error_reporting(E_ALL & ~E_NOTICE & ~8192);
Where do you add this?
Reply
Reply
Page 1 of 2 1 2 LastLast