Category / Debugging
123

Variable number of arguments is not supported for services error… Magento and Zend_AMF

Variable number of arguments is not supported for services error… Magento and Zend_AMF

Here is a little something to share with the world. Last night I was building a nice little application for Flex – AMF – Magento development. Basically it consists of Flex application from which you are calling Magento AMF server. AMF server is made as a module in Magento, with its own config.xml file, controller and model files. Basically I already build an application, just wanted to share interesting issue I come across. When I wish to extend any of my models with some of Magento models I get following error from AMF server: “Variable number of arguments is not supported for services (except optional parameters). Number of function arguments must currespond to actual number of arguments described in a docblock.“. Read more

0

Extending default Magento Profiler

Extending default Magento Profiler

Here is a little tweak you can use to extend the information being displayed under Profiler.

Remember, besides enabling the Profiler from Magento Admin > System > Configuration, one should also uncomment the Varien_Profiler::enable(); line from the index.php file inside the Magento root folder.

We will need to change two files in order to extend default Profiler output. Read more

4

Access denied – Magento module error

Access denied – Magento module error

I believe that most of you building custom Magento module came across this error “Access denied” when trying to view their module output in Magento administration. I just lost around an hour trying to find my way around this one. Note, this is far from my first Magento module, however it still got me thinking and sweeting. So I thought I’ll share the pain :)

Main issue (or super cool feature) with modules is that most of the config.xml errors die peacefully, meaning you see no meaningful error description on page. You either see stuff like “Access denied” or you see blank page or you see god know what. Read more

0

Internal Server Error 500 in Magento

Featured Image

Many of us who started experimenting with this interface and tried to place various values for Base URL, came to a dead end where Magento breaks.  Usually, we get Internal Server Error 500 with each page load. The problem lies in the fact that we can no longer open the Magento administration to correct the error. What needs to be done in such a scenario?

Read more

27

CSRF Attack Prevention

Featured Image

If you login to your Magento admin today, you are welcomed with message box that says:

CSRF Attack Prevention Read details !

Yesterday Magento team acknowledged CSRF vulnerability and provided solution in a form of tutorial to change admin path (frontName) of your Magento shop.

Read more

4

Duplicated modules in Magento?

Duplicated modules in Magento?

Well, I just lost half of hour trying to find the reason why my module gets duplicated on one of my pages. I was preparing some materials for a seminar I’m holding few days from now, when I got lost trying to solve the issue of my module being duplicated on one of pages I assigned it to.

Just in case some of you got into the same situation, let me save you some trouble. Golden rule, do not forget to assign a name to a module. Will save you some headache.

I provided my screen shot below for you to see what I’m talking about.

module1

0

Warning: SimpleXMLElement::addAttribute() [simplexmlelement.addattribute]: Attribute already exists

Warning: SimpleXMLElement::addAttribute() [simplexmlelement.addattribute]: Attribute already exists

I’ll be short on this one. For those of you in Magento theme developement, if you ever see this message

Warning: SimpleXMLElement::addAttribute() [simplexmlelement.addattribute]: Attribute already exists

Most likely you have layout problem. So dive into your theme /layout folder and quick check to see if it relly is the messed up layout in your theme is to rename entire /layout folder to something like /_layout. This way Magento will propagate to using default theme /layout folder. If the refresehed page now works, you located the error to be in /layout folder. Now do the same for few of the files inside the layout folder.

In my example I have added the following into catalog.xml under section

<remove name=”tags_popular” />

And that caused my Customer page to be broken after customer logs in.

Hope this help someone.

0

Getting things in Magento by getModel and getData methods

Getting things in Magento by getModel and getData methods

One of my previous articles was about getting a product information using getData method. This article is a step forward in that direction. I’m gonna show you how to retrieve almost anything in Magetno using getModel and getData methods (function if you prefer).

Before I start with the title related content let me say a word or two of my development tool. For the last few weeks I’m using only one tool while developing on PHP platform, NetBeans 6.5. My favorite text editor still remains Notepad++. Although the the official release is NetBeans 6.5 beta, I’m using the night build versions. In my modest opinion this is the best free IDE solution currently out there. I simply love the code completion in PHP and in HTML plus the coolest thing ever, jQuery code completion support. Since I’m a big fan of jQuery, NetBeans is my number one choice. Some of you probably don’t see HTML code completion as that big of a deal. Well, I do. It saves you a lot of time finishing all those quotes next to attributes and auto closing all those markup. Read more

2
123