Error with PHP 5.6.40
-
I just updated PHP on my development machine to 5.6.40-5. fancybox.php now gets an error on line 236. With this version of PHP, it is now considered an error to reference/use an undefined variable. Previously, it was a silent error. Now it generates an error message in the page.
The line (236) in error is $afterLoad .= ‘””‘; Looking at the rest of the if/else statements, this should have been a direct assignment, not a concatenation. The other two sections are a direct assignment. Obviously, $afterLoad is not defined at the start of this if statement. I have changed my local copy to be $afterLoad = ‘””‘; This works fine. Please incorporate this change in you next release.
I suspect FancyBox for WordPress does not support PHP 7.x. I am planning to upgrade my site to PHP 7 soon, so I was wondering if you have plans to upgrade to PHP 7 compatability. As I work on my local dev system to upgrade to PHP 7, I will be discovering plug-in incompatability. If you like, I can report to you what problems I find with fancybox.
The topic ‘Error with PHP 5.6.40’ is closed to new replies.