VirtueMart Forum

VirtueMart 2 + 3 + 4 => Virtuemart Development and bug reports => Topic started by: jadeblack on July 06, 2022, 14:30:39 PM

Title: Unable to access template admin (all templates) after upgrade to VM 4.0.4
Post by: jadeblack on July 06, 2022, 14:30:39 PM
After updating VM, I receive this error when trying to access my template admin : "0 Call to undefined method vmLanguage::getShopDefaultSiteLangTagByJoomla()"
Renaming the com_virtuemart directory solves the issue. The front end still funtions as before.
How can I fix this ?
Title: Re: Unable to access template admin (all templates) after upgrade to VM 4.0.4
Post by: GJC Web Design on July 06, 2022, 15:31:30 PM
without an error trace no one can help you ..  I assume an incompatible template?

https://forum.virtuemart.net/index.php?topic=117042.0

Title: Re: Unable to access template admin (all templates) after upgrade to VM 4.0.4
Post by: Milbo on July 06, 2022, 22:17:11 PM
the function getShopDefaultSiteLangTagByJoomla does not exist. I think it got renamed, I did not thought that someone uses this function. So it must be in some plugin.

Search in your plugins for "getShopDefaultSiteLangTagByJoomla" and replace it by getShopDefaultOrSiteLangTagByJoomla

how can you search through your files? Use akeeba, make a backup, extract in a local server and search there.
Title: Re: Unable to access template admin (all templates) after upgrade to VM 4.0.4
Post by: pinochico on July 07, 2022, 03:33:41 AM
or use on ftp in terminal command grep
Title: Re: Unable to access template admin (all templates) after upgrade to VM 4.0.4
Post by: GJC Web Design on July 07, 2022, 10:36:08 AM
or enable your error trace and you will see which file and line the function is called
Title: Re: Unable to access template admin (all templates) after upgrade to VM 4.0.4
Post by: pinochico on July 07, 2022, 14:13:00 PM
Quoteor enable your error trace and you will see which file and line the function is called

for this we use n3t Debug plugin, is better then Joomla (is Tracy implementation to Joomla
https://bitbucket.org/n3t/n3t-debug/src/master/
Title: Re: Unable to access template admin (all templates) after upgrade to VM 4.0.4
Post by: beltoforion on August 20, 2022, 20:12:58 PM
@pinochico thank you for the tip on the n3t debug, works great for live or test server while updating even configurations.. I wish there could be an easier answer though to look for string in a lot of files, I used to do this type of search using dreamweaver. now I am looking for another similar tool, just to insert the plugin folder and search this string up
Title: Re: Unable to access template admin (all templates) after upgrade to VM 4.0.4
Post by: sirius on August 22, 2022, 16:24:20 PM
@beltoforion You can use the eclipse ide
https://www.eclipse.org/downloads/packages/release/2022-06/r/eclipse-ide-php-developers