VirtueMart Forum

VirtueMart 2 + 3 + 4 => Installation, Migration & Upgrade => Topic started by: pugwash94 on February 04, 2012, 14:07:49 PM

Title: VirtueMart 2.0.1
Post by: pugwash94 on February 04, 2012, 14:07:49 PM
I have just installed / upgraded to VirtueMart 2.0.1

I now get the following on all VM Modules

Warning: Illegal offset type in isset or empty in /var/www/vhosts/crmsaw.co.uk/httpdocs/libraries/joomla/application/menu.php on line 127

and nothing works in frontend of VM - any suggestions?
Title: Re: VirtueMart 2.0.1
Post by: Milbo on February 04, 2012, 16:02:58 PM
Go in your config and store it one time, should solve it
Title: Re: VirtueMart 2.0.1
Post by: smithy73 on February 19, 2012, 14:05:20 PM
Aplogies for the post dig.....
I'm getting the same error  (V2.0.1 K and J1.5.25)

Quote from: Milbo on February 04, 2012, 16:02:58 PM
Go in your config and store it one time, should solve it

Could someone explain this to me like I'm a 3 YO ?  ;)

Many Thanks in advance.
Smithy
Title: Re: VirtueMart 2.0.1
Post by: PRO on February 19, 2012, 17:08:59 PM
Quote from: smithy73 on February 19, 2012, 14:05:20 PM
Aplogies for the post dig.....
I'm getting the same error  (V2.0.1 K and J1.5.25)

Quote from: Milbo on February 04, 2012, 16:02:58 PM
Go in your config and store it one time, should solve it

Could someone explain this to me like I'm a 3 YO ?  ;)

Many Thanks in advance.
Smithy


go into vmart configuration, and hit "save:
Title: Re: VirtueMart 2.0.1
Post by: smithy73 on February 20, 2012, 14:21:37 PM
Thanks guys - tried that to no avail.
Any other thoughts ?

I've inherited the site so I might try a clean install and see if same happens.
Title: Re: VirtueMart 2.0.1
Post by: PRO on February 20, 2012, 16:05:08 PM
smithy, after looking at the error, and it refers to the menu items.

Have a look at the menu items to vmart.

Make sure they are correct
Title: Re: VirtueMart 2.0.1
Post by: jcyphert on February 25, 2012, 12:26:45 PM
My upgrade in doing the same thing. I removed the menu Irene and r added it but still no go. I also saved both the config and the store setup
Title: Re: VirtueMart 2.0.2 Warning: Illegal offset type in isset or empty in menu.php
Post by: flexconcept on February 27, 2012, 15:05:45 PM
Here the same problems with Virtuemart 2.0.2... Saving the config did not do the trick.
The only way to hide the error is to add in .htaccess : php_flag display_errors off

But that does not make the error goes away. It only hides it...  Any solutions??

Warning: Illegal offset type in isset or empty in menu.php on line 127

Kind regards,  Evert
Flexconcept
Title: Re: VirtueMart 2.0.1
Post by: jenkinhill on February 27, 2012, 15:28:15 PM
That is not an error - it is a warning about code which may or may not work with the next major update of PHP  Like http://forum.virtuemart.net/index.php?topic=98230.0

And because of possible confusing error reporting in Joomla there is a switch in Joomla configuration/server to set the required level of error reports.
Title: Illegal offset type in isset or empty in /libraries/joomla/application/menu.php
Post by: Milbo on February 28, 2012, 14:13:09 PM
Hmm but nasty, I dont get it. Maybe it is a joomla error? I mean, it is in joomla library.
And for which modules it does appear? really for all modules? When someone is eager to contact me, I may take a look via skype. Posting your php version may also help.
Title: Re: VirtueMart 2.0.2
Post by: mm688 on February 28, 2012, 17:13:30 PM
Hello,

I have the same problem when i make a research with the module vm_virtuemart_search :

Warning: Illegal offset type in isset or empty in /www/libraries/joomla/application/menu.php on line 127

What I can do what for resolve this problem ?

