vBulletin Mods

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

Cannot use a scalar value as an array
by z3r0
16 Jul 2019 15:16

Since updating one of my forums to vb3.8.11 I've been receiving the following error in my logs.


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

Any ideas on what the cause could be?

In Omnibus 16 Jul 2019 16:08

My best guess is you have an undefined variable in a modification.

Are you using a custom search mod or tool?

You should define the variable.

$var = array();

z3r0 16 Jul 2019 17:41

Quote:

Originally Posted by In Omnibus (Post 2599862)
My best guess is you have an undefined variable in a modification.

Are you using a custom search mod or tool?

I'm not using any search mods.

Quote:

You should define the variable.

$var = array();
Where would I do that?

Thanks

snakes1100 16 Jul 2019 20:03

Id suggest looking for any old plugins you had installed prior to the upgrade, example is sphinx search plugin for vb 3.x.x & remove them.

z3r0 18 Jul 2019 07:05

I've looked through all the plugins and can't find any that interact with search, I'll keep digging around and try and find what action causes the errors.

snakes1100 18 Jul 2019 09:30


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


Id chk forums with passwds, make sure its not +++++ing about a forum with a old passwd & a char it has in it.

Any getdaily or getnew code/hacks you installed

etc etc

z3r0 18 Jul 2019 14:12

No forums with passwords and I've just checked all plugins for getdaily & getnew but didn't turn anything up.

The error only seems to happen a couple of times a day but when it does I get 15-25 errors in less than a second, I'd checked crons but nothing matches the times and I've clicked just about everywhere I can on the site that triggers a search, but nothing has started it.

The error really isn't a problem, I just like having clean log files so I'll keep plugging away at finding the cause.

In Omnibus 18 Jul 2019 16:41

Quote:

Originally Posted by z3r0 (Post 2599879)
No forums with passwords and I've just checked all plugins for getdaily & getnew but didn't turn anything up.

The error only seems to happen a couple of times a day but when it does I get 15-25 errors in less than a second, I'd checked crons but nothing matches the times and I've clicked just about everywhere I can on the site that triggers a search, but nothing has started it.

The error really isn't a problem, I just like having clean log files so I'll keep plugging away at finding the cause.

Your PHP error log should tell you the script causing the error if you have the errors set to verbose output.

If you open the file in a text editor what is the content of line 2523 per the error you originally posted?

C:\root\Forums\mysite\search.php on line 2523


All times are GMT. The time now is 20:35.

Powered by vBulletin® Version 3.8.12
Copyright © 2019, 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.