Author Topic: Error: Exception in loadConfig for unserialize hidemainmenu b:0;  (Read 8987 times)

Milbo

  • Virtuemart Projectleader
  • Administrator
  • Super Hero
  • *
  • Posts: 10076
  • VM3.2 Cached and Optimized
    • VM3 Extensions
  • VirtueMart Version: VirtueMart 3 on joomla 3
Error: Exception in loadConfig for unserialize hidemainmenu b:0;
« on: February 13, 2013, 15:18:44 pm »
It may happen, when you update from 2.0.14 or lower to 2.0.16 or higher. The reason is just an invalid stored config option. For most people the normal updater is correcting this issue. One theory is that the people do not use their super user account to update the store.

Most time it is enough todo
enter your virtuemart config and just save it one time, or
use "Renew VirtueMart configuration by file" in VM db tools , or
use "Install tables or if necessary update them", or you are damned to read the rest.

The config values are taken from virtuemart.cfg, if it is not there, then it will be created as copy of virtuemart_defaults.cfg-dist. This values are then stored in the #__virtuemart_configs. The entry looks like
Code: [Select]
currency_converter_module=s:14:"convertECB.php";|order_mail_html=s:1:"1";|useSSL=s:1:"0";|
Every | means a new entry, so one entry is
currency_converter_module=s:14:"convertECB.php";
currency_converter_modules is the name and s:14:"convertECB.php"; is the json encoded value.

So if you have the error
"Exception in loadConfig for unserialize hidemainmenu b:0;"
It means that the value for hidemainmenu is broken. Just delete the entry with hidemainmenu, so search for something like
|hidemainmenu=b:0;   delete it, store the entry and it should be gone. A lot easier is just to delete the virtuemart.cfg and the whole config entry of the table. Then reconfigure it. Maybe the error comes, when people update virtuemart as administrator and not as super user or so.
I should fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

media-service

  • virtuemart.de
  • Global Moderator
  • Beginner
  • *
  • Posts: 1
  • Great Fan of Open Source!
    • Virtuemart Forum in Germany
  • Skype Name: media-service-essen.de
Re: Error: Exception in loadConfig for unserialize hidemainmenu b:0;
« Reply #1 on: March 28, 2013, 21:32:22 pm »
Quote
"Exception in loadConfig for unserialize hidemainmenu b:0;"
I had the same Message today. In my case, the reason was an Extension from JoomlaShine: JSN PowerAdmin.
Solution that worked for me: Deinstall JSN PowerAdmin. Clear Cache. Erase Sessions in Database. Logout and login again. Go to Virtuemart Config. Save once. Everything is fine now :)
Michael Schulze
virtuemart.de