Thanks for all, and sorry for my english !  :)
Title: Re: VirtueMart 2.0.1
Post by: smithy73 on February 29, 2012, 00:14:11 AM
The server I have is running VM2.0.1 K, J1.5.25 and PHP 5.2.17.

Hope this helps.
Title: Re: VirtueMart 2.0.1
Post by: Milbo on February 29, 2012, 00:46:29 AM
Yes immediatly update to the latest version ! ! Core and AIO !
Title: Re: VirtueMart 2.0.1
Post by: smithy73 on February 29, 2012, 13:56:01 PM
OK now I'm a little more worried.
Upgraded to VM V 2.02 - no change.
All Virtuemart components, plugin and modules uninstalled. Including 3rd party.
Deleted relevant folders via FTP.
Reinstalled VMart 2.02 Core and AIO, Cleared the DB's.

No Change.  ???

Quote from: flexconcept on February 27, 2012, 15:05:45 PM
The only way to hide the error is to add in .htaccess : php_flag display_errors off

Happy to settle for this alternative at the moment. New .htaccess or existing - path ?

Any help - much appreciated.

Many Thanks
Smithy73
Title: Re: VirtueMart 2.0.1
Post by: smithy73 on February 29, 2012, 15:11:28 PM
OK so - some progress.
A bit of two steps forward - one step back.

Could this fix be so simple as to turn off the Search Engine Friendly URLS in Joomla?
Well thats what I did - and functionally seems to be working fine.  :D
Turned the SEF back on and errors came back.  :(

Am I missing something ?
How do I get my URLs back to SE Friendly ?

Many Thanks
Title: Re: VirtueMart 2.0.1
Post by: jenkinhill on February 29, 2012, 15:45:29 PM
VM2.0.2 works fine with Joomla 2.5.1's native SEF. Not with J1.5, though.
Title: Re: VirtueMart 2.0.1
Post by: jcyphert on March 02, 2012, 15:26:44 PM
That's what it was... I turned off SEF for 1.5.25 and the error went away.
Title: Re: VirtueMart 2.0.1
Post by: penart on March 31, 2012, 17:41:54 PM
I have the same problem when upgrading an eshop from vm 1.1.9 to vm 2.0.2.  I have joomla 1.5. Go to your joomla site menu and edit the menu item that points out to your eshop.  The vm2  has various types for the menu, not only one Type = Virtuemart that the 1.1.9 had.  If you correct the type of your eshop menu item, this error message in the front - end goes away. 

Regards,
Penelope
Title: Re: VirtueMart 2.0.1
Post by: smithy73 on April 01, 2012, 02:43:05 AM
Penelope,

Could you clarify something for me ?
Are you saying that in the Joomla Global Configuration you have Search Engine Friendly URLs set to YES and you are not getting errors in the front end ?
And of the 18 odd Virtuemart menu configurations - which one are you using ?

Many Thanks
Title: Re: VirtueMart 2.0.1
Post by: ScooterStrick on June 08, 2012, 21:44:16 PM
 :o Yes, I too turned off SEF in Joomla and errors went away. I tried every possible work-around between Joom SEF and VirtMart SEO.. to no avail.
Is so wierd that it all worked fine for a week with pretty URL's !

Any ideas? Would really get back to SEF URL's or what is the purpose of it in the first place!

:'(
Title: Re: VirtueMart 2.0.1
Post by: Poiter on June 14, 2012, 10:58:12 AM
I had the same error. Joomla 1.5 and VM 2.0.6 and the solution of penart works for me.
You have a lot of different menu choises and you have to choose the latest one. VirtueMart - VirtueMart Front page
Title: Re: VirtueMart 2.0.1
Post by: idolism on June 20, 2012, 08:55:08 AM
Hi there guys!

I found how to fix that error. It is really simple, just somebody has to read it.

Open menu.php and find line 127. Add quotes to $id just as it is shown below:

if (isset($this->_items["$id"]))

It works perfect for me.

I really don't know php much, but from another forum they spoke about the same error and I saw a reference to this page http://www.php.net/manual/en/language.types.string.php#language.types.string.parsing and decided to read it.

Hope this helps :)
Title: How I resolved it
Post by: luizarios on June 26, 2012, 23:58:28 PM
Using Joomla 1.5.2 and VirtueMart 2.0.6 and had same problem, the message appeared if I marked Search Engine Friendly URLs (from the Global Configuration) to Yes and if I marked as NO then the error message would disappear. Here what I did:

