Make sermon manager compatible with PHP7
Issue #69
resolved
PHP7 beta is now stable and already some users are reporting that Sermon Manager does not function correctly when PHP7 is enabled.
Starting with: [Link Text] this forum user on the WP repository forum (Link URL) https://wordpress.org/support/topic/php7-support
His specific complaint is that sermon manager does not create new sermons. I've asked for further clarification.
Comments (3)
-
-
reporter Thank you Jacob for the clarification. We are working now to overhaul SM in preparation for ver 2.0 which, among other important fixes, will be PHP 7 compliant. We will keep a look out for this part of the code.
Again, thanks for the details...
-
- edited description
- changed status to resolved
Resolved with 2.0
- Log in to comment
Shalom,
PHP 7 does not allow for "break" statements outside of for, foreach, or switch statements. This was permissible in PHP 5.x but will now throw a fatal error. The getid3.lib.php file in the included getid3 library has "break" statement that causes a fatal error at line 285. Came across this error when clients had issues embedding their audio files in "sermons". Eliminating line 285 led to normal function again.
Error message:
Thanks, Jacob M.N.