Inserted PHP Fatal Error in version 6.1
-
Jetpack version 6.1 is generating a fatal error when a particular sharing feature is turned on. Let me explain.
I’ve upgraded to version 6.1 today. Since that upgrade, if I build a new page that includes some PHP (I do this using Will Bontrager’s Insert PHP plugin), if my PHP contains any “functions”, I get a fatal error like this:
Fatal error: Cannot redeclare cleanup() ...
In this example, my first PHP function happens to be called “cleanup”.
The error is specifically caused by the Jetpack “Sharing” feature called:
Automatically share your posts to social networks.
When this feature is on, the fatal error occurs. When this feature is turned off. The fatal error is gone.
- The topic ‘Inserted PHP Fatal Error in version 6.1’ is closed to new replies.