Author Topic: VM2 display bug with Rockettheme templates  (Read 4190 times)

novanexis

  • Beginner
  • *
  • Posts: 6
VM2 display bug with Rockettheme templates
« on: December 10, 2011, 15:09:29 pm »
I am not a frequent user or contributor to VM or even VM2 for that matter. But I wanted to try it out and see if VM2 would provide me with the features I am seeking.

I installed the latest development release of VM2, loaded the "filler" or demo content as to populate the extension with some information so I could see what it looks like and then proceeded to click on the associated menu link. All that returned was just a blank black screen (my background colour) and my menu at the top as usual. I googled and look throughout your forums and made sure certain values were properly set and also nabbed some error information.

----- ERROR LOG --------

[28-Nov-2011 15:52:44] PHP Warning:  Division by zero in /home/cli/public_html/curvelake/components/com_virtuemart/views/virtuemart/tmpl/default_categories.php on line 10
[28-Nov-2011 15:52:44] PHP Warning:  Division by zero in /home/cli/public_html/curvelake/components/com_virtuemart/views/virtuemart/tmpl/default_categories.php on line 34
[28-Nov-2011 15:57:23] PHP Warning:  Division by zero in /home/cli/public_html/curvelake/components/com_virtuemart/views/virtuemart/tmpl/default_categories.php on line 10
[28-Nov-2011 15:57:23] PHP Warning:  Division by zero in /home/cli/public_html/curvelake/components/com_virtuemart/views/virtuemart/tmpl/default_categories.php on line 34
[28-Nov-2011 16:51:16] PHP Warning:  Division by zero in /home/cli/public_html/curvelake/components/com_virtuemart/views/virtuemart/tmpl/default_categories.php on line 10
[28-Nov-2011 16:51:16] PHP Warning:  Division by zero in /home/cli/public_html/curvelake/components/com_virtuemart/views/virtuemart/tmpl/default_categories.php on line 34
[28-Nov-2011 16:51:16] PHP Warning:  Division by zero in /home/cli/public_html/curvelake/components/com_virtuemart/views/virtuemart/tmpl/default_categories.php on line 34
[28-Nov-2011 16:51:16] PHP Warning:  Division by zero in /home/cli/public_html/curvelake/components/com_virtuemart/views/virtuemart/tmpl/default_categories.php on line 34

Now I found this error code in a few posts and nabbed the updated files but it didnt change anything (my category values were all "3" not "0" so I did not see why this error would be occurring). I then did a little bit of troubleshooting myself by changing the template the menu link uses to one of the default joomla templates, aside from it looking plain VM2 appeared to display properly and thusly I concluded that there was some sort of conflict between my rockettheme templates (I had tried using both modulus and reflex). Currently my template setting for VM2 is the "Beez5 - Default" which seems to allow VM2 to display as I would expect is intended.

I am a fairly busy person with other obligations that occupy my time, but if you require more information I will attempt to do my best to facilitate them. I am sure if you possess a copy of one of these templates and utilize you too should be able to reproduce the issue. It is my hope to make what little contribution I can to your great project and ensure the elimination of issues such as this, I would imagine some users/developers utilize a rockettheme template like myself.

Thank you for your time and consideration regarding this issue.

Kind Regards,

Will Quinton

fxa.net.au

  • Beginner
  • *
  • Posts: 4
Re: VM2 display bug with Rockettheme templates
« Reply #1 on: December 21, 2011, 21:05:48 pm »
Under Tool, run "Renew config by file"

That should fix it. :D

novanexis

  • Beginner
  • *
  • Posts: 6
Re: VM2 display bug with Rockettheme templates
« Reply #2 on: December 21, 2011, 22:51:26 pm »
I have numerous times but I see an update was released so I will update it, and all that jazz.

novanexis

  • Beginner
  • *
  • Posts: 6
Re: VM2 display bug with Rockettheme templates
« Reply #3 on: December 25, 2011, 19:05:44 pm »
No change to my current predicament with the updates and the suggestion.

trevorsm

  • Beginner
  • *
  • Posts: 27
Re: VM2 display bug with Rockettheme templates
« Reply #4 on: December 25, 2011, 19:24:06 pm »
I am using the final release VM2 with Joomla 1.7.3 and the 'Radiance' Rockettheme template and all seems OK except for a few problems that I have reported here but are not related to the template.
I have not seen the errors you have reported above.

novanexis

  • Beginner
  • *
  • Posts: 6
