• Resolved ntellisense

    (@ntellisense)


    We noticed our related post feature is not working. When debugging the site we are getting the “The server port value is unexpected” error, and have tried adding the “JETPACK_SIGNATURE__HTTP_PORT” constant to wp-config.php, but the error still occurs.

    [8] => Array
    (
    [name] => test__server_port_value
    [pass] =>
    [message] => The server port value is unexpected.
    [resolution] => Try adding the following to your wp-config.php file: define( ‘JETPACK_SIGNATURE__HTTP_PORT’, … );
    [group] => Array
    (
    [0] => default
    )

    )

    • This topic was modified 5 years, 8 months ago by ntellisense.
    • This topic was modified 5 years, 8 months ago by ntellisense.
Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Contributor James Huff

    (@macmanx)

    Have you added the actual port number where the is in the example above? I’m sorry the error isn’t more specific about that.

    For example, if the port is 443, you’d add:

    define( 'JETPACK_SIGNATURE__HTTP_PORT', 443 );

    Thread Starter ntellisense

    (@ntellisense)

    This is Jetpack v7.1.1 on a Pantheon environment

    I have added the constant definition as well as the port value, but the error remains. I’ve also tried defining the HTTP and HTTPS constant value similar to the below:

    // I used the recommended server port value given by Jetpack
    define( ‘JETPACK_SIGNATURE__HTTP_PORT’, 443 );
    define( ‘JETPACK_SIGNATURE__HTTP_PORT’, 443 );

    I’ve also tried this…

    define( ‘JETPACK_SIGNATURE__HTTP_PORT’, $_SERVER[‘SERVER_PORT’] );
    define( ‘JETPACK_SIGNATURE__HTTPS_PORT’, $_SERVER[‘SERVER_PORT’] );

    to dynamically set these values on different environments, but I still get this error:

    Debugging Center
    Testing your site’s compatibility with Jetpack…
    The server port value is unexpected.

    Try adding the following to your wp-config.php file: define( ‘JETPACK_SIGNATURE__HTTP_PORT’, ‘THE PROVIDED PORT VALUE’ );

    Also, when using the Jetpack Debug tool at https://jetpack.com/support/debug/ I get this error for the website:

    Unknown error
    An unknown error has occurred.

    If you continue to get this error, please check out our troubleshooting guide or contact support.

    • This reply was modified 5 years, 8 months ago by ntellisense.
    • This reply was modified 5 years, 8 months ago by ntellisense.
    Plugin Support lizkarkoski

    (@lizkarkoski)

    Good morning –

    What is the site URL?

    If you don’t want to share that here just send us a note via https://jetpack.com/contact-support/?rel=support

    Thread Starter ntellisense

    (@ntellisense)

    Plugin Contributor James Huff

    (@macmanx)

    Have you also defined Staging Mode, since this is a staging site? https://jetpack.com/support/staging-sites/

    Thread Starter ntellisense

    (@ntellisense)

    JETPACK_STAGING_MODE is not being defined, it is running as a production site. Also, the same error occurs on the dev, test and live environment.

    Plugin Contributor James Huff

    (@macmanx)

    Ok, what is the URL of the live non-development site with the issue?

    Thread Starter ntellisense

    (@ntellisense)

    Plugin Support lizkarkoski

    (@lizkarkoski)

    Thanks for that info.

    Running live-pbh.pantheonsite.io through the debug tool shows us:

    Array
    (
        [code] => failed_test__server_port_value
        [message] => The server port value is unexpected.
        [data] => Array
            (
                [resolution] => Try adding the following to your wp-config.php file: define( 'JETPACK_SIGNATURE__HTTP_PORT', 18491 );
            )
    
    )

    Please give that a try and then run the URL back through https://jetpack.com/support/debug/

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Debug error: The server port value is unexpected’ is closed to new replies.