Update 2.4.9 functions.php throws error (
-
Aloha!
Thanks for the great plug-in and all the help in the past. Sadly we seem to have a new problem.
Our office manager updated the plugin today to ver 2.4.9 and was immediately greeted by a downed site showing:
Parse error: syntax error, unexpected T_FUNCTION in /home/content/o/a/h/oahuintergroup/html/wordpress/wp-content/plugins/12-step-meeting-list/includes/functions.php on line 866
The site is running on GoDaddy Linux and I believe it’s using PHP 5.3.
I checked line 866 and it’s this function:
//convert the array to UTF-8 // array_walk_recursive($meetings, function(&$item, $key) { // if (!mb_detect_encoding($item, 'utf-8', true)) { // $item = utf8_encode($item); // } // });
I’ve commented it out and that brings the site back up and the plug-in seems to work okay. But, of course, I’m concerned.
I’m no longer involved with the website on a regular basis but the manager called me and luckily I was able to get things back up. The current team doesn’t necessarily have the skills to go into the code and admittedly PHP isn’t my strong suit either. 🙂
Thanks!
Bob
- The topic ‘Update 2.4.9 functions.php throws error (’ is closed to new replies.