Register Members List Search Today's Posts Mark Forums Read

Reply
 
Thread Tools
  #1  
Old 16 Jul 2019, 15:16
z3r0's Avatar
z3r0 z3r0 is offline
 
Join Date: Apr 2005
Location: Lancashire, UK
Cannot use a scalar value as an array

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?
__________________
Better VB.org search
Reply With Quote
  #2  
Old 16 Jul 2019, 16:08
In Omnibus's Avatar
In Omnibus In Omnibus is online now
 
Join Date: Apr 2010
Real name: Kris
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();
Reply With Quote
  #3  
Old 16 Jul 2019, 17:41
z3r0's Avatar
z3r0 z3r0 is offline
 
Join Date: Apr 2005
Location: Lancashire, UK
Originally Posted by In Omnibus View Post
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.

You should define the variable.

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

Thanks
__________________
Better VB.org search
Reply With Quote
  #4  
Old 16 Jul 2019, 20:03
snakes1100 snakes1100 is offline
 
Join Date: Dec 2001
Real name: Anthony
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.
Reply With Quote
  #5  
Old 18 Jul 2019, 07:05
z3r0's Avatar
z3r0 z3r0 is offline
 
Join Date: Apr 2005
Location: Lancashire, UK
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.
__________________
Better VB.org search
Reply With Quote
  #6  
Old 18 Jul 2019, 09:30
snakes1100 snakes1100 is offline
 
Join Date: Dec 2001
Real name: Anthony

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
Reply With Quote
  #7  
Old 18 Jul 2019, 14:12
z3r0's Avatar
z3r0 z3r0 is offline
 
Join Date: Apr 2005
Location: Lancashire, UK
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.
__________________
Better VB.org search
Reply With Quote
  #8  
Old 18 Jul 2019, 16:41
In Omnibus's Avatar
In Omnibus In Omnibus is online now
 
Join Date: Apr 2010
Real name: Kris
Originally Posted by z3r0 View Post
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
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


New To Site? Need Help?

All times are GMT. The time now is 10:53.

Layout Options | Width: Wide Color: