---
title: "Paypal2commerce: Fatal error: Cannot access protected property tx_commerce_basket::$basket_sum_gross in /html/typo3conf/ext/paypal2commerce/class.tx_paypal2commerce.php on line 231"
url: "https://www.typo3.net/d/118143-paypal2commerce-fatal-error-cannot-access-protected-property-tx-commerce-basketbasket-sum-gross-in-htmltypo3confextpaypal2commerceclasstx-paypal2commercephp-on-line-231"
source: "typo3.net"
tags: ["Extensions","Frage","PHP"]
created: "2014-06-05"
last_reply: "2014-09-12"
replies: 1
solved: false
page: 1
pages: 1
lang: "de"
---

# Paypal2commerce: Fatal error: Cannot access protected property tx_commerce_basket::$basket_sum_gross in /html/typo3conf/ext/paypal2commerce/class.tx_paypal2commerce.php on line 231

Extensions · 1 Antwort · gestartet 2014-06-05

## Eröffnungsbeitrag

**der_kybernaut** · 2014-06-05 · [Beitrag #1](https://www.typo3.net/d/118143-paypal2commerce-fatal-error-cannot-access-protected-property-tx-commerce-basketbasket-sum-gross-in-htmltypo3confextpaypal2commerceclasstx-paypal2commercephp-on-line-231/1)

Hallo,

hat niemand eine Idee? Bin schon ein wenig am verzweifeln und habe auch den Entwickler der Extension angeschrieben, aber auch dort keine Antwort erhalten.

## Antworten

### [#2](https://www.typo3.net/d/118143-paypal2commerce-fatal-error-cannot-access-protected-property-tx-commerce-basketbasket-sum-gross-in-htmltypo3confextpaypal2commerceclasstx-paypal2commercephp-on-line-231/2) · alfredbez · 2014-09-12

Das ist ein Fehler in der Extension. Verwende stattdessen folgende Zeile:

```php
$this->sendToPaypal( $basket->getGrossSum(), $pObj->conf['currency'] );
```

@der-kybernaut PS: solltest du das hier lesen, kannst du ja auch mal hier reinsehen: [/d/113572-umfrage-pbsurvey-e-mail-mit-daten-an-user-und-admin](https://www.typo3.net/d/113572-umfrage-pbsurvey-e-mail-mit-daten-an-user-und-admin)

---

Quelle: „Paypal2commerce: Fatal error: Cannot access protected property tx_commerce_basket::$basket_sum_gross in /html/typo3conf/ext/paypal2commerce/class.tx_paypal2commerce.php on line 231“, typo3.net, https://www.typo3.net/d/118143-paypal2commerce-fatal-error-cannot-access-protected-property-tx-commerce-basketbasket-sum-gross-in-htmltypo3confextpaypal2commerceclasstx-paypal2commercephp-on-line-231
Beiträge von Mitgliedern des Forums. Bitte mit Link auf die Diskussion zitieren.
