PHP 7.4 HUGE error
-
We recently updated this plugin, AND updated the cPanel to PHP 7.4, and immediately the site was generating massive amounts of PHP errors similar to this:
[13-May-2021 15:47:36 UTC] PHP Warning: Use of undefined constant name – assumed ‘name’ (this will throw an Error in a future version of PHP) in /home/myqualityoptics/public_html/wp-content/themes/quality-optics-2020/woocommerce/pdf/quality-optics-order-form/invoice.php on line 46
[13-May-2021 15:47:36 UTC] PHP Warning: Use of undefined constant name – assumed ‘name’ (this will throw an Error in a future version of PHP) in /home/myqualityoptics/public_html/wp-content/themes/quality-optics-2020/woocommerce/pdf/quality-optics-order-form/invoice.php on line 52
[13-May-2021 15:47:36 UTC] PHP Warning: Use of undefined constant value – assumed ‘value’ (this will throw an Error in a future version of PHP) in /home/myqualityoptics/public_html/wp-content/themes/quality-optics-2020/woocommerce/pdf/quality-optics-order-form/invoice.php on line 53
[13-May-2021 15:47:36 UTC] PHP Warning: Use of undefined constant name – assumed ‘name’ (this will throw an Error in a future version of PHP) in /home/myqualityoptics/public_html/wp-content/themes/quality-optics-2020/woocommerce/pdf/quality-optics-order-form/invoice.php on line 58(multiple lines, all the way up to line 689 and then it stops)
I have my back-end developer looking at our customized invoice.php file to see if it needs anything updated, but as soon as I switch the cPanel back to PHP 7.4, the errors stop generating.
Thoughts?
- The topic ‘PHP 7.4 HUGE error’ is closed to new replies.