vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Class core issue (https://vborg.vbsupport.ru/showthread.php?t=269008)

Binoy 08-23-2011 03:41 PM

Class core issue
 
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.

PHP Code:

$display_db_error = (VB_AREA == 'Upgrade' OR VB_AREA == 'Install' OR $vbulletin->userinfo['usergroupid'] == 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:

PHP Code:

$display_db_error = (VB_AREA == 'Upgrade' OR VB_AREA == 'Install' OR $vbulletin->userinfo['usergroupid'] == 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:

PHP Code:

error_reporting(E_ALL & ~E_NOTICE); 


and change it to this:

PHP Code:

error_reporting(E_ALL & ~E_NOTICE & ~8192); 


Binoy 08-24-2011 06:53 AM

Many thanks kh99 ..that really worked for me :)


All times are GMT. The time now is 12:39 AM.

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.01039 seconds
  • Memory Usage 1,726KB
  • 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
  • (4)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (5)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