Home › Forums › Mikmag WordPress theme › Problem with 'products' page with Mikmag and Woocommerce
- This topic has 1 reply, 2 voices, and was last updated 11 years, 4 months ago by Anonymous.
-
AuthorPosts
-
-
at #12602AaronMember
I get this error when accessing the products page:
Warning: Division by zero in /home/content/25/11656025/html/wp-content/themes/mikmag/woocommerce/content-product.php on line 37
Warning: Division by zero in /home/content/25/11656025/html/wp-content/themes/mikmag/woocommerce/content-product.php on line 39
However if I change my theme to a different one, it works fine (no errors). So something with Mikmag and woocommerce is causing this error. Any suggestions?
-
at #12605AnonymousInactive
Hi Aaron,
Could you please add what versions you are using for:
Mikmag:
Woocommerce:
Wordpress:
With kind regards,
Kevin
-
at #12608AaronMember
Latest on all of those.
-
at #12611AnonymousInactive
Hi Aaron,
Since these are warning messages, not actual error messages, I’m taking the page is working properly despite of these warnings?
Basically, with warning messages they don’t really dispaly something that is not working but more warn you for things that are usually unwanted.
Now since these warnings shouldn’t cause any functional issues you can prevent them from showing by changing a word in your wp-config,
line 81 change
define(‘WP_DEBUG’, true);
into
define(‘WP_DEBUG’, false);
This way it will no longer show.
Since obviously one would ultimately want to not have any warning or error messages whatsoever, I’ll be passing those two on to our development team for them to take a look at with the new update. However since the functionality shouldn’t be affected by them, for the time being there shouldn’t be anything to worry about functionality-wise.
Kevin
-
at #12803AaronMember
I just finally went to disable debug as one of my last things. Unfortunately, it’s already disabled…so I’m not sure why I’m getting those messages still. Can I go comment out those lines or something in order to prevent that from showing up?
-
at #12809AnonymousInactive
Hi Aaron,
That’s fairly strange that you would still get these messages. I guess they might be caused by something different than what I originally thought.
Commenting out those lines might work, however the danger is that the lines are there for something so it might break part of the system just “removing” them like that.
__
I have just had a little chat with our developer about your other topic you’ve posted and also brought up this one.
The issues are most likely caused by your woocommerce settings and options not being properly set
“the warning ” Warning: Division by zero in /home/content/25/11656025/html/wp-content/themes/mikmag/woocommerce/content-product.php on line 39″
will always appear if they will not go set the woocommerce settings and options”
Then the other error
“Warning: Division by zero in /home/content/25/11656025/html/wp-content/themes/mikmag/woocommerce/content-product.php on line 37
– usually cause by the “Column and Product Count” “
You can set the column and product counts in the woocommerce settings (woocommerce -> settings -> pages and then scroll to the bottom)
Kevin
-
-
AuthorPosts
- You must be logged in to reply to this topic.