Modern Event Illegal String Offset Error

I’m receiving an illegal string offset error on my event pages. It says
Warning: illegal string offset ‘id’ in /home…/modern-events-calendar/app/skins/list.php on line 88.

Hello @HGPower,

Thanks for posting in! Can you please confirm that you have updated to the latest versions?
Our latest versions are:

  • X theme 6.4.6
  • Cornerstone 3.4.6
  • Modern Events Calendar 3.3.5
  • WordPress 5.0.3

This latest release contains fixes for several issues so be sure to check out the changelog (http://theme.co/changelog/).

_After doing the updates, always remember to clear all caches (if you are using WP Rocket, WP SuperCache or W3 Total Cache) when updating so that the code from the latest release is always in use. This will help you to avoid any potential errors.-

Please let us know how it goes.

Thanks for the response. ME and WP were already updated. I updated X theme and Cornerstone, cleared all the caches (both in admin and my browser), but the error is still showing on the pages. Example here (it’s on the left side of the page).

Hi There @HGPower

Thanks for writing in! Could you please try switching your server’s PHP version to 7.1.x or 7.2.x and see if that resolves your issue. If you don’t have an option to change your PHP version through your hosting control panel, please ask your hosting provider to update it for you.

In the mean time, you can hide those errors in the frontend by disabling WP_DUBUG mode on your WordPress. To do that, please follow this guide here (https://codex.wordpress.org/WP_DEBUG).

Hope that helps.

Thank you. I updated PHP to 7.1 and that seems to have done the trick. 7.2 is available. Would that be the best option?

Hi There @HGPower

X theme and Cornerstone plugin is compatible with PHP v7.2.x. However as for now, I think it’s best to keep PHP v7.1.x because some of the plugins may not fully compatible with the latest version of PHP.

Thanks!

Great. Thanks.

You’re welcome!

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.