Today, Installed Simple calendar which enable Google calendar in WordPress site. It’s happend on admin page of Simple Calendar settings. I put API-Key into Google API Key field and Save changes. But Never saved! Did again and again. Never.

First, I check this link carefully and do that.

Troubleshooting Theme, Plugin and Widget Conflicts

But same result.

Second, Enable WP_DEBUG and DEBUG_LOG in wp-config.php to check what is going on. Here is logs.

[27-Jan-2017 04:30:13 UTC] PHP Warning: Illegal string offset ‘google’ in /www/wp-content/plugins/google-calendar-events/includes/abstracts/admin-page.php on line 186
[27-Jan-2017 04:30:13 UTC] PHP Notice: Array to string conversion in /www/wp-content/plugins/google-calendar-events/includes/abstracts/admin-page.php on line 186

What’s happening? My another dev site which also installed Simple Calendar is going well.

Oh, I’ve got it.

Differentiation between Dev and this. PHP version is not same. Is this caused? Dev site is PHP 7.0.12. AND This is PHP 7.1.0.

Then, PHP version down grade to 5.6.27 and Try again.

Of course, It’s perfect! 😄