Support Forum

Page error for admin after svn up 7893

CF Conrad_Farlow
Conrad_Farlow
Member

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.png

 

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

 

7893_member_no_error.png

 

 Help!

Conrad

4 Answers

New Answer

CF Conrad_Farlow
Conrad_Farlow
Member

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 🙂

MP Mr Papa
Mr Papa
Member

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)) {

CF Conrad_Farlow
Conrad_Farlow
Member

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

YS Yellow Swordfish
Yellow Swordfish
Member

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.