Unable to access template admin (all templates) after upgrade to VM 4.0.4

Started by jadeblack, July 06, 2022, 14:30:39 PM

Previous topic - Next topic

jadeblack

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 ?

GJC Web Design

GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

Milbo

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.
Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

pinochico

www.minijoomla.org  - new portal for Joomla!, Virtuemart and other extensions
XML Easy Feeder - feeds for FB, GMC,.. from products, categories, orders, users, articles, acymailing subscribers and database table
Virtuemart Email Manager - customs email templates
Import products for Virtuemart - from CSV and XML
Rich Snippets - Google Structured Data
VirtueMart Products Extended - Slider with products, show Others bought, Products by CF ID and others filtering products

GJC Web Design

or enable your error trace and you will see which file and line the function is called
GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

pinochico

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/
www.minijoomla.org  - new portal for Joomla!, Virtuemart and other extensions
XML Easy Feeder - feeds for FB, GMC,.. from products, categories, orders, users, articles, acymailing subscribers and database table
Virtuemart Email Manager - customs email templates
Import products for Virtuemart - from CSV and XML
Rich Snippets - Google Structured Data
VirtueMart Products Extended - Slider with products, show Others bought, Products by CF ID and others filtering products

beltoforion

@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
wanting to learn to create good templates

sirius

J3.10.12 | PHP 7.4.33 + APC + memcached + Opcode
VM Prod : 3.8.6 | VM Test : 4.0.12.10777