Jump to content

Client error in front end


Recommended Posts

One client gets this error. The rest of the clients don't have this problem. 

 

Error: TypeError: WHMCS\Service\Addon::getServiceActual(): Return value must be of type WHMCS\Service\Service, null returned in /home/devonwebs/domains/my.devonwebs.uk/public_html/vendor/whmcs/whmcs-foundation/lib/Service/Addon.php:0 Stack trace: #0 /home/devonwebs/domains/my.devonwebs.uk/public_html/vendor/whmcs/whmcs-foundation/lib/Product/AdHocAddon.php(0): WHMCS\Service\Addon->getServiceActual() #1 /home/devonwebs/domains/my.devonwebs.uk/public_html/vendor/whmcs/whmcs-foundation/lib/Service/Addon.php(0): WHMCS\Product\AdHocAddon::factory() #2 /home/devonwebs/domains/my.devonwebs.uk/public_html/vendor/whmcs/whmcs-foundation/lib/User/Client.php(0): WHMCS\Service\Addon->getServiceProduct() #3 /home/devonwebs/domains/my.devonwebs.uk/public_html/vendor/illuminate/database/Concerns/BuildsQueries.php(39): WHMCS\User\Client->WHMCS\User\{closure}() #4 /home/devonwebs/domains/my.devonwebs.uk/public_html/vendor/illuminate/support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->chunk() #5 /home/devonwebs/domains/my.devonwebs.uk/public_html/vendor/illuminate/database/Eloquent/Relations/Relation.php(385): Illuminate\Database\Eloquent\Relations\Relation->forwardCallTo() #6 /home/devonwebs/domains/my.devonwebs.uk/public_html/vendor/whmcs/whmcs-foundation/lib/User/Client.php(0): Illuminate\Database\Eloquent\Relations\Relation->__call() #7 /home/devonwebs/domains/my.devonwebs.uk/public_html/vendor/whmcs/whmcs-foundation/lib/ClientArea.php(0): WHMCS\User\Client->hasItemsWithOnDemandRenewalCapability() #8 /home/devonwebs/domains/my.devonwebs.uk/public_html/vendor/whmcs/whmcs-foundation/lib/ClientArea.php(0): WHMCS\ClientArea::getConditionalLinks() #9 /home/devonwebs/domains/my.devonwebs.uk/public_html/vendor/whmcs/whmcs-foundation/lib/ClientArea.php(0): WHMCS\ClientArea->outputWithoutExit() #10 /home/devonwebs/domains/my.devonwebs.uk/public_html/vendor/whmcs/whmcs-foundation/lib/Http/Message/AbstractViewableResponse.php(0): WHMCS\ClientArea->getOutputContent() #11 /home/devonwebs/domains/my.devonwebs.uk/public_html/vendor/laminas/laminas-httphandlerrunner/src/Emitter/SapiEmitter.php(41): WHMCS\Http\Message\AbstractViewableResponse->getBody() #12 /home/devonwebs/domains/my.devonwebs.uk/public_html/vendor/laminas/laminas-httphandlerrunner/src/Emitter/SapiEmitter.php(31): Laminas\HttpHandlerRunner\Emitter\SapiEmitter->emitBody() #13 /home/devonwebs/domains/my.devonwebs.uk/public_html/clientarea.php(0): Laminas\HttpHandlerRunner\Emitter\SapiEmitter->emit() #14 {main}

 

 

Link to comment
Share on other sites

  • WHMCS Support Manager

Hi @SamRudd1152,

This indicates those ad-hoc addons were orphaned. The service to which the addon belongs must have been deleted without first removing the addon.

These orphaned records can be recovered by associating it with an active service under the client's account:

UPDATE `tblhostingaddons` SET `hostingid` = 'x' WHERE addonid = 'y';

Replace x with the value of a tblhosting.id value of one of the client's active services. Replace y with the tblhostingaddons.addonid value(s) of the orphaned addons.

As always, before making changes to the database, please backup.

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