PDA

View Full Version : Class core issue


Binoy
08-23-2011, 03:41 PM
Parse error: syntax error, unexpected T_VARIABLE in /home/******/public_html/forum/includes/class_core.php on line 990

Please advise me on the above error. Thank you.

$display_db_error = (VB_AREA == 'Upgrade' OR VB_AREA == 'Install' OR $vbulletin->userinfo['usergroupid'] == 6 OR ($vbulletin->userinfo['permissions']['adminpermissions']$vbulletin->bf_ugp_adminpermissions));
// Hide the MySQL Version if its going in the source

kh99
08-23-2011, 05:09 PM
You somehow lost an '&' in there:

$display_db_error = (VB_AREA == 'Upgrade' OR VB_AREA == 'Install' OR $vbulletin->userinfo['usergroupid'] == 6 OR ($vbulletin->userinfo['permissions']['adminpermissions'] & $vbulletin->bf_ugp_adminpermissions));
// Hide the MySQL Version if its going in the source

Binoy
08-23-2011, 06:02 PM
Thanks kh99

After that I'm getting an error like this. Please advise

Deprecated: Assigning the return value of new by reference is deprecated in /home/****/public_html/forum/includes/init.php on line 49

Deprecated: Assigning the return value of new by reference is deprecated in /home/****/public_html/forum/includes/init.php on line 101

Deprecated: Assigning the return value of new by reference is deprecated in /home/****/public_html/forum/includes/init.php on line 105

Deprecated: Assigning the return value of new by reference is deprecated in /home/****/public_html/forum/includes/init.php on line 113

Deprecated: Assigning the return value of new by reference is deprecated in /home/****/public_html/forum/includes/init.php on line 124

Deprecated: Assigning the return value of new by reference is deprecated in /home/****/public_html/forum/includes/init.php on line 128

Deprecated: Assigning the return value of new by reference is deprecated in /home/****/public_html/forum/includes/init.php on line 136

Deprecated: Assigning the return value of new by reference is deprecated in /home/****/public_html/forum/includes/init.php on line 205

Deprecated: Assigning the return value of new by reference is deprecated in /home/****/public_html/forum/includes/init.php on line 383

Deprecated: Assigning the return value of new by reference is deprecated in /home/****/public_html/forum/includes/class_core.php on line 2552



Unable to add cookies, header already sent.
File: /home/****/public_html/forum/includes/init.php
Line: 49

kh99
08-23-2011, 06:53 PM
I think what you really should do is upgrade to the latest vb3 version. But if you don't want to do that, what you can do is find all the scripts with this line:

error_reporting(E_ALL & ~E_NOTICE);


and change it to this:

error_reporting(E_ALL & ~E_NOTICE & ~8192);

Binoy
08-24-2011, 06:53 AM
Many thanks kh99 ..that really worked for me :)