• 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)
  • Plugin Author BuddyDev

    (@buddydev)

    Hi,
    Thank you for using MediaPress.

    I am sorry for the inconvenience. Those two are the constants defined by WordPress core just after the ‘setup_theme’ hook and before the ‘after_setup_theme’
    From your error, It seems something is trying to fetch some script or default thumbnail image from MediaPress on or before the ‘setup_theme’ action.

    Can you please investigate and let me know which of the plugin or code is causing it. It needs to be resolved in that plugin/code but I will still like to check why is this happening and assist you with some solution.

    Regards

    Brajesh

Viewing 1 replies (of 1 total)
  • The topic ‘Mediapress PHP warning’ is closed to new replies.