Author Topic: An error has occurred. 0 Call to undefined function vmError()  (Read 258 times)

daddio

  • Beginner
  • *
  • Posts: 2
  • A beginner
Running Joomla! 3.9.18 and VirtueMart 3.8.2 10325.
Any article I try to save gives me the error. It will save my content but still dumps me out of the article and leaves it locked.

Any idea what is causing it?

Backtrace:
/home/singingt/staging/3/administrator/components/com_virtuemart/helpers/vmlanguage.php:267
#0 /home/singingt/staging/3/administrator/components/com_virtuemart/helpers/vmlanguage.php(94): vmLanguage::setLanguage(false, false)
#1 /home/singingt/staging/3/components/com_virtuemart/router.php(948): vmLanguage::setLanguageByTag(false, false, false)
#2 /home/singingt/staging/3/components/com_virtuemart/router.php(371): vmrouterHelper::getInstance()
#3 /home/singingt/staging/3/libraries/src/Component/Router/RouterLegacy.php(105): virtuemartParseRoute(Array)
#4 /home/singingt/staging/3/libraries/src/Router/SiteRouter.php(437): Joomla\CMS\Component\Router\RouterLegacy->parse(Array)
#5 /home/singingt/staging/3/libraries/src/Router/Router.php(482): Joomla\CMS\Router\SiteRouter->parseSefRoute(Object(Joomla\CMS\Uri\Uri))
#6 /home/singingt/staging/3/libraries/src/Router/Router.php(227): Joomla\CMS\Router\Router->_parseSefRoute(Object(Joomla\CMS\Uri\Uri))
#7 /home/singingt/staging/3/libraries/src/Router/SiteRouter.php(138): Joomla\CMS\Router\Router->parse(Object(Joomla\CMS\Uri\Uri))
#8 /home/singingt/staging/3/plugins/content/pingomatic/pingomatic.php(159): Joomla\CMS\Router\SiteRouter->parse(Object(Joomla\CMS\Uri\Uri))
#9 /home/singingt/staging/3/plugins/content/pingomatic/pingomatic.php(197): plgContentPingomatic->findItemidNewRouter('index.php?optio...', Object(Joomla\CMS\Router\SiteRouter))
#10 /home/singingt/staging/3/plugins/content/pingomatic/pingomatic.php(279): plgContentPingomatic->routeArticleToSefMenu(162, '69', '*', Object(Joomla\CMS\Table\Content))

#11 /home/singingt/staging/3/libraries/joomla/event/event.php(70): plgContentPingomatic->onContentAfterSave('com_content.art...', Object(Joomla\CMS\Table\Content), false, Array)
#12 /home/singingt/staging/3/libraries/joomla/event/dispatcher.php(160): JEvent->update(Array)
#13 /home/singingt/staging/3/libraries/src/MVC/Model/AdminModel.php(1292): JEventDispatcher->trigger('oncontentafters...', Array)
#14 /home/singingt/staging/3/administrator/components/com_content/models/article.php(676): Joomla\CMS\MVC\Model\AdminModel->save(Array)
#15 /home/singingt/staging/3/libraries/src/MVC/Controller/FormController.php(775): ContentModelArticle->save(Array)
#16 /home/singingt/staging/3/libraries/src/MVC/Controller/BaseController.php(710): Joomla\CMS\MVC\Controller\FormController->save()
#17 /home/singingt/staging/3/administrator/components/com_content/content.php(21): Joomla\CMS\MVC\Controller\BaseController->execute('apply')
#18 /home/singingt/staging/3/libraries/src/Component/ComponentHelper.php(402): require_once('/home/singingt/...')
#19 /home/singingt/staging/3/libraries/src/Component/ComponentHelper.php(377): Joomla\CMS\Component\ComponentHelper::executeComponent('/home/singingt/...')
#20 /home/singingt/staging/3/libraries/src/Application/AdministratorApplication.php(101): Joomla\CMS\Component\ComponentHelper::renderComponent('com_content')
#21 /home/singingt/staging/3/libraries/src/Application/AdministratorApplication.php(159): Joomla\CMS\Application\AdministratorApplication->dispatch()
#22 /home/singingt/staging/3/libraries/src/Application/CMSApplication.php(196): Joomla\CMS\Application\AdministratorApplication->doExecute()
#23 /home/singingt/staging/3/administrator/index.php(51): Joomla\CMS\Application\CMSApplication->execute()
#24 {main}

GJC Web Design

  • 3rd party VirtueMart Developer
  • Super Hero
  • *
  • Posts: 9650
  • Virtuemart, Joomla & php developer
    • GJC Web Design
  • VirtueMart Version: 3.6.8
Re: An error has occurred. 0 Call to undefined function vmError()
« Reply #1 on: May 23, 2020, 09:48:14 am »
hard to understand why the VM router would be called while saving a Joomla article

Try disabling the plgContentPingomatic  plugin as a test
GJC Web Design
VirtueMart and Joomla Developers - php developers http://www.gjcwebdesign.com
VM3 AusPost Shipping Plugin - e-go Shipping Plugin - VM3 Postcode Shipping Plugin - Radius Shipping Plugin - VM3 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
http://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

daddio

  • Beginner
  • *
  • Posts: 2
  • A beginner
Re: An error has occurred. 0 Call to undefined function vmError()
« Reply #2 on: May 24, 2020, 06:53:28 am »
And that seemed to do the trick. I disabled the plugin and now I can save articles..  ::)

Thank you GJC!

GJC Web Design

  • 3rd party VirtueMart Developer
  • Super Hero
  • *
  • Posts: 9650
  • Virtuemart, Joomla & php developer
    • GJC Web Design
  • VirtueMart Version: 3.6.8
Re: An error has occurred. 0 Call to undefined function vmError()
« Reply #3 on: May 24, 2020, 11:25:55 am »
try this solution for importing the vm defines into the plgContentPingomatic  plugin

http://forum.virtuemart.net/index.php?topic=144908.msg514062#msg514062

GJC Web Design
VirtueMart and Joomla Developers - php developers http://www.gjcwebdesign.com
VM3 AusPost Shipping Plugin - e-go Shipping Plugin - VM3 Postcode Shipping Plugin - Radius Shipping Plugin - VM3 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
http://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation