VirtueMart Forum

VirtueMart 2 + 3 + 4 => Virtuemart Development and bug reports => Topic started by: anssi on January 17, 2013, 00:14:57 AM

Title: Error: Exception in loadConfig for unserialize hidemainmenu b:0;
Post by: anssi on January 17, 2013, 00:14:57 AM
How to fix error notice and where does it come from?

        Exception in loadConfig for unserialize hidemainmenu b:0;
        To avoid this message, enter your virtuemart config and just save it one time
        Version: J2.5+2.0.18a
Title: Re: Error: Exception in loadConfig for unserialize hidemainmenu b:0;
Post by: wov2004 on January 17, 2013, 18:32:48 PM
After the automatic upgrade to 2.0.18a, I authorized the use of plug-ins and there was the same error. I tried to reinstall 2.0.16 (Database Table not removed) and then authorized the use of plug-ins, the error appears again.
Now, even if plugins are not allowed, the error message remains.
Title: Re: Error: Exception in loadConfig for unserialize hidemainmenu b:0;
Post by: I-LION on February 01, 2013, 21:28:58 PM
I'm sorry but i've the same error with WM2.18a J2.5.8. Thanks
Title: Re: Error: Exception in loadConfig for unserialize hidemainmenu b:0;
Post by: Milbo on February 03, 2013, 19:05:55 PM
Use the latest version, use the tools "update tables".

to 100% works to delete the config entry in the virtuemart_config table.
Title: Re: Error: Exception in loadConfig for unserialize hidemainmenu b:0;
Post by: I-LION on February 04, 2013, 15:44:08 PM
I'm sorry, but the errorException in loadConfig for unserialize hidemainmenu b:0; already exist  :'(
I have flag:  Enable database Update tools
and after i have: Renew VirtueMart configuration by file
But nothing good result
Title: Re: Error: Exception in loadConfig for unserialize hidemainmenu b:0;
Post by: djserjey on February 06, 2013, 23:47:46 PM
Hi Milbo,

we update 2.0.14 a 2.016 manually, and the problem was resolved, and everything works, but them I change something in config, and the error start again, con you help us please.
Title: Re: Error: Exception in loadConfig for unserialize hidemainmenu b:0;
Post by: I-LION on February 07, 2013, 14:29:51 PM
Sorry but the problem is seriuos!!! Start again in a new istallation of VM with only the sample da when i save the configuration without change anythinks!!!! Thanks
VM 2.18a J 2.5.9
Title: Re: Error: Exception in loadConfig for unserialize hidemainmenu b:0;
Post by: Milbo on February 08, 2013, 15:24:54 PM
This is not needed. The error is just that there is an old entry in the config, which is stored in the db.

delete the config.php in the com_virtuemart folder Backend. Then go in the phpmyadmin and delete the entries in the virtuemart_configs table. The tool update tables should do almost the same, strange.
Title: Re: Error: Exception in loadConfig for unserialize hidemainmenu b:0;
Post by: mahindra on February 12, 2013, 11:53:26 AM
This seems not to be a solution, because everytime i cannot store any changes in the config. Resetting the config means all changes go lost.
I wonder that there is no solution on this available through the support. I see that the problem is bothering many people over several months.
I have aktual Version 2.0.18a running with Joomla 2.9 on a debian web server.
The suggested paths i tried in any combination of owner configurations - no way to get rid of the message.

I invested several hours to search the web cause of this message and i think a read all posts made on this .

Exception in loadConfig for unserialize hidemainmenu b:0;
To avoid this message, enter your virtuemart config and just save it one time


Cause i have to get ready with the installation next week i have to decide if a change the system. This is a sad point cause i use an old version of virtuemart since many years without problems.
Title: Re: Error: Exception in loadConfig for unserialize hidemainmenu b:0;
Post by: I-LION on February 13, 2013, 13:32:17 PM
Me too  :'( :'( :'(
Title: Re: Error: Exception in loadConfig for unserialize hidemainmenu b:0;
Post by: Milbo on February 13, 2013, 14:08:59 PM
Quote from: mahindra on February 12, 2013, 11:53:26 AM
I wonder that there is no solution on this available through the support. I see that the problem is bothering many people over several months.
It is always the same error and it happens, 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.
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

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. Most people dont have it.

Quote from: mahindra on February 12, 2013, 11:53:26 AM
Cause i have to get ready with the installation next week i have to decide if a change the system. This is a sad point cause i use an old version of virtuemart since many years without problems.
I am wondering why you never had the idea to invest 50 bucks and to ask me or someone else to fix it on your installation.
Title: Re: Error: Exception in loadConfig for unserialize hidemainmenu b:0;
Post by: mahindra on February 19, 2013, 13:49:24 PM
thank you for your detailed explanation!
I can handle it now.
So i go to the database table using phpmyadmin and delete the entry hidemainmenu b:0;  every time after i did change the Konfiguration.

By the way, i did a new Installation with virtuemart 2.018.a
Best regards
Title: Re: Error: Exception in loadConfig for unserialize hidemainmenu b:0;
Post by: Milbo on February 20, 2013, 00:35:49 AM
No, only one time.
Title: Re: Error: Exception in loadConfig for unserialize hidemainmenu b:0;
Post by: alyssaanne1 on March 14, 2013, 21:26:44 PM
Milbo.

Thank you so much for explaining the fix to this.

Any time I save or change my configuration settings I get the error and have to go into the database, remove the hidemenu string and save.

Is there a permanent bug fix?

THanks so much!
Alyssa
Title: Re: Error: Exception in loadConfig for unserialize hidemainmenu b:0;
Post by: lektrokuted on March 21, 2013, 00:16:48 AM
I had the same problem with 2.0.18a. I couldn't fix it by using db tools, so I ended up by deleting the string every time I was saving my configuration. The point is that I updated into 2.0.20b and the problem remains. Any idea where this comes from? Indeed a permanent fix would be the best!
Title: Re: Error: Exception in loadConfig for unserialize hidemainmenu b:0;
Post by: infors on May 15, 2013, 00:01:41 AM
Hello.

QuoteIt 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.

Could you tell me where I have to search for hidemainmenu=b:0;? In the database?

Thanks a lot
masl
Title: Re: Error: Exception in loadConfig for unserialize hidemainmenu b:0;
Post by: mronayne on May 24, 2013, 21:03:08 PM
I have this same problem. I am running a fresh install of Joomla 2.5.11 with a fresh install of Virtuemart 2.0.20b.
The error Exception in loadConfig for unserialize hidemainmenu b:0; shows up whenever you Save the Configuration file. This shows up in the front end and the back end of the site.
If you edit the #__virtuemart_configs table in the database and remove the string "|hidemainmenu=b:0;" at the very end of the data in the "config" field the problem will dissappear until the next time you save the Virtuemart Configuration from the Admin side of the site. I've searched through all of the files in the adminstrator/components/com_virtuemart folders for someplace where this string "|hidemainmenu=b:0;" gets appended to the end of the config string but cannot locate it.
You can also clear the error by enabling the Database update tools in the configuration file and then using the "Renew VirtueMart configuration by file" Tools & Migration tool.
There has to be some code somewhere that sets this value in the config field on a Save Configuration.
Please let us all know where this is so we can fix the problem.
Thank you!
Title: Re: Error: Exception in loadConfig for unserialize hidemainmenu b:0;
Post by: Milbo on May 25, 2013, 11:19:36 AM
Did you find already this? http://forum.virtuemart.net/index.php?topic=112999.0

Quote from: media-service 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 :)
Title: Re: Error: Exception in loadConfig for unserialize hidemainmenu b:0;
Post by: creezi on October 13, 2013, 02:59:04 AM
Quote from: Milbo on May 25, 2013, 11:19:36 AM
Did you find already this? http://forum.virtuemart.net/index.php?topic=112999.0

Quote from: media-service 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 :)

After searching for a long time, I still can't find a solution to this problem. Yes I have found this "solution", but I don't want to uninstall JSN PowerAdmin. I use JSN PowerAdmin. Is there a real solution to this problem? Or do I seriously need to open my database everytime I save my configuration!