NikRB Posted August 3, 2018 Share Posted August 3, 2018 After updating any page on the frontend that displays a SpamExperts promotion or the SpamExperts landing page returns a fatal error. If I disable the promotions and other options settings everything works, but obviously no one can purchase the addons. The error being returned for the promotions is Whoops\Exception\ErrorException: Method WHMCS\MarketConnect\Promotion\Promotion::__toString() must not throw an exception, caught Error: Call to a member function isYearly() on null in /home/billpress/webapps/billpress/vendor/whmcs/whmcs-foundation/lib/MarketConnect/Promotion.php:0 Stack trace: #0 /home/billpress/webapps/billpress/vendor/whmcs/whmcs-foundation/lib/Utility/Error/Run.php(0): WHMCS\Utility\Error\Run->handleError(1, 'Method WHMCS\\Ma...', '/home/billingen...', 0) #1 [internal function]: WHMCS\Utility\Error\Run->handleShutdown() #2 {main} I am running the default Six theme and my server has the required modules installed. The other error is on the SpamExperts landing page Error: Call to a member function toFullString() on null in /home/billpress/webapps/billing-billpress/templates_c/7c5bae1b4f911ec51aa338dc013a0919793b176c_0.file.index.tpl.php:124 I have cleared the cache and try again with no luck. I have a ticket open and will report back if I have any luck there. Thanks Nik 0 Quote Link to comment Share on other sites More sharing options...
WHMCS Support Manager WHMCS John Posted August 4, 2018 WHMCS Support Manager Share Posted August 4, 2018 Hi @NikRB, These kinds of errors indicate out-dated template files. Please upload a fresh copy of the /templates directory (you can download from https://download.whmcs.com) then clear your template cache (Utilities > System > System Cleanup). More information is available in this guide: http://help.whmcs.com/m/80786/l/950486-troubleshooting-marketconnect-promotion-fatal-errors 0 Quote Link to comment Share on other sites More sharing options...
NikRB Posted August 4, 2018 Author Share Posted August 4, 2018 Hi John, I have done a completely fresh install of 7.5 (DB and files running Six) and I'm able to re-create the errors. So this does not seem update related. Feel free to move it to the appropriate community. I have worked out how to replicate the error: If I import an account from cPanel the fatal error is triggered for any front-end page that involves SpamExperts for that logged in user. If I create a new account via WHMCS there are no errors. If disable any SE features showing for users there are errors, but obviously no way for them to signup. Support is having a look now, let me know if you have any suggestion other than the ones tried in the provided link. Thanks Nik 0 Quote Link to comment Share on other sites More sharing options...
WHMCS Support Manager WHMCS John Posted August 9, 2018 WHMCS Support Manager Share Posted August 9, 2018 Hi @NikRB, The next thing to try is: Navigate to Setup > MarketConnect. Click Manage any active provider Click the Products tab Click on a product and make sure a yearly price is specified Click Save Changes 1 Quote Link to comment Share on other sites More sharing options...
NikRB Posted August 9, 2018 Author Share Posted August 9, 2018 Hi @WHMCS John, The issue was that the profiles imported from cPanel were incomplete. Once these profiles were complete with addresses etc... the errors disappeared. Thanks for the help. 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.