• Resolved SaladGoat

    (@saladgoat)


    WordPress keeps telling me to upgrade my PHP. Currently running 7.3.2. So I upgrade to 7.4 and suddenly I get an email telling me my site “is experiencing a technical issue”. The site itself seems to work fine, but the Dashboard is messed up. It shows the following error message:
    Fatal error: Uncaught Error: Call to undefined function ctype_digit() in <root>/wp-content/plugins/jetpack/jetpack_vendor/automattic/jetpack-connection/legacy/class-jetpack-signature.php:218 Stack trace: #0 <root>/wp-content/plugins/jetpack/jetpack_vendor/automattic/jetpack-connection/src/class-client.php(184): Jetpack_Signature->sign_request('tC9MFJj9FFud$gX...', 1661127076, 't66nXwXJKc', '', 'GET', 'https://dashboa...', NULL, false) #1 <root>/wp-content/plugins/jetpack/jetpack_vendor/automattic/jetpack-connection/src/class-client.php(37): Automattic\Jetpack\Connection\Client::build_signed_request(Array, NULL) #2 <root>/wp-content/plugins/jetpack/modules/stats.php(1310): Automattic\Jetpack\Connection\Client::remote_request(Array) #3 <root>/wp-content/plugins/jetpack/jetpack_vendor/automattic/jetpack-connection/legacy/class-jetpack-signature.php on line 218
    When I revert back to PHP 7.3.2 everything works fine again.

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Support Bruce (a11n)

    (@bruceallen)

    Happiness Engineer

    Hi @saladgoat

    Would you please delete Jetpack and then reinstall it as a first step here? You can follow these steps to do that:

    1. Start at **Plugins** → **Installed Plugins**.
    2. If Jetpack is currently active, click **Deactivate** to disable it. Then click **Delete** to remove it from your site:
    3. Go to **Plugins**? → **Add New**.
    4. Search for “Jetpack by WordPress.com”.
    5. Click **Install** and then **Activate**.

    When Jetpack is installed, click the green **Set up Jetpack** button to reconnect.

    This handy guide explains that process in more detail:

    https://jetpack.com/support/reconnecting-reinstalling-jetpack/#reinstalling-jetpack

    You shouldn’t lose any settings or any of your stats or subscribers in doing so, as that info is stored in our system here.

    Thread Starter SaladGoat

    (@saladgoat)

    I followed Steps 1 & 2, then upgraded PHP to 7.4 then re-installed Jetpack. On Activate, I got the message:
    The registration secrets sent by your site do not match the ones the Jetpack server has on record.
    When clicking Setup Jetpack I get the error:
    An error occurred. Please try again.
    Trying again got the same error message.
    I downgraded to PHP 7.3 and tried activating Jetpack and all was fine!
    (All stats were retained, but it didn’t remember what Modules were activated.)

    Thread Starter SaladGoat

    (@saladgoat)

    Why was this marked as Resolved when it absolutely is not?

    I have changed back to Unresolved. Please fix this.

    • This reply was modified 2 years, 2 months ago by SaladGoat.
    Plugin Support lastsplash (a11n)

    (@lastsplash)

    Hi @saladgoat

    We mark threads as resolved after 7 days of not receiving a response, which is likely what happened here. Sorry for the confusion.

    As a next step, I would:

    1. Uninstall Jetpack
    2. Update to PHP v7.4
    3. Install and activate Jetpack

    If you continue to have issues, please post your site URL here so that we can have a look.

    Thread Starter SaladGoat

    (@saladgoat)

    As I was the OP and I did respond, it seems to me it should not have been marked Resolved. Not my forum though, so not my rules…. ???♂?

    So I did this:

    1. Deactivate Jetpack
    2. Delete Jetpack
    3. Upgrade to PHP 7.4
    4. Update WordPress from 6.0.3 to 6.1.1
    5. Install Jetpack
    6. Click to Setup Jetpack
    7. Receive error: The Jetpack server was unable to communicate with your site [HTTP 500]. Ask your web host if they allow connections from WordPress.com. If you need further assistance, contact Jetpack Support: https://jetpack.com/support/

    So I talked to my web host and they could find nothing wrong, and then I was able to connect. Huh?

    Result: First try uninstall and reinstall Jetpack did not work; second try did work.

    Thanks!

    Plugin Support lastsplash (a11n)

    (@lastsplash)

    Hi @saladgoat

    Thanks for letting us know this is working now.

    If you have additional questions about Jetpack in the future, feel free to open a new thread.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Fatal Error on PHP upgrade’ is closed to new replies.