guy Posted May 14 Share Posted May 14 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} 0 Quote Link to comment Share on other sites More sharing options...
guy Posted May 14 Author Share Posted May 14 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 0 Quote Link to comment Share on other sites More sharing options...
Solution guy Posted May 14 Author Solution Share Posted May 14 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. 0 Quote Link to comment Share on other sites More sharing options...
Evolve Web Hosting Posted May 14 Share Posted May 14 @guy How did you upgrade? Using the automatic updater or the patch files? 0 Quote Link to comment Share on other sites More sharing options...
guy Posted May 14 Author Share Posted May 14 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. 0 Quote Link to comment Share on other sites More sharing options...
myname22 Posted May 15 Share Posted May 15 this is error due to the developer doesn't add php7.4 support to 8.13.3 you can try to update your php or wait untill this support will be added 0 Quote Link to comment Share on other sites More sharing options...
Mytihost Posted May 17 Share Posted May 17 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 0 Quote Link to comment Share on other sites More sharing options...
edvancombr Posted yesterday at 11:28 AM Share Posted yesterday at 11:28 AM 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: Switching to PHP 8.1 or 8.2 OR 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.2 - https://www.whmcs.com/members/dl.php?type=d&id=1949 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.