[solved] Fatal Error with settings file


#1

Hey all together,

today I wanted to restart an old wordpress instance with podlove publisher installed. I updated the publisher to the newest version, wich had no error messages during that process.

I clicked a link in the sidebar to end up with the following error message:

Fatal error: Arrays are not allowed in class constants in /path/to/my/host/wp-content/plugins/podlove-podcasting-plugin-for-wordpress/lib/modules/shows/settings/settings.php on line 11

I checked the noted line in the settings.php, it was this one:

const SHOW_META_DATA = [ 'subtitle', 'language', 'image' ];

If I delete this line out of the settings file I’m able to get access to my backend again, but only as long as I don’t make any changes to the publisher or its settings.

Is anyone able to help me with this? As far as I remember this was one of the reasons back then why I stoped working with the publisher, because I couldn’t understand the problem and didn’t find a lasting solution.

Greetings
Morgan


#2

You can fix it by updating your PHP to at least version 5.6.

However I will also fix this in a future patch since the plugin is still advertised to run on PHP 5.4.


#3

Great, thank you. Upgrading PHP seems to solve the issue.