WHMCS后台,选择指定客户的时候,提示错误代码如下:
Error: Call to a member function getRawAttribute() on null in /home/x/x/x/admin/clientssummary.php:0
Stack trace:
#0 {main}
此错误发生在,某客户账户里有一个产品,但是该产品的分类被删除的情况下。请一定注意删除产品的时候先行查看是否该产品品类下有没有客户商品,否则会因此此类错误。这类错误被称为“Orphaned Product
”。就是说“孤儿产品”。
解决办法很简单,详情如下:
1、先确认是否存在问题,在phpmyadmin中,输入如下SQL命令,进行测试:
SELECT * FROM tblhosting WHERE packageid NOT IN (SELECT id FROM tblproducts);
2、数据库表中会出现一个或者多个商品,如果不是必须产品,直接删除即可。如果还想看看具体是什么商品,那么需要给这几个商品选择一个产品的packetid。
3、具体方法,先到产品类别里找到一个相似的产品类别号,比如https://customer.xxx.com/xxx/configproducts.php?action=edit&id=3600
,注意,这里的3600是你自己的产品类别ID,随便找一个。或者单独为这几个商品建立一个单独的分类都可以。
4、找到该产品类别后输入如下sql命令(注意,修改3600为你自己的产品类别ID)。
UPDATE tblhosting SET packageid='3600' WHERE packageid NOT IN (SELECT id FROM tblproducts);
5、执行成功后,再访问该用户信息,即可解决。
版权属于: 三三世界-百宝箱
本文链接: http://33f.net/setup/whmcs_error_getRawattribute.html
本文最后更新于2022年01月13日 ,已超过1113天没有更新,若内容或图片失效,请留言反馈。
本文允许转载,但请在转载时请以超链接或其它形式标明文章出处
@Doug Shume it's ok for me , you can post here.
Saved as a favorite, I like your website!
If some one wishes to be updated with hottest technologies after that he must be visit this site and be up to date daily.
Heello would you mind sharing which blog platform you're using? I'm planning to start my own blog in the near future but I'm having a tough time making a decision between BlogEngine/Wordpress/B2evolution and Drupal. The reason I ask is because your layout seems different then moost blogs and I'm looking for something completely unique. P.S Apologies forr being off-topic butt I had to ask!
Thanks to my father who shared with me regarding this webpage, this website is genuinely amazing.
Hi, I have an overflow of customers that I'd like to send to you but I want to make sure you can handle more leads, let me know if you'd like me to send you more info.
zh.us.to 有效
kms.03k.org 有效
kms.chinancce.com
kms.shuax.com 有效
kms.dwhd.org 有效
kms.luody.info 有效
kms.digiboy.ir 有效
kms.lotro.cc 有效
www.zgbs.cc 有效
cy2617.jios.org 有效
@ 权限问题,试试sudo 再加命令。
你好提示Permission denied 怎么办啊