PHP Fatal Error After Upgrading to PHP 7.4
-
I have upgraded to PHP 7.4 and ever since i did this, I am getting lots of PHP errors and the page building isn’t working. I checked the logs and I see this
PHP Fatal error: Uncaught Error: [] operator not supported for strings in /wp-content/plugins/so-widgets-bundle/base/inc/post-selector.php:106
I checked the line of code and it is simply adding an ID to an array. For some reason it seems that this argument is not an array but a string? $query[‘post__not_in’][] = get_the_ID();
Any idea what could have caused this and if there is a way to fix it?
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘PHP Fatal Error After Upgrading to PHP 7.4’ is closed to new replies.