If, in the course of your website, you use the Magento Downloader, you receive an error crying, “ERROR: failed to mkdir”, here’s a tip I just figured out.

If you moved your Magento to a new domain, check your path’s in your Downloader PEAR.ini file (/downloader/pearlib/pear.ini).  In my case, when i changed the domain name Plesk changed the saved folder name as well.  You can get an updated path by creating a PHPINFO file and saving it in there and checking the values there.  If the path isn’t the same as what’s in that serialized array, you’ll have to update all the paths in the PEAR.ini file.  Also be sure to update the string length, or PHP will throw another error.

Happy Computing!

Trackback

3 comments untill now

  1. If you have ssh access you can do the following:

    rm ./downloader/pearlib/pear.ini
    ./pear mage-setup

    Then the new pear.ini will be placed. Make sure that pear has execution rights (+x).

  2. You can also just delete the pear.ini file. Trough FTP or SSH, it’s the same. Worked for me :-)

Add your comment now