# Fatal error

**URL:** <https://forum.shopware.com/t/fatal-error/5594>\
**Category:** Shopware 3.5\
**Tags:** general\
**Created:** [29. Dezember 2011 um 20:40 UTC](https://forum.shopware.com/t/fatal-error/5594 "2011-12-29T20:40:18Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![junak1](https://avatars.discourse-cdn.com/v4/letter/j/a88e4f/32.png) [@junak1](https://forum.shopware.com/u/junak1)\
**Post date:** [29. Dezember 2011 um 20:40 UTC](https://forum.shopware.com/t/fatal-error/5594/1 "2011-12-29T20:40:18Z")

</div>

Hallo Community wo hab ich noch einen Fehler ? ES kommt nur bei Paypal und Clickandbuy wenn man damit bezahlen will Fatal error: Class ‘sPaymentMean’ not found engine/core/class/sAdmin.php on line 453 anbei mein auszug der sAdmin.php vielleicht hilft es euch ja zur Lösung ` /\*\* \* Loads the system class of the specified payment (engine/core/class/paymentmeans) \* @param array $paymentData - Array with payment data \* @access public \* @return object or false - \*/ public function sInitiatePaymentClass($paymentData){ include\_once("paymentmeans/".$paymentData['class']); $sPaymentObject = new sPaymentMean(); $sPaymentObject-\>sSYSTEM = &$this-\>sSYSTEM; if (!$sPaymentObject){ $this-\>sSYSTEM-\>E\_CORE\_WARNING("sValidateStep3 #02","Payment-Class not found"); return false; }else { return $sPaymentObject; } }` bitte helft mir dringend ich weiss nicht weiter und brauche das Danke

---

<div class="post-metadata">

**Author:** ![doogie](https://avatars.discourse-cdn.com/v4/letter/d/2acd7d/32.png) [@doogie](https://forum.shopware.com/u/doogie)\
**Post date:** [2. Januar 2012 um 23:41 UTC](https://forum.shopware.com/t/fatal-error/5594/2 "2012-01-02T23:41:36Z")

</div>

[quote=“junak”]Hallo Community wo hab ich noch einen Fehler ? ES kommt nur bei Paypal und Clickandbuy wenn man damit bezahlen will Fatal error: Class ‘sPaymentMean’ not found in /www/htdocs/w00e5de4/engine/core/class/sAdmin.php on line 453 anbei mein auszug der sAdmin.php vielleicht hilft es euch ja zur Lösung ` /\*\* \* Loads the system class of the specified payment (engine/core/class/paymentmeans) \* @param array $paymentData - Array with payment data \* @access public \* @return object or false - \*/ public function sInitiatePaymentClass($paymentData){ include\_once("paymentmeans/".$paymentData['class']); $sPaymentObject = new sPaymentMean(); $sPaymentObject-\>sSYSTEM = &$this-\>sSYSTEM; if (!$sPaymentObject){ $this-\>sSYSTEM-\>E\_CORE\_WARNING("sValidateStep3 #02","Payment-Class not found"); return false; }else { return $sPaymentObject; } }` bitte helft mir dringend ich weiss nicht weiter und brauche das Danke[/quote] hallo kannst du mal den code von dem pfad class/sAdmin.php on line 453 anzeigen???

---

<div class="post-metadata">

**Author:** ![junak1](https://avatars.discourse-cdn.com/v4/letter/j/a88e4f/32.png) [@junak1](https://forum.shopware.com/u/junak1)\
**Post date:** [3. Januar 2012 um 16:56 UTC](https://forum.shopware.com/t/fatal-error/5594/3 "2012-01-03T16:56:28Z")

</div>

Das ist der COde der oben steht. Die paar Zeilen hab ich rauskopiert und hier eingefügt `$sPaymentObject = new sPaymentMean();` das ist die Zeile 453

---

<div class="post-metadata">

**Author:** ![junak1](https://avatars.discourse-cdn.com/v4/letter/j/a88e4f/32.png) [@junak1](https://forum.shopware.com/u/junak1)\
**Post date:** [3. Januar 2012 um 18:04 UTC](https://forum.shopware.com/t/fatal-error/5594/4 "2012-01-03T18:04:37Z")

</div>

Habe gerade mal ind dem Ordner engine/core/class/paymentmeans nachgesehen und dort liegen keine DAten warum auch immer und so wie ich den Code verstehe will er dort was finden kann einer mal bei sich nachsehen ob dort Daten liegen wenn man Click and Buy oder Pay Pal benutzt ?

---

<div class="post-metadata">

**Author:** ![digitalwaagen123](https://avatars.discourse-cdn.com/v4/letter/d/9dc877/32.png) [@digitalwaagen123](https://forum.shopware.com/u/digitalwaagen123)\
**Post date:** [3. Januar 2012 um 20:26 UTC](https://forum.shopware.com/t/fatal-error/5594/5 "2012-01-03T20:26:04Z")

</div>

Hallo, dort sollten für die Zahlungsarten (auch die, die man nicht nutzt) php-Dateien liegen… Bei mir sind das 14 Dateien.

---

<div class="post-metadata">

**Author:** ![junak1](https://avatars.discourse-cdn.com/v4/letter/j/a88e4f/32.png) [@junak1](https://forum.shopware.com/u/junak1)\
**Post date:** [4. Januar 2012 um 10:14 UTC](https://forum.shopware.com/t/fatal-error/5594/6 "2012-01-04T10:14:00Z")

</div>

Das könnte das Problem sein nur wie die dort rausgekommen sind ist echt ein Wunderkann es mir nicht erklären. Kann man die irgendwo her bekommen als Download oder so ?

---

<div class="post-metadata">

**Author:** ![digitalwaagen123](https://avatars.discourse-cdn.com/v4/letter/d/9dc877/32.png) [@digitalwaagen123](https://forum.shopware.com/u/digitalwaagen123)\
**Post date:** [4. Januar 2012 um 10:26 UTC](https://forum.shopware.com/t/fatal-error/5594/7 "2012-01-04T10:26:35Z")

</div>

Hi, schick mir per PN Deine eMail-Adresse, dann schicke ich Dir das kmplt. Verzeichnis.

---

<div class="post-metadata">

**Author:** ![junak1](https://avatars.discourse-cdn.com/v4/letter/j/a88e4f/32.png) [@junak1](https://forum.shopware.com/u/junak1)\
**Post date:** [4. Januar 2012 um 10:43 UTC](https://forum.shopware.com/t/fatal-error/5594/8 "2012-01-04T10:43:01Z")

</div>

Danke habs gerade runtergeladen nun kommt bei Paypal checkout dieser fehler `Ups! Ein Fehler ist aufgetreten! Die nachfolgenden Hinweise sollten Ihnen weiterhelfen. Transaction refused because of an invalid argument. See additional error messages for details. Order total is missing. in Shopware/Plugins/Default/Frontend/Paypal/Paypal.php on line 43 Stack trace: #0 Enlight/Controller/Action.php(70): Shopware\_Controllers\_Frontend\_Paypal-\>errorApiAction() #1 Enlight/Controller/Dispatcher/DispatcherDefault.php(329): Enlight\_Controller\_Action-\>dispatch('errorApiAction') #2 Enlight/Controller/Front.php(99): Enlight\_Controller\_Dispatcher\_DispatcherDefault-\>dispatch(Object(Enlight\_Controller\_Request\_RequestHttp), Object(Enlight\_Controller\_Response\_ResponseHttp)) #3 Shopware/Bootstrap.php(33): Enlight\_Controller\_Front-\>dispatch() #4 Enlight/Application.php(86): Shopware\_Bootstrap-\>run() #5 shopware.php(6): Enlight\_Application-\>run() #6 {main} ` Anbei die Paypal php [code]\<?php class Shopware\_Controllers\_Frontend\_Paypal extends Enlight\_Controller\_Action  
{  
protected $sSystem;

```
public function init()
{
	$this->sSystem = Shopware()-\>System(); } public function errorAction() { throw new Enlight\_Exception($this-\>Request()-\>error); $this-\>View()-\>sError = $this-\>Request()-\>error; } public function errorApiAction() { $variables = array(); $variables["payPalURL"] = $this-\>sSystem-\>\_SESSION['payPalURL'];; if(isset($this-\>sSystem-\>\_SESSION['curl\_error\_no'])) { // URL Error, something goes wrong throw new Enlight\_Exception($this-\>sSystem-\>\_SESSION['curl\_error\_msg'], $this-\>sSystem-\>\_SESSION['curl\_error\_no']); $variables["errorCode"] = $this-\>sSystem-\>\_SESSION['curl\_error\_no'] ; $variables["errorMessage"] = $this-\>sSystem-\>\_SESSION['curl\_error\_msg'] ; $variables["urlError"] = true; session\_unset(); } else { $resArray = $this-\>sSystem-\>\_SESSION['reshash']; $variables["check"] = "OK"; $variables["ACK"] = $resArray['ACK']; $variables["CORRELATIONID"] = $resArray['CORRELATIONID']; $variables["VERSION"] = $resArray['VERSION']; $count=0; $e = null; while (isset($resArray["L\_SHORTMESSAGE".$count])) { $e = new Enlight\_Exception($resArray["L\_SHORTMESSAGE".$count].' '.$resArray["L\_LONGMESSAGE".$count], $resArray["L\_ERRORCODE".$count], $e); $count++; } if($e!==null) { throw $e; } $count=0; while (isset($resArray["L\_SHORTMESSAGE".$count])) { $paypalAPIError[$count]["errorCode"] = $resArray["L\_ERRORCODE".$count]; $paypalAPIError[$count]["shortMessage"] = $resArray["L\_SHORTMESSAGE".$count]; $paypalAPIError[$count]["longMessage"] = $resArray["L\_LONGMESSAGE".$count]; $count=$count+1; } $variables["paypalAPIError"] = $paypalAPIError; } $this-\>View()-\>assign($variables); } }[/code]
```
