View Full Version : Deprecated error with PHP 5.3.0
Coen Jeukens
11-17-2009, 07:57 AM
Dear Brian,
Had to reinstall my machine. New install came with latest Apache and PHP (5.3.0).
Now CMPS 3.2.1 is giving a "deprecated" error
Deprecated: Assigning the return value of new by reference is deprecated in /forum/includes/init.php
Error appears on multiple lines.
The gist I have found on internet is that it has to do with 5.3.0.
Luckily my ISP is still running 5.2.8. but I can't do any local web development anymore.
Any suggestions?
Coen
Brian
11-17-2009, 10:21 AM
If you have a good text editor that you can do a find/replace with, then you *should* be able to solve that by doing a find/replace on all CMPS files by looking for this:
error_reporting(E_ALL & ~E_NOTICE);
And replace with this:
error_reporting(E_ALL & ~E_NOTICE & ~8192);
Coen Jeukens
11-17-2009, 10:51 AM
Brian,
Performed a find/replace on all vBa files.
Get and parse error on the first file cmps_index.php.
Parse error: syntax error, unexpected '~' in /Users/dessence/Sites/strictly/cmps_index.php on line 11
Below the first 14 lines of cmps_index.php after find/replace.
<?php
// ++=========================================================================++
// || vBadvanced CMPS v3.2.1 (vB 3.6 - vB 3.8) - 110440
// || © 2003-2009 vBadvanced.com - All Rights Reserved
// || This file may not be redistributed in whole or significant part.
// || http://vbadvanced.com
// || Downloaded 14:37, Wed Jul 29th 2009
// || 250110440_402248044055
// ++ ========================================================================++
error_reporting(E_ALL & ~E_NOTICE & ~8192);
define('THIS_SCRIPT', 'adv_index');
define('VBA_PORTAL', true);
define('VBA_SCRIPT', 'CMPS');
Have a tweak?
Brian
11-17-2009, 10:59 AM
Now that's a werid one... I added the same code to the index.php file here and tested things on my localhost, but it seems to work fine on both for me. That same code should be at the top of every vBulletin file as well if you're running the latest version, so I would think your vB files should be returning that same error. Perhaps you could try changing that line back to the original just in your cmps_index.php file and see what happens then?
Coen Jeukens
11-17-2009, 11:11 AM
Brian,
You are right. It's a weird one. Found the issue.
I did a copy paste from your code.
Apparently the space was not copied as a space but as a different character looking like a space.
I manually deleted and added the spaces again.
And it works again.
Great.
Thanks
tommyxv
02-01-2010, 03:19 PM
Has this been fixed in the latest release?
genkds
03-02-2010, 08:05 PM
im still having trouble....
Nvm, got it to work...Thanks
vBulletin® v3.8.4, Copyright ©2000-2012, Jelsoft Enterprises Ltd.