Bia2Host.Com Posted October 16, 2021 Share Posted October 16, 2021 hi dears. after i update to 8.3.1 when i want go to a client profile i get this error : Error: Call to a member function getRawAttribute() on null in /home/x/x/x/admin/clientssummary.php:0Stack trace:#0 {main} please help me. thanks. 0 Quote Link to comment Share on other sites More sharing options...
WHMCS Support Manager WHMCS John Posted October 20, 2021 WHMCS Support Manager Share Posted October 20, 2021 Hi there, This error indicates the client account contains an orphaned service. Ie. A service without a valid product assigned to it: SELECT * FROM tblhosting WHERE packageid NOT IN (SELECT id FROM tblproducts); One potential approach to resolve this might be: Create a new hidden product (Configuration > System Settings > Products/Services) Call it something like "Orphaned Product" Save the product and take a note of the ID (tblproducts.id) Then run this SQL query against your database: UPDATE tblhosting SET packageid='x' WHERE packageid NOT IN (SELECT id FROM tblproducts); Replace x with the ID of the newly created product. As always, before making changes to your database, please backup. 2 Quote Link to comment Share on other sites More sharing options...
Creative Yadley Posted November 16, 2021 Share Posted November 16, 2021 Hi John, this is just to say thank you. I had a very similar problem and your approach helped me get it resolved in just a couple of minutes. Thanks again! 0 Quote Link to comment Share on other sites More sharing options...
Faizal1 Posted November 20, 2021 Share Posted November 20, 2021 Had the same issue. Thanks @WHMCS John that fixed the issue with 5 accounts. Since these orphaned products now show up in the clients account. Is it safe to just delete those entries from the database or what's the best way to deal with them? Thanks 0 Quote Link to comment Share on other sites More sharing options...
WHMCS Support Manager WHMCS John Posted November 22, 2021 WHMCS Support Manager Share Posted November 22, 2021 Hi @Faizal1, Glad to hear that helped! If you do not require the orphaned records, they can be safely deleted via the admin UI. Navigate to the client's Products/Services tab and click More > Delete. Relevant documentation: https://docs.whmcs.com/Clients:Products/Services_Tab#Delete 0 Quote Link to comment Share on other sites More sharing options...
Agnel Perez Posted February 8, 2023 Share Posted February 8, 2023 same problem here, client account not contains an orphaned service, every service have valid product assigned the only way i find it to go around was: add $disable_hook_loading = true; into configuration.php file until here work if twenty-one or my duplicate of twenty-one is set on System Theme but when set Lagom 2 as a theme error came back Error: Call to a member function cssInjector() on null in /home/aaa/templates_c/cc9ea936d52fb3c54d0f68350338a8988d8ef771_0.file.head.tpl.php:88 line 88: <?php echo $_smarty_tpl->tpl_vars['RSThemes']->value['styles']['colors']->cssInjector(!$_smarty_tpl->tpl_vars['adminLoggedIn']->value);?> with this: $disable_hook_loading = true; if i set like $disable_hook_loading = false; or comment //$disable_hook_loading = true; got this one Error: Call to a member function isYearly() on null in /home/aaa/templates_c/6f90dc7889284c0fbbe03dbfe37684132f6f1c87_0.file.upsell.tpl.php:86 line: <?php if ($_smarty_tpl->tpl_vars['product']->value->pricing()->first()->isYearly()) {?> anyone have this kind of issues or find a solution for? 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.