Adding a product image label programmatically (Magento 1)

If you want to add a label to a product image programmatically, you cannot do this with the addImageToMediaGallery method. The following code, however, does the job:

Improving page load speed with Gzip compression (Magento 1)

Want to speed up your Magento store? One option is to enable gzip compression. This can be activated relatively easily in your server’s .htaccess file. Add the following lines:

You can then check whether the changes work by running…

Fixing Invalid backend model specified: catalog/attribute_backend_customlayoutupdate (Magento 1)

First, run this query:

Write down the attribute_ids returned by the query, then run the following query:

Fertig!