Jul 14, 2010

Posted | 10 Comments

RoundStorm FTP Hack – Solution

This past weekend a few of my FTP accounts got hacked via a Java virus that is being spread via roundstorm.com, I posted some more info and a fix below.

Read More
Jan 12, 2010

Posted | 8 Comments

Magento 1.3 API Bug fixes

If your using the latest stable version of Magento 1.3 and are having issues with the XML RPC API you should try modifying the files below.

  • Bug #1: “Calling parameters do not match signature” when doing Login via XML RPC

    The latest version of Zend Framework has altered the some of the array formats which will ultimately cause the Magento API to fail.

    File: lib/Zend/XmlRpc/Server.php

    Find this code:

    if (!$matched) {  #require_once 'Zend/XmlRpc/Server/Exception.php';  throw new Zend_XmlRpc_Server_Exception('Calling parameters do not match signature', 623);}

    Replace with:

    /*if (!$matched) {  #require_once 'Zend/XmlRpc/Server/Exception.php';  throw new Zend_XmlRpc_Server_Exception('Calling parameters do not match signature', 623);}*/
  • Bug #2: “Access Denied” when doing Login via XML RPC

    File: app/code/core/Mage/Api/Model/Server/Handler/Abstract.php

    Find this code:

    public function login($username, $apiKey){  $this->_startSession();  try {    $this->_getSession()->login($username,$apiKey);

    Replace with:

    public function login($username, $apiKey){  $this->_startSession();  try {    $this->_getSession()->login($username[0],$apiKey[0]);

    Find this code:

    public function call($sessionId, $apiPath, $args = array()){<br><br>  $this-&gt;_startSession($sessionId);

    Replace with:

    public function call($sessionId, $apiPath, $args = array()){  $sessionId = $sessionId[0];  $apiPath = $apiPath[0];<br><br>  $this-&gt;_startSession($sessionId);

For any questions regarding this post contact us at http://internetrnd.com/contact-us

Leave a comment if you found this useful!

Read More