VirtueMart Forum

VirtueMart 2 + 3 + 4 => Virtuemart Development and bug reports => Topic started by: escapezone on October 07, 2013, 12:31:54 PM

Title: error at administrator/components/com_virtuemart/helpers/vmview.php on line 342
Post by: escapezone on October 07, 2013, 12:31:54 PM
Hello!

After upgrading from 2.0.22c to 2.0.24 i am getting this error at vm backend

Notice: Undefined index: el-GR in /var/www/vhosts/mysite.gr/sitefolder/administrator/components/com_virtuemart/helpers/vmview.php on line 342

Notice: Trying to get property of non-object in /var/www/vhosts/mysite.gr/sitefolder/administrator/components/com_virtuemart/helpers/vmview.php on line 342

Notice: Undefined index: el-GR in /var/www/vhosts/mysite.gr/sitefolder/administrator/components/com_virtuemart/helpers/vmview.php on line 342

Notice: Trying to get property of non-object in /var/www/vhosts/mysite.gr/sitefolder/administrator/components/com_virtuemart/helpers/vmview.php on line 342

Notice: Undefined index: el-GR in /var/www/vhosts/mysite.gr/sitefolder/administrator/components/com_virtuemart/helpers/vmview.php on line 342

Notice: Trying to get property of non-object in /var/www/vhosts/mysite.gr/sitefolder/administrator/components/com_virtuemart/helpers/vmview.php on line 342

Can you help me plz ?

If i replace that  file with the vmview.php from 2.0.22c the problem dissapears

Thank you!


Joomla 2.5.14
Virtuemart 2.0.24
Title: Re: error at administrator/components/com_virtuemart/helpers/vmview.php on line 342
Post by: alatak on October 07, 2013, 13:47:40 PM
Hello
Did you published the languages defined in Language manager > Content ?
Title: Re: error at administrator/components/com_virtuemart/helpers/vmview.php on line 342
Post by: escapezone on October 07, 2013, 15:59:35 PM
Hello alatak !

Thank you very much for your answer! Seems to be ok now :)
... but it is strange... in other eshop that i am running joomla 2.5.14 and vm 2.0.24 (upgraded from 2.0.22c) i don't have this problem and i don't have this language published at Language manager > Content and i don't run multilingual, just greek lang on my sites... Do you know why ?

Thank you!
Title: Re: error at administrator/components/com_virtuemart/helpers/vmview.php on line 342
Post by: alatak on October 07, 2013, 17:50:28 PM
hello

Quotei am running joomla 2.5.14 and vm 2.0.24 (upgraded from 2.0.22c) i don't have this problem a
there must be something which is different in your config.
what did you have as Multilingual shop in the virtuemart configuration in both site?
Title: Re: error at administrator/components/com_virtuemart/helpers/vmview.php on line 342
Post by: escapezone on October 08, 2013, 00:01:25 AM
Hello Alatak!

I have only the  Greek Lang ...

See attach picture.

Thank you!

[attachment cleanup by admin]
Title: Re: error at administrator/components/com_virtuemart/helpers/vmview.php on line 342
Post by: Milbo on October 08, 2013, 13:54:35 PM
Maybe the system is using internally the english tables what happens, you use english here?
Title: Re: error at administrator/components/com_virtuemart/helpers/vmview.php on line 342
Post by: escapezone on October 09, 2013, 10:22:25 AM
Quote from: Milbo on October 08, 2013, 13:54:35 PM
Maybe the system is using internally the english tables what happens, you use english here?

Hello Milbo ! Thank you for your answer!

I am not using English ... only the Greek Lang...
Title: Re: error at administrator/components/com_virtuemart/helpers/vmview.php on line 342
Post by: p.barg on October 16, 2013, 10:54:16 AM
Same problem with a German shop after upgrade to VM2.0.24 .... PHP notices showing, as that shop is still on a local dev server.
(@escapezone: you probably have different PHP settings in your different shops, one showing notices and the other doesn't)
Title: Re: error at administrator/components/com_virtuemart/helpers/vmview.php on line 342
Post by: Milbo on October 17, 2013, 20:30:16 PM
What I meant is

Use english in your vm config. and in joomla greece.
Title: Re: error at administrator/components/com_virtuemart/helpers/vmview.php on line 342
Post by: djygue on October 18, 2013, 17:46:22 PM
Hello, i have the same problem but i can't resolve it with your indication. Can you help me please ?
In joomla config, i have  in language manager
-in frontend : English and French, french is default
-in backend : English and French, french is default
- in content, i only have English wich is published.
In VM Config, in multilingual, i can have English and/or French. I choose one (English or French), or both, but
i always have the problem.
Have you an idea ?
Thank you.
Joomla 2.5.8
Virtuemart 2.0.24
Title: Re: error at administrator/components/com_virtuemart/helpers/vmview.php on line 342
Post by: Milbo on October 20, 2013, 12:25:47 PM
Quote from: alatak on October 07, 2013, 13:47:40 PM
Hello
Did you published the languages defined in Language manager > Content ?

Please check the config here /administrator/index.php?option=com_languages&view=languages  tab content
Title: Re: error at administrator/components/com_virtuemart/helpers/vmview.php on line 342
Post by: djygue on October 21, 2013, 21:49:24 PM
OK, it's solved.
The problem was that i didn't know how to add french language in tab content. But there is no install to do, i just add a french with the add button.
Thank you.
Title: Re: error at administrator/components/com_virtuemart/helpers/vmview.php on line 342
Post by: Milbo on October 22, 2013, 11:07:39 AM
Yes, from my point of view a bit stupid. I added fallback to the next version. So that you see an error, but it should still work.