Re: VM2 display bug with Rockettheme templates
« Reply #5 on: December 25, 2011, 20:58:13 pm »
I am using the modulus with all up to date software such as Joomla, PHP, MySQL, etc. as well as the latest release of VM2. I will re-attempt at a later date to uninstall and reinstall the component again for the fifth time. But as I am experiencing this issue on 2 templates and all seems to run fine on a default template from Joomla I am theorizing an issue with those 2 templates. Perhaps something in Radiance is different vs the other 2 Rockettheme templates I am using. But if someone can give me a valid reason why this is happening and a solution after running an experiment to meet my given variables I find any other responses to my topic to be less than assisting.

- I am hosted on HostGator Unlimited Package
- All systems, components, etc are up to date
- I have installed Joomla, Jomsocial, Kunena and setup my content for my site prior to installing VM2
- I have given it its own menu link and it has used both the Reflex template and Modulus template from Rockettheme with no results loading.
- I have loaded it relatively fine via a default template from Joomla (Beez5)

Again I would only ask for productive and helpful replies rather than people saying "Doesnt happen to me", as that does not solve my issue and does not offer constructive assistance in resolving my issue. I look forward to support sometime in the near future hopefully.

jenkinhill

  • UK Web Developer & Consultant
  • Global Moderator
  • Super Hero
  • *
  • Posts: 27733
  • Always on vacation
    • Jenkin Hill Internet
Re: VM2 display bug with Rockettheme templates
« Reply #6 on: December 25, 2011, 23:16:30 pm »
Most likely reason for template related display issues is JavaScript conflicts. Milbo has put this on the Wiki: http://dev.virtuemart.net/projects/virtuemart/wiki/General_JS-Problems_with_templates_and_jQuery
Kelvyn

Jenkin Hill Internet,
Lowestoft, Suffolk, UK

Unsolicited PMs/emails will be ignored.

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum

Currently using VM 3.8.0 10314 on Joomla 3.9.16 PHP 7.0.33

trevorsm

  • Beginner
  • *
  • Posts: 27
Re: VM2 display bug with Rockettheme templates
« Reply #7 on: December 25, 2011, 23:29:37 pm »
I have just loaded Modulus onto my site and it works OK but I don't use Kunena or JomSocial.

AmStaF

  • Beginner
  • *
  • Posts: 47
Re: VM2 display bug with Rockettheme templates
« Reply #8 on: December 26, 2011, 07:12:14 am »
"Division by zero in  ... /tmpl/default_categories.php on line 10"

Host, template or vm/j-version are not the case.

In line 10 there is a statement: $category_cellwidth = ' width'.floor ( 100 / $categories_per_row )

This way PHP raises error when $categories_per_row is null (division by zero).

So look in BE configuration panel -> template: what is the number of categories per row? maybe it`s the case ...

novanexis

  • Beginner
  • *
  • Posts: 6
Re: VM2 display bug with Rockettheme templates
« Reply #9 on: December 26, 2011, 20:24:19 pm »
Thank you for the posts, I will look into the suggestions within the next month or so and report back when I have. Cheers.

novanexis

  • Beginner
  • *
  • Posts: 6
Re: VM2 display bug with Rockettheme templates
« Reply #10 on: December 26, 2011, 20:35:51 pm »
Thank you for the posts, I will look into the suggestions within the next month or so and report back when I have. Cheers.

I fixed that a while ago and they are all set to "3"

mfuller526

  • Jr. Member
  • **
  • Posts: 51
    • Craig Johnson Ministries
  • VirtueMart Version: 3.0.4
Re: VM2 display bug with Rockettheme templates
« Reply #11 on: November 20, 2012, 23:19:15 pm »
OMG! It worked.

VM > configuration > Shop tab > enable database Update tools

VM Tools > Tools & Migration > Renew VM config by file

Joomla site > Maintenance > clear cache (remove VM) > purge expired cache

Clear your browser cache too


Thank you fxa.net.au!!! ;D
Reflex 1.6.7, Gantry Template v3.2.22, Gantry v4.1.2, Joomla! 2.5.8, PHP 5.3.18, Apache.
Joomla! 2.5.28, PHP 5.4.36,  MoWebSo3.2.19

mfuller526

  • Jr. Member
  • **
  • Posts: 51
    • Craig Johnson Ministries
  • VirtueMart Version: 3.0.4
Re: VM2 display bug with Rockettheme templates
« Reply #12 on: November 21, 2012, 03:40:44 am »
I am noticing some problems with RokBooster breaking VM pages. I'll post info when obtained.
Joomla! 2.5.28, PHP 5.4.36,  MoWebSo3.2.19