VirtueMart Forum

VirtueMart 2 + 3 + 4 => Virtuemart Development and bug reports => Topic started by: Razva on September 29, 2011, 17:14:01 PM

Title: [FIXED] VM going crazy when selecting a product with the letter..."A"
Post by: Razva on September 29, 2011, 17:14:01 PM
Hi,

Please go at the following link: http://semineemures.ro/produse/finisaje/finisaje-moderne/Bix-box-100

As you can see everything is nice and...normal.

Now please go to this link: http://semineemures.ro/produse/finisaje/finisaje-moderne/Abbey or to http://semineemures.ro/produse/finisaje/finisaje-moderne/Air-bianco . Or to any product starting with "A" from http://semineemures.ro/produse/finisaje/finisaje-moderne

So, as you can see, any product that starts with "A" is totally messed up! Any other product, with any other letter from the same category is working properly.

Is this a bug?

Thanks!
Title: Re: [BUG] VM going crazy when selecting a product with the letter..."A"
Post by: grtrustme on September 29, 2011, 17:49:04 PM
First of all are you using an svn version ov Virtuemart 2 or did you install Virtuemart 2 using the latest installation file?
Which version of Virtuemart 2 are you using?

PS1. Just for testing, what you could do is to create a product with the name and alias starting from letter B, save it, test it and then change it to letter A and see if this problem happens again.

PS2. By the way, this is not happening to my version (Virtuemart 2 svn rev. 4206) so i would advice you to try the latest svn version or wait a little for the coming release.
Title: Re: [BUG] VM going crazy when selecting a product with the letter..."A"
Post by: Razva on September 29, 2011, 18:34:40 PM
I'm using http://dev.virtuemart.net/attachments/download/322/virtuemart1.9.8.RC2G_extract_first.zip
Title: Re: [BUG] VM going crazy when selecting a product with the letter..."A"
Post by: grtrustme on September 29, 2011, 20:38:09 PM
Well this is not happening to me. Thus i would advice you either to install the latest svn version

If you are familiar with web development, you can try setting up a development environment and test Virtuemart 2 there:
http://dev.virtuemart.net/projects/virtuemart/wiki/Setting_up_a_Development_Environment

Or else, you can wait for the coming release of Virtuemart 2, that will be available soon.

PS. Since the version you are using, countless (small or bigger) things have been fixed.
Title: Re: [BUG] VM going crazy when selecting a product with the letter..."A"
Post by: Milbo on September 29, 2011, 21:50:52 PM
Personally I dont think that someone must be experienced in webdevelopment to create an own installer. You just need to install svn.... download the trunk, export it and move one file and copy paste one dir and do zip of it.
Title: Re: [BUG] VM going crazy when selecting a product with the letter..."A"
Post by: Razva on September 30, 2011, 11:47:30 AM
Great, thanks for the reply!

Is this fixed in the SVN? Just asking...

Later edit: overwriting all the files will not broke the installation? Aren't there any SQL updates necessary?
Title: Re: [BUG] VM going crazy when selecting a product with the letter..."A"
Post by: Ellalex on September 30, 2011, 12:32:02 PM
This happens to me too with the A but not exactly the same and not using svn either...

I only have the problem when I try click on Product Details of a Product that starts with an A it takes me back to categories view.

I noticed that this happens when I have the SEF Enabled in Joomla.  Products with names not starting from A works fine with SEF Enabled

will try svn when I go home though


Title: Re: [BUG] VM going crazy when selecting a product with the letter..."A"
Post by: Razva on September 30, 2011, 13:24:48 PM
Great. I've overwritten the files and:
1) the main shop page states "Warning: Division by zero in /home/semineem/public_html/components/com_virtuemart/views/virtuemart/tmpl/default_categories.php on line 10"
2) even if we have 100 products in http://www.semineemures.ro/produse/finisaje they don't show up (as you can see)

So the SVN idea was not so good...it kinda broke the entire installation...
Title: Re: [BUG] VM going crazy when selecting a product with the letter..."A"
Post by: Milbo on September 30, 2011, 14:46:56 PM
nono

you just need to execute some tools.

Go tot the tools, do a reset config by file,.. and then the update/install table thing (last command on the bottom right, first tab).
Title: Re: [BUG] VM going crazy when selecting a product with the letter..."A"
Post by: Razva on September 30, 2011, 14:58:02 PM
Horray for Popeye! :P

FOR POSTERITY:
1) click on "Renew config by file"
2) click on "Install tables or if necessary update them"
3) prepare to have a functional VM but loose all your settings :P
Title: Re: [BUG] VM going crazy when selecting a product with the letter..."A"
Post by: Milbo on September 30, 2011, 16:15:28 PM
yepp :-)

But you dont lose entered, products, categories, medias, manufacturers, orders and so on,.. only shopsetting is lost
Title: Re: [BUG] VM going crazy when selecting a product with the letter..."A"
Post by: jjk on September 30, 2011, 16:54:53 PM
Quote from: Milbo on September 30, 2011, 16:15:28 PM
yepp :-)
...unless you keep a copy of the table "_virtuemart_configs" as a backup  ;)
Title: Re: [BUG] VM going crazy when selecting a product with the letter..."A"
Post by: Razva on September 30, 2011, 16:57:00 PM
Eh, it's no big deal...you can set everything in 5 minutes...if you made a custom view, as any update will - obviously! - delete any changes you've made in any "default" view :)

Now only if this (http://forum.virtuemart.net/index.php?topic=91445.0) and this (http://forum.virtuemart.net/index.php?topic=91444.0) would find an answer... :( These are *finally* the last problems I need to fix and HORRAAAY! :D
Title: Re: VM going crazy when selecting a product with the letter..."A" [solved]
Post by: Milbo on September 30, 2011, 18:52:30 PM
you can set your standards int the virtuemart.cfg file.
Title: Re: VM going crazy when selecting a product with the letter..."A" [solved]
Post by: Razva on September 30, 2011, 19:01:23 PM
Nice tip, thanks!
Title: Re: VM going crazy when selecting a product with the letter..."A" [solved]
Post by: Milbo on September 30, 2011, 19:10:40 PM
Quote from: Razva on September 30, 2011, 16:57:00 PM
if you made a custom view, as any update will - obviously! - delete any changes you've made in any "default" view :)

Use the template overrides, explained here http://dev.virtuemart.net/projects/virtuemart/wiki/Hints_for_the_use_of_the_template_system.