• ablachman

    (@ablachman)


    I recently upgraded my plugin to 2.0.5, but unfortunately had to downgrade back as I was seeing mobile redirection errors that were breaking advertisements on my site.

    This is the error I got:

    PHP message: PHP Fatal error:  Uncaught Error: Undefined class constant 'MOBILE_REDIRECT' in /www/../public/wp-content/plugins/amp/src/MobileRedirection.php:50
    Stack trace:
    #0 /www/../public/wp-content/plugins/amp/src/Infrastructure/ServiceBasedPlugin.php(296): AmpProject\AmpWP\MobileRedirection->register()
    #1 /www/../public/wp-content/plugins/amp/src/Infrastructure/ServiceBasedPlugin.php(213): AmpProject\AmpWP\Infrastructure\ServiceBasedPlugin->register_service('mobile_redirect...', 'AmpProject\\AmpW...')
    #2 /www/../public/wp-content/plugins/amp/src/Infrastructure/ServiceBasedPlugin.php(144): AmpProject\AmpWP\Infrastructure\ServiceBasedPlugin->register_services()
    #3 /www/../public/wp-content/plugins/amp/includes/amp-helper-functions.php(73): AmpProject\AmpWP\Infrastructure\ServiceBasedPlugin->register()
    #4 /www/../public/wp-includes/class-wp-hook.php(287): amp_bootstrap_plugin('')
    

    Is there any reason for this?

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Mobile redirection error’ is closed to new replies.