vBulletin Mods

The Official vBulletin Modifications Site
https://www.vbulletin.org/forum/showthread.php?t=328521

error message PHP7
by Kraxell
16 Jan 2021 11:10

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

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Any idea how to solve it?



Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

is line 22.

snakes1100 16 Jan 2021 11:53

Edit the file/plugin and change:

=& new

to

= new

Kraxell 16 Jan 2021 12:10

There isn't such a code :(

snakes1100 16 Jan 2021 12:19

init.php

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

Kraxell 16 Jan 2021 12:47


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Line 357 would be

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.


snakes1100 16 Jan 2021 13:03

remove all instances of =& new


=& new

to

= new

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

Kraxell 17 Jan 2021 18:11

Nope, it doesnt help :(

snakes1100 18 Jan 2021 10:41

what version of vb are you running?

shka 18 Jan 2021 13:03

Quote:

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

Which plugin?

Kraxell 18 Jan 2021 14:29

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

shka 18 Jan 2021 15:00

Sure vbet is your problem? Other plugins all disabled for test?

Kraxell 18 Jan 2021 15:04

Quote:

Originally Posted by shka (Post 2605838)
Sure vbet is your problem? Other plugins all disabled for test?

yes. The site works fine until i install vbet.

Hostboard 21 Jan 2021 15:00

What version of PHP are you running? VB 4.2.5 will work with and up to PHP 7.1 (might limp along under PHP 7.2 with warnings turned off). Mods are completely hit and miss. Remember the majority were written when PHP 5.x was the norm. vBet is clearly the issue and you will need to work with a PHP developer (you do not need a Vbulletin developer) to look at your PHP log file and recode the lines that have issues. It really should not be too difficult...


All times are GMT. The time now is 07:55.

Powered by vBulletin® Version 3.8.14
Copyright © 2021, MH Sub I, LLC dba vBulletin. All Rights Reserved. vBulletin® is a registered trademark of MH Sub I, LLC
Copyright ©2001 - , vbulletin.org. All rights reserved.