Category / Debugging
123

What is base64 encoding and how can we benefit from it

What is base64 encoding and how can we benefit from it

What is base64 encoding/decoding and how we can benefit from this representation

Base64 schemes represent binary data in an ASCII string format (English alphabet, common punctuation chars, control chars) by translating it into a base-64 representation. Read more

9

FireLogger – a sexy server logger console in Firebug

FireLogger – a sexy server logger console in Firebug

FireLogger is a Firefox+Firebug addon which provides logging functionality similar to Firebug’s console.log. It sends logging events to a client-side encoded in HTTP headers.

Read more

12

Magento (How to fix): One or more of the Cache Types are invalidated: Blocks HTML output.

Magento (How to fix): One or more of the Cache Types are invalidated: Blocks HTML output.

Somewhere around Magento 1.5, message from the title of this post begun to pop on every product save.
Although quite anoying, it is quite easy to fix and it seems that’s not a BUG, it is a feature – implemented without automatic block html cache refresh :)
I have tested it on Professional Edition and to be completely honest, I’m not sure if it will actually work on Magento CE,
but there is no reason why not (Please comment if it does).
Read more

24

How to translate form labels in Magento’s Admin Area

How to translate form labels in Magento’s Admin Area

Since Magento has built in functionality for translations, you can ask yourself why Magento doesn’t want to translate my labels… and everything is set up correctly!
For all of you who work on Magento for a while and you didn’t yet needed to translate everything in Magento admin area here is a short “howto” on what you can do:
go to app/code/core/Mage/Adminhtml/Block/Widget/Form.php
and find protected function _setFieldset($attributes, $fieldset, $exclude=array())
Instead of this line

//'label'     => $attribute->getFrontend()->getLabel(),
//put this:
'label'     => Mage::helper('core')->__($attribute->getFrontend()->getLabel()),

Of course you will not change Magento’s core file in this way :) (more below).
Read more

16

Adding related products problem

Adding related products problem

by gerard79/sxc.hu

Today I had a problem when I want to add related product to Magento Professional 1.9.0.0., it did not work. After some tracing thrown errors and comparing files with other Magento versions I found missing part. Magento Professional has missing lines of code in Related.php. So, if someone stuck on the same problem, here is the solution!

Read more

3

Problems with Contact form

Problems with Contact form

Couple of days ago I had a problem with contact form not working in Magento Professional 1.9.0.0. Magento was throwing error “Unable to submit your request. Please, try again later” after submitting form. Of course all requested fields was filled. Here I will explain what needs to be done if you have same problems.

Read more

14

Automated testing of Magento with Watir

Automated testing of Magento with Watir

Few months ago I was attending this web conference where among various topic one covered the “Automated testing”. To be honest I never looked into any “automated testing” tools until then. This was the first time I heard about this tool called Watir. Shortly put, Watir (pronounced water), is an open-source (BSD) family of Ruby libraries for automating web browsers. Read more

13

Keeping your Magento fit with built in profiler

Keeping your Magento fit with built in profiler

Default Magento installation has this great feature called “Profiler” that can play important role with your custom Magento development. This feature is meant to be be used for developer only. If used properly it can help you get valuable information of certain code parts during development. Read more

2

Handling intensive Magento tasks in the background, simulating AJAX via CRON

Handling intensive Magento tasks in the background, simulating AJAX via CRON

For those of a weak hart, please skip this article. Before I start presenting the idea, please note that this is just an idea. So what’s it about? In our everyday Magento development there are numerous examples/tasks where we need to import some data into Magento or programmatically create some entries like products, orders, customers, etc. When dealing with larger scale of things, importing/creating 50000 of products can turn out to be a real challenge. Usually we (the developers) strive to a simplest possible solution, which in this case ideally would be to make simple foreach loop where we would have our code handling product creation in each iteration of the loop. Technically this works, but with extreme PHP/environment configurations only. Read more

2

Taming magento errors display

Taming magento errors display

Murphy says: “Anything that can go wrong, will go wrong”. When it happens to your store it’s best to get the information about it ASAP and present the error in the most humane possible way. Let’s do it!
Read more

16
123