Debugging Safari’s “A Problem has occurred with this webpage so it was reloaded.” Error

Published by John on May 18, 2017

I have a customer who discovered an issue with their website when using their iPhone to upload photos to their website. It worked sometimes and sometimes they got an error saying that “A Problem has occurred with this webpage so it was reloaded..” After some troubleshooting, I determined that their website was using an old JavaScript library called ‘crop’ for cropping/resizing images and in some cases, large images caused safari to generate an error.

Read More  |  Add Comment

Moving the Mysql Data Directory

Published by John on April 4, 2017

Recently, I ran into a space issue on one of my servers and found that 85% of the space was being used by Mariadb(Mysql’s) ibdata1 file and there wasn’t really anywhere else to trim any fat. The ibdata1 file is used to store information about Innodb tables and a rather well known issue is that […]

Read More  |  Add Comment

Programatically Creating a Product or Customer Tax Class

Published by John on April 1, 2017

This is a short post today, but I was unable to find a good reference for manually creating tax classes. If you need to create a Product Tax Class or a Customer Tax Class programatically, you can use the below code: Creating a Product Tax Class Creating a Customer Tax Class

Read More  |  Add Comment

Getting Chart.js to Play Nicely With Magento

Published by John on March 7, 2017

While working on a site running Magento version 1.9, I was running into some issues getting Chart.js to work. When attempting to load a chart, I got the following error: TypeError: ticks is undefined This was then followed up with a: TypeError: element._view is undefined After a bit of debugging, I determined that the issue […]

Read More  |  2 Comments

Programmatically Creating and Editing Magento Tax Rules/Rates

Published by John on March 3, 2017

While working on a Magento Site, I found myself needing to programmatically create tax rules, rates, and then later edit them. After a little trial and error, I was able to successfully create the tax rule, using the ‘tax/calculation_rule’ model. However, whenever I added or removed a tax rate and then saved the existing tax […]

Read More  |  Add Comment

« Previous PageNext Page »