Now it works, not sure if installing AceSEF made any diffrence and in fact I didn't install it to fix it but it did fix so I guess you guys could have a go and see if it works, the program is free and you can find here: http://extensions.joomla.org/extensions/site-management/sef/10019?qh=YTo2OntpOjA7czozOiJhY2UiO2k6MTtzOjI6ImFjIjtpOjI7czozOiJzZWYiO2k6MztzOjQ6InNlZnMiO2k6NDtzOjU6InNlZicuIjtpOjU7czo3OiJhY2Ugc2VmIjt9

Hope it works for you guys too. Best of luck :)
Title: Re: VirtueMart 2.0.1
Post by: dezziner on July 11, 2012, 13:26:03 PM
Thankyou smithy73 your suggestion work for me. turn off the seo friendly url.
Title: Re: VirtueMart 2.0.1
Post by: doc_denis on November 06, 2012, 14:57:20 PM
Hi, thank idolism for this solution, this ok for me on joomla 1.5.28 and VM 2.0.12f
in french ...my language
Merci pour votre solution qui fonctionne très pour ma config joomla 1.5.28 and VM 2.0.12f
ainsi, je garde SEF activé.

Quote from: idolism on June 20, 2012, 08:55:08 AM
Hi there guys!

I found how to fix that error. It is really simple, just somebody has to read it.

Open menu.php and find line 127. Add quotes to $id just as it is shown below:

if (isset($this->_items["$id"]))

It works perfect for me.

I really don't know php much, but from another forum they spoke about the same error and I saw a reference to this page http://www.php.net/manual/en/language.types.string.php#language.types.string.parsing and decided to read it.

Hope this helps :)
Title: Re: VirtueMart 2.0.1
Post by: SPWKits on November 13, 2012, 02:52:53 AM
Quote from: idolism on June 20, 2012, 08:55:08 AM
Hi there guys!

I found how to fix that error. It is really simple, just somebody has to read it.

Open menu.php and find line 127. Add quotes to $id just as it is shown below:

if (isset($this->_items["$id"]))

It works perfect for me.

I really don't know php much, but from another forum they spoke about the same error and I saw a reference to this page http://www.php.net/manual/en/language.types.string.php#language.types.string.parsing and decided to read it.

Hope this helps :)


Thank you sooo much! You were absolutely correct. I am using Joomla 1.5 and VM 2.08e and this fixed the problem completely for me.
Title: Re: VirtueMart 2.0.1
Post by: octoberx on April 13, 2013, 00:13:46 AM
Quote from: idolism on June 20, 2012, 08:55:08 AM
Hi there guys!

I found how to fix that error. It is really simple, just somebody has to read it.

Open menu.php and find line 127. Add quotes to $id just as it is shown below:

if (isset($this->_items["$id"]))

It works perfect for me.

I really don't know php much, but from another forum they spoke about the same error and I saw a reference to this page http://www.php.net/manual/en/language.types.string.php#language.types.string.parsing and decided to read it.

Hope this helps :)
Thanks, it's the solution! 8)
Joomla 1.5 / VM 2.20 - wamp server and php 5.3
Title: Re: VirtueMart 2.0.1
Post by: jenkinhill on April 13, 2013, 13:35:59 PM
Just a note, Joomla 1.5 compatibility is no longer actively supported.  http://virtuemart.net/news/list-all-news/426-end-of-life-for-virtuemart-11-heidelpay-now-in-virtuemart-2012
"We decided to declare now the end of life for VirtueMart 1.1, and that the version 2 of VirtueMart is not any longer maintaining joomla 1.5 compatibility." 4 October 2012