blaqdata Posted September 26, 2023 Share Posted September 26, 2023 I updated from 8.7.3 to 8.8 and I am unable to add or edit products now. I consistently receive this message: Oops! Something went wrong and we couldn't process your request. Please go back to the previous page and try again. For additional assistance, please reference the WHMCS TroubleShooting Guide » TypeError: WHMCS\Product\OnDemandRenewalSettings::getMonthly(): Return value must be of type int, null returned in /home/bliqby5/public_html/clients/vendor/whmcs/whmcs-foundation/lib/Product/OnDemandRenewalSettings.php:0 Stack trace: #0 /home/bliqby5/public_html/clients/C3ntreY/configproducts.php(0): WHMCS\Product\OnDemandRenewalSettings->getMonthly() #1 {main} 0 Quote Link to comment Share on other sites More sharing options...
pRieStaKos Posted September 28, 2023 Share Posted September 28, 2023 I hope this was made on a staging/development environment... 0 Quote Link to comment Share on other sites More sharing options...
WHMCS Support Manager WHMCS John Posted September 30, 2023 WHMCS Support Manager Share Posted September 30, 2023 Hi @blaqdata, This error indicates that at-least one of the database changes in /resources/sql/upgrade880beta1.sql did not get run. Most likely the file was not uploaded or readable. The commands can be run to resolve the issue: INSERT INTO `tblconfiguration` (`setting`, `value`, `created_at`, `updated_at`) VALUES ('OnDemandRenewalsEnabled', 0, now(), now()); INSERT INTO `tblconfiguration` (`setting`, `value`, `created_at`, `updated_at`) VALUES ('OnDemandRenewalPeriodMonthly', 31, now(), now()); INSERT INTO `tblconfiguration` (`setting`, `value`, `created_at`, `updated_at`) VALUES ('OnDemandRenewalPeriodQuarterly', 92, now(), now()); INSERT INTO `tblconfiguration` (`setting`, `value`, `created_at`, `updated_at`) VALUES ('OnDemandRenewalPeriodSemiAnnually', 183, now(), now()); INSERT INTO `tblconfiguration` (`setting`, `value`, `created_at`, `updated_at`) VALUES ('OnDemandRenewalPeriodAnnually', 366, now(), now()); INSERT INTO `tblconfiguration` (`setting`, `value`, `created_at`, `updated_at`) VALUES ('OnDemandRenewalPeriodBiennially', 731, now(), now()); INSERT INTO `tblconfiguration` (`setting`, `value`, `created_at`, `updated_at`) VALUES ('OnDemandRenewalPeriodTriennially', 1096, now(), now()); I recommend checking upgrade880beta1.sql and upgrade880rc1.sql and executing any of the updates which may not have been run. 2 Quote Link to comment Share on other sites More sharing options...
myautodj Posted October 17, 2023 Share Posted October 17, 2023 Very few of the mods I use are ready for php 8.1 X and you literally have to fight with the developers to update. After a week I had to revert back to php 7.3. so WHMCS 8.X is pushed back at least a year. 0 Quote Link to comment Share on other sites More sharing options...
Evolve Web Hosting Posted October 17, 2023 Share Posted October 17, 2023 2 hours ago, myautodj said: Very few of the mods I use are ready for php 8.1 X and you literally have to fight with the developers to update. After a week I had to revert back to php 7.3. so WHMCS 8.X is pushed back at least a year. @myautodj Do you mind listing those modules here so that others are aware? 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.