---
title: "Cannot access protected property tx_commerce_basket::$pricefromnet"
url: "https://www.typo3.net/d/105497-cannot-access-protected-property-tx-commerce-basketpricefromnet"
source: "typo3.net"
tags: ["Extensions","Frage","PHP"]
created: "2011-05-20"
last_reply: "2011-05-31"
replies: 1
solved: false
page: 1
pages: 1
lang: "de"
---

# Cannot access protected property tx_commerce_basket::$pricefromnet

Extensions · 1 Antwort · gestartet 2011-05-20

## Eröffnungsbeitrag

**Michael360** · 2011-05-20 · [Beitrag #1](https://www.typo3.net/d/105497-cannot-access-protected-property-tx-commerce-basketpricefromnet/1)

Hallo
ich bekomme folgende Fehlermeldung wenn ich Schritt 5 abschliessen will (inkl. "AGB gelesen")

Fatal error: Cannot access protected property tx_commerce_basket::$pricefromnet in /var/www/bodenseekur/htdocs/typo3conf/ext/commerce/pi3/class.tx_commerce_pi3.php on line 2377

Die Payment Möglichkeiten habe ich auf Deutsch geändert ( "Invoice" --> "Rechnung" )

Hat jemand eine Ahnung woran es liegen könnte ?

Danke Micha

## Antworten

### [#2](https://www.typo3.net/d/105497-cannot-access-protected-property-tx-commerce-basketpricefromnet/2) · Michael360 · 2011-05-31

Gelöst !

"Eine ganz schnelle loesung waere die property erstmal auf public zu setzen (in lib/class.tx_commerce_basic_basket.php).
Das sollte das problem beheben ...
Ansonsten ist das erstmal komisch, Zeile 2377 ist bei mir kein Zugriff auf $pricefromnet.

Im uebrigen wuerde ich empfehlen nicht commerce trunk zu nehmen
sondern die juengste ter version (0.12.6), die sollte etwas stabiler sein,
da wir momentan recht viel umbauen. "

Danke an denjenigen !

---

Quelle: „Cannot access protected property tx_commerce_basket::$pricefromnet“, typo3.net, https://www.typo3.net/d/105497-cannot-access-protected-property-tx-commerce-basketpricefromnet
Beiträge von Mitgliedern des Forums. Bitte mit Link auf die Diskussion zitieren.
