Jump to content

Update latest to recent error


Recommended Posts

Update error

Error: WHMCS\Installer\Update\Updater->performFileUpdate() at /home/user/domains/domain.com/public_html/domain/admin/update.php:0 WHMCS\Installer\Composer\ComposerUpdate->update() at
/vendor/whmcs/whmcs-foundation/lib/Installer/Update/Updater.php:0
WHMCS\Installer\Composer\ComposerUpdate->doComposerCommand() at /home/user/domains/domain.com/public_html/domain.com/vendor/whmcs/whmcs-foundation/lib/Installer/Composer/ComposerUpdate.php:0
WHMCS\Installer\Composer\ComposerUpdate->{closure:WHMCS\Installer\Composer\ComposerUpdate::update():586}() at

more......

 

Link to comment
Share on other sites

Hi Sudipto,

That trace shows the updater failing during the file-update (Composer) step, but the actual error message isn't included. It's usually the first line above the trace, or you'll find it in Utilities > Logs > Activity Log right after the failed attempt. Could you post that line (with paths/secrets removed)?

Meanwhile, these are the usual causes at that step:

  1. PHP 8.4: if the site runs on PHP 8.4, there's a known issue updating 9.1.0 → 9.1.1 on 8.4 (errors mentioning the illuminate package). Switch the domain to PHP 8.3, run the update, then switch back. See: https://whmcs.community/topic/367815-issue-with-updating-910-911-on-php-8427/
  2. Update staging path: under Utilities > Update WHMCS > Configure Update Settings, the temporary path must exist, be writable by the PHP user, sit outside public_html, and have free disk space (roughly 3× your WHMCS install size).
  3. File ownership/permissions: after a migration or a restore done as root, some files may not be owned by your account user, so the updater can't overwrite them. Fix ownership of everything under the WHMCS folder.
  4. PHP limits: memory_limit of at least 256M and max_execution_time of 300+ during the update.
  5. ionCube Loader: must be a version that supports both the target WHMCS release and your PHP version.

If it still fails, a manual update is safe: take a full file and database backup, download the full release zip from the WHMCS Members Area, upload it over your install (keep configuration.php and your custom admin folder name if you renamed it), then visit /install/ to run the database upgrade and delete the install folder afterwards.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated