• Resolved fuhrmann6020

    (@fuhrmann6020)


    Hello,
    we have the error notice below, how could I solve this?
    I have the lastest route version

    Notice: Undefined index: ROUTEAPP_ENVIRONMENT_ENDPOINT in /home/<path removed>/wp-content/plugins/routeapp/includes/class-routeapp-api-client.php on line 73

    thx
    Georg

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Route

    (@routedev)

    Hi @fuhrmann6020, and thanks for reaching us!

    We’re very sorry to hear that you’re facing this problem. We’ll be working to fix the issue in the next release.

    Also, this actually happens because you have configured a developer log level (e.g., E_ALL) for the error_reporting setting.

    https://www.php.net/manual/en/function.error-reporting.php
    https://www.php.net/manual/en/errorfunc.constants.php

    @routedev I’m also experiencing this new PHP Notice, and it’s filling my debug log so that it’s difficult to debug other issues. When will you provide a fix?

    This shouldn’t have been marked resolved. Turning off logging is NEVER a solution! Fixing the error is the solution. Any idea when this will be fixed?

    For those who want a solution – until Route fixes this, wrap line 73 of /includes/class-routeapp-api-client.php in an if statement.

    Replace:
    $custom_env = $_SERVER['ROUTEAPP_ENVIRONMENT_ENDPOINT'];

    with:

    if(isset($_SERVER['ROUTEAPP_ENVIRONMENT_ENDPOINT'])) {
        $custom_env = $_SERVER['ROUTEAPP_ENVIRONMENT_ENDPOINT'];
    }
    
    • This reply was modified 3 years, 2 months ago by dwdonline.
    Plugin Author Route

    (@routedev)

    Hi,

    This has been fixed at version 2.0.0.

    Please upgrade the plugin and let us know if you have any further problems.
    Thanks

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘error ROUTEAPP_ENVIRONMENT_ENDPOINT’ is closed to new replies.