Jump to content

Error after upgrading 8.13.1 to 8.13.3


Go to solution Solved by guy,

Recommended Posts

After upgrading from 8,13.1 to 8.13.3 we get the following error when pressing orders -> active orders -> order number:

 

Oops!

Something went wrong and we couldn't process your request.

Please go back to the previous page and try again.

For additional assistance, please reference the WHMCS TroubleShooting Guide »

TypeError: Return value of WHMCS\Order\Order::newRenewals() must be an instance of WHMCS\Order\object, instance of class@anonymous returned in /home/whmcs/www/vendor/whmcs/whmcs-foundation/lib/Order/Order.php:0
Stack trace:
#0 /home/whmcs/www/vendor/whmcs/whmcs-foundation/lib/Order/Order.php(0): WHMCS\Order\Order->newRenewals()
#1 /home/whmcs/www/vendor/whmcs/whmcs-foundation/lib/Order/Order.php(0): WHMCS\Order\Order::unpackRawRenewals()
#2 /home/whmcs/www/vendor/illuminate/database/Eloquent/Concerns/HasAttributes.php(467): WHMCS\Order\Order->getRenewalsAttribute()
#3 /home/whmcs/www/vendor/illuminate/database/Eloquent/Concerns/HasAttributes.php(1416): Illuminate\Database\Eloquent\Model->mutateAttribute()
#4 /home/whmcs/www/vendor/illuminate/database/Eloquent/Concerns/HasAttributes.php(381): Illuminate\Database\Eloquent\Model->transformModelValue()
#5 /home/whmcs/www/vendor/illuminate/database/Eloquent/Concerns/HasAttributes.php(360): Illuminate\Database\Eloquent\Model->getAttributeValue()
#6 /home/whmcs/www/vendor/whmcs/whmcs-foundation/lib/Model/AbstractModel.php(0): Illuminate\Database\Eloquent\Model->getAttribute()
#7 /home/whmcs/www/vendor/illuminate/database/Eloquent/Model.php(1634): WHMCS\Model\AbstractModel->getAttribute()
#8 /home/whmcs/www/admin/orders.php(0): Illuminate\Database\Eloquent\Model->__get()
#9 {main}

Link to comment
Share on other sites

Just noticed another error when enabling capcha:

 

ypeError: Argument 2 passed to WHMCS\Utility\Captcha\Recaptcha::validate() must be an instance of WHMCS\Utility\Captcha\object, instance of class@anonymous given, called in /home/whmcs/www/vendor/whmcs/whmcs-foundation/lib/Utility/Captcha.php on line 0 and defined in /home/whmcs/www/vendor/whmcs/whmcs-foundation/lib/Utility/Captcha/Recaptcha.php:0

 

 

Link to comment
Share on other sites

  • Solution

it's been fixed.

 

Seems we had corruption in /home/whmcs/www/vendor/whmcs/whmcs-foundation

we took it from a working server and it works now.

Link to comment
Share on other sites

Hi

 

I started update via web interface, which got stuck after 10 minutes and I stopped it. Which made the whmcs updated. Then when we saw the errors

I applied the two patchs from 13.1 -> 13.2 -> 13.3 and when it did't solve the problem I applied full release on working dir which did'nt help either.

I noticed a diffrence in the file size in whmcs-foundations directory from the problematic server to a working server which was updated only with the two patchs, so I took the directory from there

and put it in the problem server which solved the problems.

Link to comment
Share on other sites

On 5/14/2026 at 1:47 PM, guy said:

After upgrading from 8,13.1 to 8.13.3 we get the following error when pressing orders -> active orders -> order number:

 

Oops!

Something went wrong and we couldn't process your request.

Please go back to the previous page and try again.

For additional assistance, please reference the WHMCS TroubleShooting Guide »

TypeError: Return value of WHMCS\Order\Order::newRenewals() must be an instance of WHMCS\Order\object, instance of class@anonymous returned in /home/whmcs/www/vendor/whmcs/whmcs-foundation/lib/Order/Order.php:0
Stack trace:
#0 /home/whmcs/www/vendor/whmcs/whmcs-foundation/lib/Order/Order.php(0): WHMCS\Order\Order->newRenewals()
#1 /home/whmcs/www/vendor/whmcs/whmcs-foundation/lib/Order/Order.php(0): WHMCS\Order\Order::unpackRawRenewals()
#2 /home/whmcs/www/vendor/illuminate/database/Eloquent/Concerns/HasAttributes.php(467): WHMCS\Order\Order->getRenewalsAttribute()
#3 /home/whmcs/www/vendor/illuminate/database/Eloquent/Concerns/HasAttributes.php(1416): Illuminate\Database\Eloquent\Model->mutateAttribute()
#4 /home/whmcs/www/vendor/illuminate/database/Eloquent/Concerns/HasAttributes.php(381): Illuminate\Database\Eloquent\Model->transformModelValue()
#5 /home/whmcs/www/vendor/illuminate/database/Eloquent/Concerns/HasAttributes.php(360): Illuminate\Database\Eloquent\Model->getAttributeValue()
#6 /home/whmcs/www/vendor/whmcs/whmcs-foundation/lib/Model/AbstractModel.php(0): Illuminate\Database\Eloquent\Model->getAttribute()
#7 /home/whmcs/www/vendor/illuminate/database/Eloquent/Model.php(1634): WHMCS\Model\AbstractModel->getAttribute()
#8 /home/whmcs/www/admin/orders.php(0): Illuminate\Database\Eloquent\Model->__get()
#9 {main}

Possibly an incompatibility issue with your current php version.

Are you using a php version below 8.2

 

Link to comment
Share on other sites

  • 2 weeks later...

Hi,

A client of mine experienced this issue.

I opened a ticket and the bug was confirmed.

It was suggested to change the PHP version, which wasn't feasible for us, so we updated to the new patch 8.13.3-release.2 instead, and that resolved the issue.

Quote

There was an issue with the first build of WHMCS 8.13.3 which prevented it from functioning correctly whilst using PHP 7.x.

I would expect that either:

  1. Switching to PHP 8.1 or 8.2

OR

  1. Swap out your WHMCS files for fresh ones obtained from https://download.whmcs.com

Should you decide to go with the second option, which is a more direct fix, then please make sure you take a full filesystem and database backup before proceeding.

Let us know if you require any further assistance.

Kind regards,

Josh Q.
Technical Analyst II
WHMCS, Ltd.
www.whmcs.com


Download 8.13.3-release.2https://www.whmcs.com/members/dl.php?type=d&id=1949

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