Quantcast
Channel: 500 – WordPress.org Forums
Viewing all articles
Browse latest Browse all 2443

SHREDDERz on "[Plugin: Sermon Manager] PHP Fatal error"

$
0
0

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:

2016/07/25 12:20:51 [error] 22565#22565: *7144248 FastCGI sent in stderr:
"PHP message: PHP Fatal error:  'break' not in the 'loop' or 'switch' context in /chroot/home/domainname/public_html/wp-content/plugins/sermon-manager-for-wordpress/includes/getid3/getid3.lib.php on line 285" while reading response header from upstream,
client: 198.51.xxx.xxx,
server: domainname.org,
request: "POST /wp-admin/post.php HTTP/1.1", upstream: "fastcgi://unix:/var/run/php/php7.0-fpm.sock:", host: "www.domainname.org",
referrer: "http://www.domainname.org/wp-admin/post.php?post=1030&action=edit"

Jacob


Viewing all articles
Browse latest Browse all 2443

Trending Articles