• Installed UpdraftPlus and the install wizard suggested trying a manual backup using Backup Now. I click the button, get a confirmation and once I proceed, almost immediately get a dialogue box with an unhelpful message blog.udance.com.au says Unexpected response:

    Things I have tried after searching this support forum:
    1. Trying a different browser
    2. Switching off plugins one at a time
    3. Setting up WordPress debug

    This last one provided the best clue as to what is going on. This is the message I see in wp-content/debug.log:

    [19-Sep-2020 13:15:56 UTC] PHP Fatal error (Error) has occurred during backupnow subaction. Error Message: Call to undefined function session_id() (Code: 0, line 354 in /usr/local/www/wordpress/wp-content/plugins/updraftplus/class-updraftplus.php)
    

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author David Anderson

    (@davidanderson)

    Hi,

    This indicates that your hosting company (or you) have removed a function from PHP – this one: https://www.php.net/manual/en/function.session-id.php . This causes UpdraftPlus to crash, since it uses that function.

    I have made a tweak to our development version for our next release to make it able to cope with that.

    David

    Thread Starter Basil Hendroff

    (@basilh)

    Hi David,
    That was the clue I needed. I’m self-hosting and no, I haven’t removed a function. The issue is that the WordPress hosting handbook Make WordPress Hosting does not specify the sessions php extension for the recommended server environment.

    Once I did a pkg install php74-session and then a restart of PHP-FPM viaservice php-fpm restart on FreeBSD, I was then able to continue with the manual backup. Problem solved!

    Is this an oversight for the WordPress hosting handbook, or is it a dependency of UpdraftPlus that needs to be articulated somewhere?

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Unexpected response’ is closed to new replies.