Jump to content

Update WHMCS from 8.13.1 to 9.0 Critical Error --> Smarty: undefined extension class 'Smarty_Internal_Method_Get_Template_Vars' <--


Go to solution Solved by Mytihost,

Recommended Posts

My live WHMCS installation automatically updated to 9.0 and the site went down with a Critical Error: Luckily I have site monitoring on so I was notified by email immediately!

Quote

Oops! Something went wrong and we couldn't process your request.

Please go back to the previous page and try again. If the problem persists, please contact us.

« Back to Homepage

For additional assistance, please reference the WHMCS TroubleShooting Guide »

--> Smarty: undefined extension class 'Smarty_Internal_Method_Get_Template_Vars' <--

I rolled back to ver 8.13.1 using a softaculous backup/restore, and set up a dev site to troubleshoot. I worked with ChatGPT to find the files causing this. 

  • I use the Lagom 2 Client Theme and Website Theme, and
  • ResellerClub-Mods addon modules, including the Core Management Console ver. 4.  --> The hooks in this module include older Smarty hooks
  • PHP 8.2.29 + ionCube 15.0.0 are the currently acceptable versions.
  • Smarty also updated to Smarty is v4.5.3 which is needed for the new 9.0version. 

We did a backtrace and found:

Quote

/modules/addons/resellerclubmods_core/hooks.php

That addon is calling a legacy Smarty method (almost certainly get_template_vars()), which dies under Smarty 4 in WHMCS 9, producing your exact error.

So the fix is not Lagom, not WHMCS core, not Smarty itself. It’s that ResellerClub Mods addon.

I disabled the resellerclubmods_core/hooks.php by adding an _ at the end. The dev site was restored but that means I can't sell my products!

I have a ticket in to ResellerClub-Mods to udpate their core management console ver 4, as the update from 1/9/26 doesn't address the issue. 

To set up my dev site, I had WHMCS reissue my dev license, and I will need RS Studios to reissued my Lagom 2 theme dev license as I have made changes since it was issued. I can't see if the theme is correct after the update without a fresh dev license. 

In the meantime, my live site keeps automatically updating to 9.0 and I have to keep rolling it back! WHMCS hasn't provided a way to turn off the auto updates that works (changing the temp update file path location doesn't work if the file path isn't valid, and turning off Update WHMCS in Admin Roles doesn't work either - it just takes that option off the board.) Ugh. 

Has anyone else run into this problem? I just wanted to put this out there in case someone else is having this problem. I will update with any working solution when I have it. It's already been 4 days, so I'm hoping it happens soon. 

Link to comment
Share on other sites

  • Solution

You may want to check in softaculous you may have the auto update turned on.

Go into Softaculous find your install click on edit details auto upgrade select do not auto upgrade.

 

With regards to 9.0 their will still be a lot of developers slightly behind. WHMCS didn't exactly give developers alot of notice with regards to the changes.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated