SoapFault exception: [1] Internal Error after upgrading to magento 1.9.3What is the difference between magento 1.9.2.4 and magento 1.9.3.0?create new product attribute returns fault code 104 (Incorrect attribute type)exception 'Mage_Core_Exception' with message 'Invalid block type: Mage__Block_Catalog'How to diagnose “Invalid block type ..” error?Magento Fatal error: Uncaught SoapFault exception [HTTP] Internal Server ErrorMagento - Invalid block typeM1 CE, paypal exception “PayPal NVP gateway errors”Can't run CRON PDOException Magento 1.9.3.8SOAP-ERROR: Parsing WSDL: Couldn't load from URL Failed to load External EntityCreate customer using magento Soap APIGetting:'Mage_Core_Exception' with message 'Invalid block type:

Why are C64 games inconsistent with which joystick port they use?

Why do airplanes use an axial flow jet engine instead of a more compact centrifugal jet engine?

Is floating in space similar to falling under gravity?

Should I disclose a colleague's illness (that I should not know about) when others badmouth him

Why colon to denote that a value belongs to a type?

How did early x86 BIOS programmers manage to program full blown TUIs given very few bytes of ROM/EPROM?

Why do they consider the Ori false gods?

Geological aftereffects of an asteroid impact on a large mountain range?

Mother abusing my finances

Full horizontal justification in table

How to plot an unstable attractor?

Integrating an absolute function using Mathematica

How to capture more stars?

What is the object moving across the ceiling in this stock footage?

Infinite Sequence based on Simple Rule

How long does it take to crack RSA 1024 with a PC?

Is this resistor leaking? If so, is it a concern?

How do you say “buy” in the sense of “believe”?

How can I find where certain bash function is defined?

Crossing US border with music files I'm legally allowed to possess

How to convert to standalone document a matrix table

How were these pictures of spacecraft wind tunnel testing taken?

Can a Beholder use rays in melee range?

How bitcoin nodes update UTXO set when their latests blocks are replaced?



SoapFault exception: [1] Internal Error after upgrading to magento 1.9.3


What is the difference between magento 1.9.2.4 and magento 1.9.3.0?create new product attribute returns fault code 104 (Incorrect attribute type)exception 'Mage_Core_Exception' with message 'Invalid block type: Mage__Block_Catalog'How to diagnose “Invalid block type ..” error?Magento Fatal error: Uncaught SoapFault exception [HTTP] Internal Server ErrorMagento - Invalid block typeM1 CE, paypal exception “PayPal NVP gateway errors”Can't run CRON PDOException Magento 1.9.3.8SOAP-ERROR: Parsing WSDL: Couldn't load from URL Failed to load External EntityCreate customer using magento Soap APIGetting:'Mage_Core_Exception' with message 'Invalid block type:






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;








0















After upgrading to Magento 1.9.3, I am having loads of problem, currently I am having the above error.



After looking at the exception log here is what I find:




SoapFault exception: [1] Internal Error. Please see log for details.




in /home1/mysitename/public_html/mysitefolder/app/code/core/Mage/Api/Model/Server/Adapter/Soap.php:196
Stack trace:




0
/home1/mysitename/public_html/mysitefolder/app/code/core/Mage/Api/Model/Server/Handler/Abstract.php(140):
Mage_Api_Model_Server_Adapter_Soap->fault('1', 'Internal Error....')



1
/home1/mysitename/public_html/mysitefolder/app/code/core/Mage/Api/Model/Server/Handler/Abstract.php(48):
Mage_Api_Model_Server_Handler_Abstract->_fault('internal')



2
/home1/mysitename/public_html/mysitefolder/app/code/core/Mage/Api/Model/Server/Handler/Abstract.php(559):
Mage_Api_Model_Server_Handler_Abstract->handlePhpError(4096, 'Argument
1 pass...', '/home1/mysitename...', 559, Array)



3
/home1/mysitename/public_html/mysitefolder/app/code/core/Mage/Api/Model/Server/Handler/Abstract.php(299):
Mage_Api_Model_Server_Handler_Abstract->processingMethodResult('default')



4
/home1/mysitename/public_html/mysitefolder/app/code/core/Mage/Api/Model/Server/Wsi/Handler.php(78):
Mage_Api_Model_Server_Handler_Abstract->call('20dc1668276687a...',
'linnLive.getSto...', Array)



5 [internal function]:
Mage_Api_Model_Server_WSI_Handler->__call('linnLiveGetStor...', Array)



6 [internal function]:
Mage_Api_Model_Server_WSI_Handler->linnLiveGetStoreCode(Object(stdClass))



7
/home1/mysitename/public_html/mysitefolder/lib/Zend/Soap/Server.php(889):
SoapServer->handle('xEFxBBxBF


8
/home1/mysitename/public_html/mysitefolder/app/code/core/Mage/Api/Model/Server/Wsi/Adapter/Soap.php(98):
Zend_Soap_Server->handle()



9
/home1/mysitename/public_html/mysitefolder/app/code/core/Mage/Api/Model/Server.php(138):
Mage_Api_Model_Server_WSI_Adapter_Soap->run()



10
/home1/mysitename/public_html/mysitefolder/app/code/core/Mage/Api/controllers/V2/SoapController.php(46):
Mage_Api_Model_Server->run()



11
/home1/mysitename/public_html/mysitefolder/app/code/core/Mage/Core/Controller/Varien/Action.php(418):
Mage_Api_V2_SoapController->indexAction()



12
/home1/mysitename/public_html/mysitefolder/app/code/core/Mage/Core/Controller/Varien/Router/Standard.php(254):
Mage_Core_Controller_Varien_Action->dispatch('index')



13
/home1/mysitename/public_html/mysitefolder/app/code/core/Mage/Core/Controller/Varien/Front.php(172):
Mage_Core_Controller_Varien_Router_Standard->match(Object(Mage_Core_Controller_Request_Http))



14
/home1/mysitename/public_html/mysitefolder/app/code/core/Mage/Core/Model/App.php(365):
Mage_Core_Controller_Varien_Front->dispatch()



15 /home1/mysitename/public_html/mysitefolder/app/Mage.php(684):
Mage_Core_Model_App->run(Array)



16 /home1/mysitename/public_html/mysitefolder/index.php(83):
Mage::run('', 'store')



17 main




Below is soap.php



class Mage_Api_Model_Server_Adapter_Soap
extends Varien_Object
implements Mage_Api_Model_Server_Adapter_Interface


Varien_Object
*/
public function getController()

$controller = $this->getData('controller');

if (null === $controller)
$controller = new Varien_Object(
array('request' => Mage::app()->getRequest(), 'response' => Mage::app()->getResponse())
);

$this->setData('controller', $controller);

return $controller;


/**
* Run webservice
*
* @param Mage_Api_Controller_Action $controller
* @return Mage_Api_Model_Server_Adapter_Soap
*/
public function run()

$apiConfigCharset = Mage::getStoreConfig("api/config/charset");

if ($this->getController()->getRequest()->getParam('wsdl') !== null)
// Generating wsdl content from template
$io = new Varien_Io_File();
$io->open(array('path'=>Mage::getModuleDir('etc', 'Mage_Api')));

$wsdlContent = $io->read('wsdl.xml');

$template = Mage::getModel('core/email_template_filter');

$template->setVariables(array('wsdl' => $this->wsdlConfig));

$this->getController()->getResponse()
->clearHeaders()
->setHeader('Content-Type','text/xml; charset='.$apiConfigCharset)
->setBody(
preg_replace(
'/<?xml version="([^"]+)"([^>]+)>/i',
'<?xml version="$1" encoding="'.$apiConfigCharset.'"?>',
$template->filter($wsdlContent)
)
);
else
try
$this->_instantiateServer();

$this->getController()->getResponse()
->clearHeaders()
->setHeader('Content-Type','text/xml; charset='.$apiConfigCharset)
->setBody(
preg_replace(
'/<?xml version="([^"]+)"([^>]+)>/i',
'<?xml version="$1" encoding="'.$apiConfigCharset.'"?>',
$this->_soap->handle()
)
);
catch( Zend_Soap_Server_Exception $e )
$this->fault( $e->getCode(), $e->getMessage() );
catch( Exception $e )
$this->fault( $e->getCode(), $e->getMessage() );



return $this;


/**
* Dispatch webservice fault
*
* @param int $code
* @param string $message
*/
public function fault($code, $message)

if ($this->_extensionLoaded())
throw new SoapFault($code, $message);
else
die('<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
<SOAP-ENV:Body>
<SOAP-ENV:Fault>
<faultcode>' . $code . '</faultcode>
<faultstring>' . $message . '</faultstring>
</SOAP-ENV:Fault>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>');




/**
* Check whether Soap extension is loaded
*
* @return boolean
*/
protected function _extensionLoaded()

return class_exists('SoapServer', false);


/**
* Transform wsdl url if $_SERVER["PHP_AUTH_USER"] is set
*
* @param array
* @return String
*/
protected function getWsdlUrl($params = null, $withAuth = true)

$urlModel = Mage::getModel('core/url')
->setUseSession(false);

$wsdlUrl = $params !== null
? $urlModel->getUrl('*/*/*', array('_current' => true, '_query' => $params))
: $urlModel->getUrl('*/*/*');

if ( $withAuth )
$phpAuthUser = rawurlencode($this->getController()->getRequest()->getServer('PHP_AUTH_USER', false));
$phpAuthPw = rawurlencode($this->getController()->getRequest()->getServer('PHP_AUTH_PW', false));
$scheme = rawurlencode($this->getController()->getRequest()->getScheme());

if ($phpAuthUser && $phpAuthPw)
$wsdlUrl = sprintf("%s://%s:%s@%s", $scheme, $phpAuthUser, $phpAuthPw,
str_replace($scheme . '://', '', $wsdlUrl));



return $wsdlUrl;


/**
* Try to instantiate Zend_Soap_Server
* If schema import error is caught, it will retry in 1 second.
*
* @throws Zend_Soap_Server_Exception
*/
protected function _instantiateServer()

$apiConfigCharset = Mage::getStoreConfig('api/config/charset');
$wsdlCacheEnabled = (bool) Mage::getStoreConfig('api/config/wsdl_cache_enabled');

if ($wsdlCacheEnabled)
ini_set('soap.wsdl_cache_enabled', '1');
else
ini_set('soap.wsdl_cache_enabled', '0');


$tries = 0;
do
$retry = false;
try
$this->_soap = new Zend_Soap_Server($this->getWsdlUrl(array("wsdl" => 1)),
array('encoding' => $apiConfigCharset));
catch (SoapFault $e)
if (false !== strpos($e->getMessage(),
"can't import schema from 'http://schemas.xmlsoap.org/soap/encoding/'")
)
$retry = true;
sleep(1);
else
throw $e;

$tries++;

while ($retry && $tries < 5);
use_soap_error_handler(false);
$this->_soap
->setReturnResponse(true)
->setClass($this->getHandler());












share|improve this question






























    0















    After upgrading to Magento 1.9.3, I am having loads of problem, currently I am having the above error.



    After looking at the exception log here is what I find:




    SoapFault exception: [1] Internal Error. Please see log for details.




    in /home1/mysitename/public_html/mysitefolder/app/code/core/Mage/Api/Model/Server/Adapter/Soap.php:196
    Stack trace:




    0
    /home1/mysitename/public_html/mysitefolder/app/code/core/Mage/Api/Model/Server/Handler/Abstract.php(140):
    Mage_Api_Model_Server_Adapter_Soap->fault('1', 'Internal Error....')



    1
    /home1/mysitename/public_html/mysitefolder/app/code/core/Mage/Api/Model/Server/Handler/Abstract.php(48):
    Mage_Api_Model_Server_Handler_Abstract->_fault('internal')



    2
    /home1/mysitename/public_html/mysitefolder/app/code/core/Mage/Api/Model/Server/Handler/Abstract.php(559):
    Mage_Api_Model_Server_Handler_Abstract->handlePhpError(4096, 'Argument
    1 pass...', '/home1/mysitename...', 559, Array)



    3
    /home1/mysitename/public_html/mysitefolder/app/code/core/Mage/Api/Model/Server/Handler/Abstract.php(299):
    Mage_Api_Model_Server_Handler_Abstract->processingMethodResult('default')



    4
    /home1/mysitename/public_html/mysitefolder/app/code/core/Mage/Api/Model/Server/Wsi/Handler.php(78):
    Mage_Api_Model_Server_Handler_Abstract->call('20dc1668276687a...',
    'linnLive.getSto...', Array)



    5 [internal function]:
    Mage_Api_Model_Server_WSI_Handler->__call('linnLiveGetStor...', Array)



    6 [internal function]:
    Mage_Api_Model_Server_WSI_Handler->linnLiveGetStoreCode(Object(stdClass))



    7
    /home1/mysitename/public_html/mysitefolder/lib/Zend/Soap/Server.php(889):
    SoapServer->handle('xEFxBBxBF


    8
    /home1/mysitename/public_html/mysitefolder/app/code/core/Mage/Api/Model/Server/Wsi/Adapter/Soap.php(98):
    Zend_Soap_Server->handle()



    9
    /home1/mysitename/public_html/mysitefolder/app/code/core/Mage/Api/Model/Server.php(138):
    Mage_Api_Model_Server_WSI_Adapter_Soap->run()



    10
    /home1/mysitename/public_html/mysitefolder/app/code/core/Mage/Api/controllers/V2/SoapController.php(46):
    Mage_Api_Model_Server->run()



    11
    /home1/mysitename/public_html/mysitefolder/app/code/core/Mage/Core/Controller/Varien/Action.php(418):
    Mage_Api_V2_SoapController->indexAction()



    12
    /home1/mysitename/public_html/mysitefolder/app/code/core/Mage/Core/Controller/Varien/Router/Standard.php(254):
    Mage_Core_Controller_Varien_Action->dispatch('index')



    13
    /home1/mysitename/public_html/mysitefolder/app/code/core/Mage/Core/Controller/Varien/Front.php(172):
    Mage_Core_Controller_Varien_Router_Standard->match(Object(Mage_Core_Controller_Request_Http))



    14
    /home1/mysitename/public_html/mysitefolder/app/code/core/Mage/Core/Model/App.php(365):
    Mage_Core_Controller_Varien_Front->dispatch()



    15 /home1/mysitename/public_html/mysitefolder/app/Mage.php(684):
    Mage_Core_Model_App->run(Array)



    16 /home1/mysitename/public_html/mysitefolder/index.php(83):
    Mage::run('', 'store')



    17 main




    Below is soap.php



    class Mage_Api_Model_Server_Adapter_Soap
    extends Varien_Object
    implements Mage_Api_Model_Server_Adapter_Interface


    Varien_Object
    */
    public function getController()

    $controller = $this->getData('controller');

    if (null === $controller)
    $controller = new Varien_Object(
    array('request' => Mage::app()->getRequest(), 'response' => Mage::app()->getResponse())
    );

    $this->setData('controller', $controller);

    return $controller;


    /**
    * Run webservice
    *
    * @param Mage_Api_Controller_Action $controller
    * @return Mage_Api_Model_Server_Adapter_Soap
    */
    public function run()

    $apiConfigCharset = Mage::getStoreConfig("api/config/charset");

    if ($this->getController()->getRequest()->getParam('wsdl') !== null)
    // Generating wsdl content from template
    $io = new Varien_Io_File();
    $io->open(array('path'=>Mage::getModuleDir('etc', 'Mage_Api')));

    $wsdlContent = $io->read('wsdl.xml');

    $template = Mage::getModel('core/email_template_filter');

    $template->setVariables(array('wsdl' => $this->wsdlConfig));

    $this->getController()->getResponse()
    ->clearHeaders()
    ->setHeader('Content-Type','text/xml; charset='.$apiConfigCharset)
    ->setBody(
    preg_replace(
    '/<?xml version="([^"]+)"([^>]+)>/i',
    '<?xml version="$1" encoding="'.$apiConfigCharset.'"?>',
    $template->filter($wsdlContent)
    )
    );
    else
    try
    $this->_instantiateServer();

    $this->getController()->getResponse()
    ->clearHeaders()
    ->setHeader('Content-Type','text/xml; charset='.$apiConfigCharset)
    ->setBody(
    preg_replace(
    '/<?xml version="([^"]+)"([^>]+)>/i',
    '<?xml version="$1" encoding="'.$apiConfigCharset.'"?>',
    $this->_soap->handle()
    )
    );
    catch( Zend_Soap_Server_Exception $e )
    $this->fault( $e->getCode(), $e->getMessage() );
    catch( Exception $e )
    $this->fault( $e->getCode(), $e->getMessage() );



    return $this;


    /**
    * Dispatch webservice fault
    *
    * @param int $code
    * @param string $message
    */
    public function fault($code, $message)

    if ($this->_extensionLoaded())
    throw new SoapFault($code, $message);
    else
    die('<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
    <SOAP-ENV:Body>
    <SOAP-ENV:Fault>
    <faultcode>' . $code . '</faultcode>
    <faultstring>' . $message . '</faultstring>
    </SOAP-ENV:Fault>
    </SOAP-ENV:Body>
    </SOAP-ENV:Envelope>');




    /**
    * Check whether Soap extension is loaded
    *
    * @return boolean
    */
    protected function _extensionLoaded()

    return class_exists('SoapServer', false);


    /**
    * Transform wsdl url if $_SERVER["PHP_AUTH_USER"] is set
    *
    * @param array
    * @return String
    */
    protected function getWsdlUrl($params = null, $withAuth = true)

    $urlModel = Mage::getModel('core/url')
    ->setUseSession(false);

    $wsdlUrl = $params !== null
    ? $urlModel->getUrl('*/*/*', array('_current' => true, '_query' => $params))
    : $urlModel->getUrl('*/*/*');

    if ( $withAuth )
    $phpAuthUser = rawurlencode($this->getController()->getRequest()->getServer('PHP_AUTH_USER', false));
    $phpAuthPw = rawurlencode($this->getController()->getRequest()->getServer('PHP_AUTH_PW', false));
    $scheme = rawurlencode($this->getController()->getRequest()->getScheme());

    if ($phpAuthUser && $phpAuthPw)
    $wsdlUrl = sprintf("%s://%s:%s@%s", $scheme, $phpAuthUser, $phpAuthPw,
    str_replace($scheme . '://', '', $wsdlUrl));



    return $wsdlUrl;


    /**
    * Try to instantiate Zend_Soap_Server
    * If schema import error is caught, it will retry in 1 second.
    *
    * @throws Zend_Soap_Server_Exception
    */
    protected function _instantiateServer()

    $apiConfigCharset = Mage::getStoreConfig('api/config/charset');
    $wsdlCacheEnabled = (bool) Mage::getStoreConfig('api/config/wsdl_cache_enabled');

    if ($wsdlCacheEnabled)
    ini_set('soap.wsdl_cache_enabled', '1');
    else
    ini_set('soap.wsdl_cache_enabled', '0');


    $tries = 0;
    do
    $retry = false;
    try
    $this->_soap = new Zend_Soap_Server($this->getWsdlUrl(array("wsdl" => 1)),
    array('encoding' => $apiConfigCharset));
    catch (SoapFault $e)
    if (false !== strpos($e->getMessage(),
    "can't import schema from 'http://schemas.xmlsoap.org/soap/encoding/'")
    )
    $retry = true;
    sleep(1);
    else
    throw $e;

    $tries++;

    while ($retry && $tries < 5);
    use_soap_error_handler(false);
    $this->_soap
    ->setReturnResponse(true)
    ->setClass($this->getHandler());












    share|improve this question


























      0












      0








      0








      After upgrading to Magento 1.9.3, I am having loads of problem, currently I am having the above error.



      After looking at the exception log here is what I find:




      SoapFault exception: [1] Internal Error. Please see log for details.




      in /home1/mysitename/public_html/mysitefolder/app/code/core/Mage/Api/Model/Server/Adapter/Soap.php:196
      Stack trace:




      0
      /home1/mysitename/public_html/mysitefolder/app/code/core/Mage/Api/Model/Server/Handler/Abstract.php(140):
      Mage_Api_Model_Server_Adapter_Soap->fault('1', 'Internal Error....')



      1
      /home1/mysitename/public_html/mysitefolder/app/code/core/Mage/Api/Model/Server/Handler/Abstract.php(48):
      Mage_Api_Model_Server_Handler_Abstract->_fault('internal')



      2
      /home1/mysitename/public_html/mysitefolder/app/code/core/Mage/Api/Model/Server/Handler/Abstract.php(559):
      Mage_Api_Model_Server_Handler_Abstract->handlePhpError(4096, 'Argument
      1 pass...', '/home1/mysitename...', 559, Array)



      3
      /home1/mysitename/public_html/mysitefolder/app/code/core/Mage/Api/Model/Server/Handler/Abstract.php(299):
      Mage_Api_Model_Server_Handler_Abstract->processingMethodResult('default')



      4
      /home1/mysitename/public_html/mysitefolder/app/code/core/Mage/Api/Model/Server/Wsi/Handler.php(78):
      Mage_Api_Model_Server_Handler_Abstract->call('20dc1668276687a...',
      'linnLive.getSto...', Array)



      5 [internal function]:
      Mage_Api_Model_Server_WSI_Handler->__call('linnLiveGetStor...', Array)



      6 [internal function]:
      Mage_Api_Model_Server_WSI_Handler->linnLiveGetStoreCode(Object(stdClass))



      7
      /home1/mysitename/public_html/mysitefolder/lib/Zend/Soap/Server.php(889):
      SoapServer->handle('xEFxBBxBF


      8
      /home1/mysitename/public_html/mysitefolder/app/code/core/Mage/Api/Model/Server/Wsi/Adapter/Soap.php(98):
      Zend_Soap_Server->handle()



      9
      /home1/mysitename/public_html/mysitefolder/app/code/core/Mage/Api/Model/Server.php(138):
      Mage_Api_Model_Server_WSI_Adapter_Soap->run()



      10
      /home1/mysitename/public_html/mysitefolder/app/code/core/Mage/Api/controllers/V2/SoapController.php(46):
      Mage_Api_Model_Server->run()



      11
      /home1/mysitename/public_html/mysitefolder/app/code/core/Mage/Core/Controller/Varien/Action.php(418):
      Mage_Api_V2_SoapController->indexAction()



      12
      /home1/mysitename/public_html/mysitefolder/app/code/core/Mage/Core/Controller/Varien/Router/Standard.php(254):
      Mage_Core_Controller_Varien_Action->dispatch('index')



      13
      /home1/mysitename/public_html/mysitefolder/app/code/core/Mage/Core/Controller/Varien/Front.php(172):
      Mage_Core_Controller_Varien_Router_Standard->match(Object(Mage_Core_Controller_Request_Http))



      14
      /home1/mysitename/public_html/mysitefolder/app/code/core/Mage/Core/Model/App.php(365):
      Mage_Core_Controller_Varien_Front->dispatch()



      15 /home1/mysitename/public_html/mysitefolder/app/Mage.php(684):
      Mage_Core_Model_App->run(Array)



      16 /home1/mysitename/public_html/mysitefolder/index.php(83):
      Mage::run('', 'store')



      17 main




      Below is soap.php



      class Mage_Api_Model_Server_Adapter_Soap
      extends Varien_Object
      implements Mage_Api_Model_Server_Adapter_Interface


      Varien_Object
      */
      public function getController()

      $controller = $this->getData('controller');

      if (null === $controller)
      $controller = new Varien_Object(
      array('request' => Mage::app()->getRequest(), 'response' => Mage::app()->getResponse())
      );

      $this->setData('controller', $controller);

      return $controller;


      /**
      * Run webservice
      *
      * @param Mage_Api_Controller_Action $controller
      * @return Mage_Api_Model_Server_Adapter_Soap
      */
      public function run()

      $apiConfigCharset = Mage::getStoreConfig("api/config/charset");

      if ($this->getController()->getRequest()->getParam('wsdl') !== null)
      // Generating wsdl content from template
      $io = new Varien_Io_File();
      $io->open(array('path'=>Mage::getModuleDir('etc', 'Mage_Api')));

      $wsdlContent = $io->read('wsdl.xml');

      $template = Mage::getModel('core/email_template_filter');

      $template->setVariables(array('wsdl' => $this->wsdlConfig));

      $this->getController()->getResponse()
      ->clearHeaders()
      ->setHeader('Content-Type','text/xml; charset='.$apiConfigCharset)
      ->setBody(
      preg_replace(
      '/<?xml version="([^"]+)"([^>]+)>/i',
      '<?xml version="$1" encoding="'.$apiConfigCharset.'"?>',
      $template->filter($wsdlContent)
      )
      );
      else
      try
      $this->_instantiateServer();

      $this->getController()->getResponse()
      ->clearHeaders()
      ->setHeader('Content-Type','text/xml; charset='.$apiConfigCharset)
      ->setBody(
      preg_replace(
      '/<?xml version="([^"]+)"([^>]+)>/i',
      '<?xml version="$1" encoding="'.$apiConfigCharset.'"?>',
      $this->_soap->handle()
      )
      );
      catch( Zend_Soap_Server_Exception $e )
      $this->fault( $e->getCode(), $e->getMessage() );
      catch( Exception $e )
      $this->fault( $e->getCode(), $e->getMessage() );



      return $this;


      /**
      * Dispatch webservice fault
      *
      * @param int $code
      * @param string $message
      */
      public function fault($code, $message)

      if ($this->_extensionLoaded())
      throw new SoapFault($code, $message);
      else
      die('<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
      <SOAP-ENV:Body>
      <SOAP-ENV:Fault>
      <faultcode>' . $code . '</faultcode>
      <faultstring>' . $message . '</faultstring>
      </SOAP-ENV:Fault>
      </SOAP-ENV:Body>
      </SOAP-ENV:Envelope>');




      /**
      * Check whether Soap extension is loaded
      *
      * @return boolean
      */
      protected function _extensionLoaded()

      return class_exists('SoapServer', false);


      /**
      * Transform wsdl url if $_SERVER["PHP_AUTH_USER"] is set
      *
      * @param array
      * @return String
      */
      protected function getWsdlUrl($params = null, $withAuth = true)

      $urlModel = Mage::getModel('core/url')
      ->setUseSession(false);

      $wsdlUrl = $params !== null
      ? $urlModel->getUrl('*/*/*', array('_current' => true, '_query' => $params))
      : $urlModel->getUrl('*/*/*');

      if ( $withAuth )
      $phpAuthUser = rawurlencode($this->getController()->getRequest()->getServer('PHP_AUTH_USER', false));
      $phpAuthPw = rawurlencode($this->getController()->getRequest()->getServer('PHP_AUTH_PW', false));
      $scheme = rawurlencode($this->getController()->getRequest()->getScheme());

      if ($phpAuthUser && $phpAuthPw)
      $wsdlUrl = sprintf("%s://%s:%s@%s", $scheme, $phpAuthUser, $phpAuthPw,
      str_replace($scheme . '://', '', $wsdlUrl));



      return $wsdlUrl;


      /**
      * Try to instantiate Zend_Soap_Server
      * If schema import error is caught, it will retry in 1 second.
      *
      * @throws Zend_Soap_Server_Exception
      */
      protected function _instantiateServer()

      $apiConfigCharset = Mage::getStoreConfig('api/config/charset');
      $wsdlCacheEnabled = (bool) Mage::getStoreConfig('api/config/wsdl_cache_enabled');

      if ($wsdlCacheEnabled)
      ini_set('soap.wsdl_cache_enabled', '1');
      else
      ini_set('soap.wsdl_cache_enabled', '0');


      $tries = 0;
      do
      $retry = false;
      try
      $this->_soap = new Zend_Soap_Server($this->getWsdlUrl(array("wsdl" => 1)),
      array('encoding' => $apiConfigCharset));
      catch (SoapFault $e)
      if (false !== strpos($e->getMessage(),
      "can't import schema from 'http://schemas.xmlsoap.org/soap/encoding/'")
      )
      $retry = true;
      sleep(1);
      else
      throw $e;

      $tries++;

      while ($retry && $tries < 5);
      use_soap_error_handler(false);
      $this->_soap
      ->setReturnResponse(true)
      ->setClass($this->getHandler());












      share|improve this question
















      After upgrading to Magento 1.9.3, I am having loads of problem, currently I am having the above error.



      After looking at the exception log here is what I find:




      SoapFault exception: [1] Internal Error. Please see log for details.




      in /home1/mysitename/public_html/mysitefolder/app/code/core/Mage/Api/Model/Server/Adapter/Soap.php:196
      Stack trace:




      0
      /home1/mysitename/public_html/mysitefolder/app/code/core/Mage/Api/Model/Server/Handler/Abstract.php(140):
      Mage_Api_Model_Server_Adapter_Soap->fault('1', 'Internal Error....')



      1
      /home1/mysitename/public_html/mysitefolder/app/code/core/Mage/Api/Model/Server/Handler/Abstract.php(48):
      Mage_Api_Model_Server_Handler_Abstract->_fault('internal')



      2
      /home1/mysitename/public_html/mysitefolder/app/code/core/Mage/Api/Model/Server/Handler/Abstract.php(559):
      Mage_Api_Model_Server_Handler_Abstract->handlePhpError(4096, 'Argument
      1 pass...', '/home1/mysitename...', 559, Array)



      3
      /home1/mysitename/public_html/mysitefolder/app/code/core/Mage/Api/Model/Server/Handler/Abstract.php(299):
      Mage_Api_Model_Server_Handler_Abstract->processingMethodResult('default')



      4
      /home1/mysitename/public_html/mysitefolder/app/code/core/Mage/Api/Model/Server/Wsi/Handler.php(78):
      Mage_Api_Model_Server_Handler_Abstract->call('20dc1668276687a...',
      'linnLive.getSto...', Array)



      5 [internal function]:
      Mage_Api_Model_Server_WSI_Handler->__call('linnLiveGetStor...', Array)



      6 [internal function]:
      Mage_Api_Model_Server_WSI_Handler->linnLiveGetStoreCode(Object(stdClass))



      7
      /home1/mysitename/public_html/mysitefolder/lib/Zend/Soap/Server.php(889):
      SoapServer->handle('xEFxBBxBF


      8
      /home1/mysitename/public_html/mysitefolder/app/code/core/Mage/Api/Model/Server/Wsi/Adapter/Soap.php(98):
      Zend_Soap_Server->handle()



      9
      /home1/mysitename/public_html/mysitefolder/app/code/core/Mage/Api/Model/Server.php(138):
      Mage_Api_Model_Server_WSI_Adapter_Soap->run()



      10
      /home1/mysitename/public_html/mysitefolder/app/code/core/Mage/Api/controllers/V2/SoapController.php(46):
      Mage_Api_Model_Server->run()



      11
      /home1/mysitename/public_html/mysitefolder/app/code/core/Mage/Core/Controller/Varien/Action.php(418):
      Mage_Api_V2_SoapController->indexAction()



      12
      /home1/mysitename/public_html/mysitefolder/app/code/core/Mage/Core/Controller/Varien/Router/Standard.php(254):
      Mage_Core_Controller_Varien_Action->dispatch('index')



      13
      /home1/mysitename/public_html/mysitefolder/app/code/core/Mage/Core/Controller/Varien/Front.php(172):
      Mage_Core_Controller_Varien_Router_Standard->match(Object(Mage_Core_Controller_Request_Http))



      14
      /home1/mysitename/public_html/mysitefolder/app/code/core/Mage/Core/Model/App.php(365):
      Mage_Core_Controller_Varien_Front->dispatch()



      15 /home1/mysitename/public_html/mysitefolder/app/Mage.php(684):
      Mage_Core_Model_App->run(Array)



      16 /home1/mysitename/public_html/mysitefolder/index.php(83):
      Mage::run('', 'store')



      17 main




      Below is soap.php



      class Mage_Api_Model_Server_Adapter_Soap
      extends Varien_Object
      implements Mage_Api_Model_Server_Adapter_Interface


      Varien_Object
      */
      public function getController()

      $controller = $this->getData('controller');

      if (null === $controller)
      $controller = new Varien_Object(
      array('request' => Mage::app()->getRequest(), 'response' => Mage::app()->getResponse())
      );

      $this->setData('controller', $controller);

      return $controller;


      /**
      * Run webservice
      *
      * @param Mage_Api_Controller_Action $controller
      * @return Mage_Api_Model_Server_Adapter_Soap
      */
      public function run()

      $apiConfigCharset = Mage::getStoreConfig("api/config/charset");

      if ($this->getController()->getRequest()->getParam('wsdl') !== null)
      // Generating wsdl content from template
      $io = new Varien_Io_File();
      $io->open(array('path'=>Mage::getModuleDir('etc', 'Mage_Api')));

      $wsdlContent = $io->read('wsdl.xml');

      $template = Mage::getModel('core/email_template_filter');

      $template->setVariables(array('wsdl' => $this->wsdlConfig));

      $this->getController()->getResponse()
      ->clearHeaders()
      ->setHeader('Content-Type','text/xml; charset='.$apiConfigCharset)
      ->setBody(
      preg_replace(
      '/<?xml version="([^"]+)"([^>]+)>/i',
      '<?xml version="$1" encoding="'.$apiConfigCharset.'"?>',
      $template->filter($wsdlContent)
      )
      );
      else
      try
      $this->_instantiateServer();

      $this->getController()->getResponse()
      ->clearHeaders()
      ->setHeader('Content-Type','text/xml; charset='.$apiConfigCharset)
      ->setBody(
      preg_replace(
      '/<?xml version="([^"]+)"([^>]+)>/i',
      '<?xml version="$1" encoding="'.$apiConfigCharset.'"?>',
      $this->_soap->handle()
      )
      );
      catch( Zend_Soap_Server_Exception $e )
      $this->fault( $e->getCode(), $e->getMessage() );
      catch( Exception $e )
      $this->fault( $e->getCode(), $e->getMessage() );



      return $this;


      /**
      * Dispatch webservice fault
      *
      * @param int $code
      * @param string $message
      */
      public function fault($code, $message)

      if ($this->_extensionLoaded())
      throw new SoapFault($code, $message);
      else
      die('<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
      <SOAP-ENV:Body>
      <SOAP-ENV:Fault>
      <faultcode>' . $code . '</faultcode>
      <faultstring>' . $message . '</faultstring>
      </SOAP-ENV:Fault>
      </SOAP-ENV:Body>
      </SOAP-ENV:Envelope>');




      /**
      * Check whether Soap extension is loaded
      *
      * @return boolean
      */
      protected function _extensionLoaded()

      return class_exists('SoapServer', false);


      /**
      * Transform wsdl url if $_SERVER["PHP_AUTH_USER"] is set
      *
      * @param array
      * @return String
      */
      protected function getWsdlUrl($params = null, $withAuth = true)

      $urlModel = Mage::getModel('core/url')
      ->setUseSession(false);

      $wsdlUrl = $params !== null
      ? $urlModel->getUrl('*/*/*', array('_current' => true, '_query' => $params))
      : $urlModel->getUrl('*/*/*');

      if ( $withAuth )
      $phpAuthUser = rawurlencode($this->getController()->getRequest()->getServer('PHP_AUTH_USER', false));
      $phpAuthPw = rawurlencode($this->getController()->getRequest()->getServer('PHP_AUTH_PW', false));
      $scheme = rawurlencode($this->getController()->getRequest()->getScheme());

      if ($phpAuthUser && $phpAuthPw)
      $wsdlUrl = sprintf("%s://%s:%s@%s", $scheme, $phpAuthUser, $phpAuthPw,
      str_replace($scheme . '://', '', $wsdlUrl));



      return $wsdlUrl;


      /**
      * Try to instantiate Zend_Soap_Server
      * If schema import error is caught, it will retry in 1 second.
      *
      * @throws Zend_Soap_Server_Exception
      */
      protected function _instantiateServer()

      $apiConfigCharset = Mage::getStoreConfig('api/config/charset');
      $wsdlCacheEnabled = (bool) Mage::getStoreConfig('api/config/wsdl_cache_enabled');

      if ($wsdlCacheEnabled)
      ini_set('soap.wsdl_cache_enabled', '1');
      else
      ini_set('soap.wsdl_cache_enabled', '0');


      $tries = 0;
      do
      $retry = false;
      try
      $this->_soap = new Zend_Soap_Server($this->getWsdlUrl(array("wsdl" => 1)),
      array('encoding' => $apiConfigCharset));
      catch (SoapFault $e)
      if (false !== strpos($e->getMessage(),
      "can't import schema from 'http://schemas.xmlsoap.org/soap/encoding/'")
      )
      $retry = true;
      sleep(1);
      else
      throw $e;

      $tries++;

      while ($retry && $tries < 5);
      use_soap_error_handler(false);
      $this->_soap
      ->setReturnResponse(true)
      ->setClass($this->getHandler());









      soap exception magento1.9.3






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Nov 11 '16 at 4:20









      Devtype

      2,24011333




      2,24011333










      asked Nov 10 '16 at 21:26









      SidSid

      1




      1




















          1 Answer
          1






          active

          oldest

          votes


















          0














          All the problem including this will be resolved if you following the following solution.



          Magento 1.9.3 All known problems






          share|improve this answer

























            Your Answer








            StackExchange.ready(function()
            var channelOptions =
            tags: "".split(" "),
            id: "479"
            ;
            initTagRenderer("".split(" "), "".split(" "), channelOptions);

            StackExchange.using("externalEditor", function()
            // Have to fire editor after snippets, if snippets enabled
            if (StackExchange.settings.snippets.snippetsEnabled)
            StackExchange.using("snippets", function()
            createEditor();
            );

            else
            createEditor();

            );

            function createEditor()
            StackExchange.prepareEditor(
            heartbeatType: 'answer',
            autoActivateHeartbeat: false,
            convertImagesToLinks: false,
            noModals: true,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: null,
            bindNavPrevention: true,
            postfix: "",
            imageUploader:
            brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
            contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
            allowUrls: true
            ,
            onDemand: true,
            discardSelector: ".discard-answer"
            ,immediatelyShowMarkdownHelp:true
            );



            );













            draft saved

            draft discarded


















            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f145211%2fsoapfault-exception-1-internal-error-after-upgrading-to-magento-1-9-3%23new-answer', 'question_page');

            );

            Post as a guest















            Required, but never shown

























            1 Answer
            1






            active

            oldest

            votes








            1 Answer
            1






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes









            0














            All the problem including this will be resolved if you following the following solution.



            Magento 1.9.3 All known problems






            share|improve this answer





























              0














              All the problem including this will be resolved if you following the following solution.



              Magento 1.9.3 All known problems






              share|improve this answer



























                0












                0








                0







                All the problem including this will be resolved if you following the following solution.



                Magento 1.9.3 All known problems






                share|improve this answer















                All the problem including this will be resolved if you following the following solution.



                Magento 1.9.3 All known problems







                share|improve this answer














                share|improve this answer



                share|improve this answer








                edited Apr 13 '17 at 12:54









                Community

                1




                1










                answered Nov 12 '16 at 20:28









                SidSid

                1




                1



























                    draft saved

                    draft discarded
















































                    Thanks for contributing an answer to Magento Stack Exchange!


                    • Please be sure to answer the question. Provide details and share your research!

                    But avoid


                    • Asking for help, clarification, or responding to other answers.

                    • Making statements based on opinion; back them up with references or personal experience.

                    To learn more, see our tips on writing great answers.




                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function ()
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f145211%2fsoapfault-exception-1-internal-error-after-upgrading-to-magento-1-9-3%23new-answer', 'question_page');

                    );

                    Post as a guest















                    Required, but never shown





















































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown

































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown







                    Popular posts from this blog

                    Category:9 (number) SubcategoriesMedia in category "9 (number)"Navigation menuUpload mediaGND ID: 4485639-8Library of Congress authority ID: sh85091979ReasonatorScholiaStatistics

                    Circuit construction for execution of conditional statements using least significant bitHow are two different registers being used as “control”?How exactly is the stated composite state of the two registers being produced using the $R_zz$ controlled rotations?Efficiently performing controlled rotations in HHLWould this quantum algorithm implementation work?How to prepare a superposed states of odd integers from $1$ to $sqrtN$?Why is this implementation of the order finding algorithm not working?Circuit construction for Hamiltonian simulationHow can I invert the least significant bit of a certain term of a superposed state?Implementing an oracleImplementing a controlled sum operation

                    Magento 2 “No Payment Methods” in Admin New OrderHow to integrate Paypal Express Checkout with the Magento APIMagento 1.5 - Sales > Order > edit order and shipping methods disappearAuto Invoice Check/Money Order Payment methodAdd more simple payment methods?Shipping methods not showingWhat should I do to change payment methods if changing the configuration has no effects?1.9 - No Payment Methods showing upMy Payment Methods not Showing for downloadable/virtual product when checkout?Magento2 API to access internal payment methodHow to call an existing payment methods in the registration form?