Support

Home Forums Event Espresso Premium Update causing error message

Update causing error message

Posted: June 5, 2013 at 6:29 pm


Andrew Clarke

June 5, 2013 at 6:29 pm

Just installed the latest updates:

Event Espresso 3.1.33

Event Espresso calendar 2.0.6

 

Now getting the following error message on all pages:

Warning: array_key_exists() [function.array-key-exists]: The second argument should be either an array or an object in /home/xxxxx/public_html/wp-content/plugins/espresso-social/espresso-social.php on line 156

 

Running WordPress 3.4.2


Andrew Clarke

June 5, 2013 at 6:48 pm

My workaround is to disable the Event Espresso – Social Media plugin. But a fix would be nice.


Garth

  • Support Staff

June 5, 2013 at 10:16 pm

What version of the Social Media add-on were you using?

Do you have outdated templates in the espresso/templates folder (since you probably just upgraded)?


Andrew Clarke

June 6, 2013 at 12:44 am

Event Espresso – Social Media 1.1.5

 

All of the files in the /plugins/event-espresso/templates folder have the date 06/06/2013

 

 


Dean

June 6, 2013 at 2:46 am

Hi,

Sorry about that this seems to have escaped our notice in testing.

If you feel comfortable editing the files, you could add the following to the espresso-social.php file in the social plugin directory.

if($event_meta == NULL) { $event_meta = array($event_meta); }

it will go directly below

$event = espresso_get_event( $event_id );

which is on line 155

In the mean time I have submitted this as a potential fix to the developers.


Tim Sherwood

June 6, 2013 at 1:32 pm

Same issue. Just update, I’ve only just started using it in the last month, haven’t edited anything, and it’s on the stock wordpress theme – should be ideal conditions for it to work correctly.


Brad Slusher

June 6, 2013 at 2:19 pm

Editing the espresso-social.php file as suggested by Dean did fix the problem for our website as well.


Integrated Listening

June 6, 2013 at 2:43 pm

Dean Robinson‘s code fix resolved issues (there were two more errors which came up after updating Event Espresso Calndar).


Dean

June 7, 2013 at 1:41 am

@tim, its only just come to our attention so sorry about that, the guys say the temporary code fix I provided works so you may wish to try that, otherwise please bear with us, I have requested a developer to look into the matter.

@brad – great, glad its fixed!

@Integrated Listening – other errors? Could you expand on that please, if something else is occurring which this code snippet has fixed we would love to know. Thanks


Josh

  • Support Staff

June 7, 2013 at 8:48 am

Hi everyone!

There’s an update for the social buttons add-on now available that fixes the underlying issue. It’s version 1.1.5.1. If you go to Event Espresso>General Savings and save the settings there, it will ping our servers and our servers will send the update notification. Or if you’re reading this in the future, the update notification will already be there.


Integrated Listening

June 7, 2013 at 9:02 am

@dean Yeah, sorry, I should have extrapolated. Before I applied your fix, I saw an update for EE Calendar, and thought it might fix the initial issue. When I installed the update, two more error codes appeared on the top of the screen. I’m sorry, I didn’t wind up copying them before I applied your code fix, which got rid of all the error messages. So, all is well.


Josh

  • Support Staff

June 7, 2013 at 2:39 pm

@Integrated Listening

There’s an update to the social add-on that fixes the underlying issue that was first reported in this thread.


Andrew Clarke

June 10, 2013 at 5:01 pm

I’m not seeing any update notification. How can I get this fix update?


Dean

June 11, 2013 at 12:09 am

Hi Andrew,

If the notification isnt coming through for some reason, you can try de-activating and reactivating the add on plugin. You can also manually update by downloading the latest version form your account page, deactivating and deleting the plugin on your site and uploading the latest version via the Plugins > Add New > Upload option.


Andrew Clarke

June 11, 2013 at 5:13 pm

Thanks Dean, that fixed it.

The support post ‘Update causing error message’ is closed to new replies.

Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.

Event Espresso