vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=252)
-   -   error message PHP7 (https://vborg.vbsupport.ru/showthread.php?t=328521)

Kraxell 01-16-2021 09:10 AM

error message PHP7
 
Hey,

i installed a plugin and got an error when i load the site:

ParseError: syntax error, unexpected 'new' (T_NEW) in ..../includes/init.php(357) : eval()'d code on line 22
PHP Code:

if (!defined('VB_AREA') AND !defined('THIS_SCRIPT'))
{
    echo 
'VB_AREA and THIS_SCRIPT must be defined to continue';
    exit;
}

if (isset(
$_REQUEST['GLOBALS']) OR isset($_FILES['GLOBALS']))
{
    echo 
'Request tainting attempted.';
    exit;
}

@
ini_set('pcre.backtrack_limit', -1); 

Any idea how to solve it?


PHP Code:

    exit; 

is line 22.

snakes1100 01-16-2021 09:53 AM

Edit the file/plugin and change:

=& new

to

= new

Kraxell 01-16-2021 10:10 AM

There isn't such a code :(

snakes1100 01-16-2021 10:19 AM

init.php

edit, didnt mean to paste the 357 reference in the response.

Kraxell 01-16-2021 10:47 AM

PHP Code:

// $new_datastore_fetch does not require single quotes
$new_datastore_fetch $datastore_fetch = array();

(
$hook vBulletinHook::fetch_hook('init_startup')) ? eval($hook) : false;

if (!empty(
$datastore_fetch))


Line 357 would be
PHP Code:

($hook vBulletinHook::fetch_hook('init_startup')) ? eval($hook) : false


snakes1100 01-16-2021 11:03 AM

remove all instances of =& new

=& new

to

= new

in any vbulletin files as you havent bothered to update your vbulletin.

Kraxell 01-17-2021 04:11 PM

Nope, it doesnt help :(

snakes1100 01-18-2021 08:41 AM

what version of vb are you running?

shka 01-18-2021 11:03 AM

Quote:

Originally Posted by Kraxell (Post 2605807)
i installed a plugin and got an error when i load the site:

Which plugin?

Kraxell 01-18-2021 12:29 PM

Plugin is vbet (vbulletin enterprise translator). Iam using vb 4.2.5.


All times are GMT. The time now is 06:32 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.01009 seconds
  • Memory Usage 1,743KB
  • 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)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete