Support Forum

Advanced Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
general-topic
Page error for admin after svn up 7893
Avatar
Conrad_Farlow
Sheffield, UK
Member
Free Members
sp_UserOfflineSmall Offline
Feb 8, 2012 - 6:10 pm

I have the admin bar installed and I get the following message at the top of the page since svn up to 7893:

Warning: array_key_exists() [function.array-key-exists]: The second argument should be either an array or an object in /problem-with-post-edit-buttonome/barbelfi/public_html/abftest.co.uk/wp-content/plugins/simple-press/sp-api/sp-api-class-user.php on line 182

It don't look pretty either -Admin_bar_error.pngImage Enlarger

 

No problem for a normal member so must be related to the admin bar?

 

7893_member_no_error.pngImage Enlarger

 

 Help!

Conrad

Avatar
Conrad_Farlow
Sheffield, UK
Member
Free Members
sp_UserOfflineSmall Offline
Feb 8, 2012 - 6:16 pm

Oops it gets worse in topic view I get

Warning: array_key_exists() [function.array-key-exists]: The second argument should be either an array or an object in/problem-with-post-edit-buttonome/barbelfi/public_html/abftest.co.uk/wp-content/plugins/simple-press/sp-api/sp-api-class-user.php on line182

Warning: array_key_exists() [function.array-key-exists]: The second argument should be either an array or an object in/problem-with-post-edit-buttonome/barbelfi/public_html/abftest.co.uk/wp-content/plugins/simple-press/sp-api/sp-api-class-user.php on line182

Seeing a common theme here, perhaps I'll have a look at line 182....

edit had a look and it just made my head hurt, I look forward to reading about the fix in the morning 🙂

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Feb 8, 2012 - 8:03 pm

and this is the latest update???  line 182 does not make any sense...  or do you mean the latest from an svn up??

and if so,need Andy to chime in as its some new code he wrote today that I dont understand what its for...  though you  might change

                if(array_key_exists($id, $ins)) {

to

                if (!empty($ins) && array_key_exists($id, $ins)) {

Avatar
Conrad_Farlow
Sheffield, UK
Member
Free Members
sp_UserOfflineSmall Offline
Feb 9, 2012 - 12:41 am

Yes Steve that fixed it.

It was the latest from an svn up to 7893 like it says in the first post. Line 182 was empty the offending code was on line 363.

A minor blip wink

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Feb 9, 2012 - 4:13 am

Sorry about that Conrad.
I knew the problem was there but my internet connection went down at around 11 last night and I couldn't upload the final changes.

andy-signature.png
YELLOW
SWORDFISH
Forum Timezone: Europe/Stockholm
Most Users Ever Online: 1170
Currently Online:
Guest(s) 1
Currently Browsing this Page:
1 Guest(s)
Top Posters:
Mr Papa: 19448
Ike: 2086
Brandon: 864
kvr28: 804
jim: 650
FidoSysop: 577
Conrad_Farlow: 531
fiddlerman: 358
Stefano Prete: 325
Member Stats:
Guest Posters: 617
Members: 17359
Moderators: 0
Admins: 4
Forum Stats:
Groups: 7
Forums: 17
Topics: 10125
Posts: 79620