douge3113 2016-02-02 12:28
浏览 54
已采纳

WHMCS无法重新声明_createCustomer()

I added the ResellerClub module in my WHMCS but it came with a few bugs in the files, most have managed to solve this but have not found the flaw. When you add the folder that the WHMCS module can not edit or add new products.

WHMCS configured to display the error and the following message appears:

Fatal error: Cannot redeclare _createCustomer() (previously declared in /home/user/public_html/painel/modules/servers/resellerclubmdhostingin/resellerclubmdhostingin.php:483) in /home/user/public_html/painel/modules/servers/resellerclubvpsus/resellerclubvpsus.php on line 486

I tried a few things but I could not... Has anyone seen this error?

  • 写回答

2条回答 默认 最新

  • donglie1994 2016-02-02 12:37
    关注

    As the error states, you're redeclaring a function _createCustomer, and this causes a fatal error.

    You have 2 declarations:

    /home/user/public_html/painel/modules/servers/resellerclubmdhostingin/resellerclubmdhostingin.php:483
    /home/user/public_html/painel/modules/servers/resellerclubvpsus/resellerclubvpsus.php:486
    

    You should check the files and remove one declaration or wrap the one in resellerclubvpsus.php:486 into:

    if(!function_exists('_createCustomer')) {
       function _createCustomer(/* ... */){
           // ...
       }
    }
    
    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(1条)

报告相同问题?

悬赏问题

  • ¥15 mmocr的训练错误,结果全为0
  • ¥15 python的qt5界面
  • ¥15 无线电能传输系统MATLAB仿真问题
  • ¥50 如何用脚本实现输入法的热键设置
  • ¥20 我想使用一些网络协议或者部分协议也行,主要想实现类似于traceroute的一定步长内的路由拓扑功能
  • ¥30 深度学习,前后端连接
  • ¥15 孟德尔随机化结果不一致
  • ¥15 apm2.8飞控罗盘bad health,加速度计校准失败
  • ¥15 求解O-S方程的特征值问题给出边界层布拉休斯平行流的中性曲线
  • ¥15 谁有desed数据集呀