Magento v2 API call ends with "Extra Content" error

When your APi call fails with the following error:

SoapFault: SOAP-ERROR: Parsing WSDL: Couldn't load from 'http://localhost/store/api/v2_soap/?wsdl' : Extra content at the end of the document in SoapClient->SoapClient() etc...

Take a look at this post:

It seems there is a bug in PHP v5.3 - the WSDL parsing is failing. What to do about this?

Check the following post:

Magento Complex Product Types Cheat Sheet - What the FUDGE?!?

Mostly from Magento Connect:

Complex Products

Complex products in Magento are a way to consolidate product variants onto a single product info page in the front-end. The variants themselves are actually simple products and have their own SKUs and stock management. This is very powerful - it allows you to let customers search for the individual variants, but browse only to the consolidated product pages.


A Bundle is a “build your own” product type
Bundle Items can be Simple or Virtual products, but without Custom Variants and Options
The Price View of a Bundle can be set to display a price range or “As Low as”
The SKU and Weight of a Bundle product can be set to either “Fixed” or “Dynamic”
Items can have either a preset or user-defined quantity
Items can be shipped together or separately
Bundle product data cannot be imported into your catalog.


Getting a 500 Server Error after adding an htaccess file in Magento root

When trying to get server rewrites to work in Magento, you will need to ensure that the .htaccess file is in the Magento root directory.

On many shared hosting accounts such as GoDaddy and 1and1 you will get a "500" error from the server after enabling the appropriate settings.

Go into your .htaccess file and uncomment the "RewriteBase" directive, changing it to your folder's name.

Here's the catch for those of you not running in a virtual folder: Still uncomment it, but make it read: RewriteBase \ (that's a "backwards slash")

Vee-ola - Your site is up!


Applying One Exposed Filter Against Multiple Fields in Drupal Views

You are trying to have a single, exposed filter in Drupal Views which allows you to apply the value against more than one field to filter results.

You've tried Views PHP, CustomField and similar tactics. You've considered using some sort of jQuery function but know it's relatively hacky and possibly unreliable. You're about to give the whole idea the boot.

You've looked everywhere but cannot find a solution.

Now you have.

(Yeay - that really works! Yeay...)


Some great resources on how to get started programming Magento extensions

php Architect's Guide to Programming with Magento

Here's a great post on the basics of Magento controllers for your extension, especially IndexAction() and such:

It also ancludes this link to the best Magento dev learning site:

And finally, it links to an outstanding book for learning this crazy stuff:


Cannot seem to create new Magento admin groups in system.xml and adminhtml.xml

When learning to create a module that adds new administration groups to the Magento admin panel, follow these instructions:

However, something they fail to mention is that after you have created your new admin groups in system.xml, and after you have created your adminhtml.xml file (to allow permissions) you must LOG OUT AND LOG BACK IN (as administrator) to re-load the ACL and allow the new permissions to take effect!!! A tiny but hugely important detail. Failing to do so leads to hours of troubleshooting!!!

You heard it here first...


Drupal 7 Update Manager Unable to Connect via FTP

On some out-of-the-box configs Drupal 7 is unable to use the Update Manager to install modules and themes. There are many causes for this error, but a common on that has little coverage on the web is having mis-matched file/directory owners on the Linux file system.

Before you go crazy troubleshooting your FTP installation, port numbers and the like, attempt an FTP transfer using the same username, passowrd, port, etc through a standard FTP client. If it works, then try the following:

Connect to the Linux box through the shell. cd to the web root where your Drupal folder is located. Run the following command


Millions of Nodes in Drupal - disabling taxonomy references to speed it up?


5 million nodes successfull Drupal installation

Posted by fstilman on April 16, 2011 at 3:30am

We are proud to announce that we were able to install a Drupal system with more than 6 million nodes, with excellent performance. It took a couple of days for us to tune some "out-of-the-box" settings that were not suitable for this kind of system, but after this, we got excellent performance.

More in detail, the "million node content type" is a new content type with CCK fields (more than 10 CCK fields) and something like 5 millions nodes of this content type. These CCK fields include node references and content taxonomy references.


Why does my Apache Named Virtual Host answer when it shouldn't?

Why does my 'catch-all' Apache2 named virtual server answer on all calls, regardless as to whether I am specifying its correct server name?

In short, "Order Matters!" Apache can be configured such that each named virtual host is a separate file in a subdirectory. Don't do that! Make them be called from conf.d so that you can control the order in which they appear. By putting your unnamed "catch-all" vhost *first* you will find that all other vhosts (which have server names) will begin answering only when they are supposed to.



Subscribe to All About Todd RSS