Mediapress PHP warning
-
On a WordPress (version 6.2.2) site using the MediaPress plugin (version 1.5.6), with debug mode enabled, the site logged these two errors:
PHP Warning: Use of undefined constant STYLESHEETPATH - assumed 'STYLESHEETPATH' (this will throw an Error in a future version of PHP) in /home/*/public_html/wp-content/plugins/mediapress/core/mpp-template-helpers.php on line 180 PHP Warning: Use of undefined constant TEMPLATEPATH - assumed 'TEMPLATEPATH' (this will throw an Error in a future version of PHP) in /home/*/public_html/wp-content/plugins/mediapress/core/mpp-template-helpers.php on line 182
The site is running PHP 7.4, transitioning towards PHP 8.0.
Looking at the code in mpp-template.php, as the error indicates, the constants are referenced but not wrapped in single quotation marks. Is that the issue, or is there something else going on?
Thanks in advance!
The page I need help with: [log in to see the link]
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Mediapress PHP warning’ is closed to new replies.