Guten Abend,
leider komme ich nicht weiter. Nachdem ich alles nach Beschreibung versucht habe zu machen kommt ständig dieser Fehler:
Fatal error: Only variables can be passed by reference in /var/www/..../typo3/typo3conf/ext/tt_products/lib/class.tx_ttproducts_basket_div.php on line 517
Liegt es am Template oder wo kann der Fehler noch stecken?
Focus3 schrieb
Fatal error: Only variables can be passed by reference in /var/www/..../typo3/typo3conf/ext/tt_products/lib/class.tx_ttproducts_basket_div.php on line 517
Du verwendest noch die etwas fehlerhafte Version 2.2.4. Mache ein Update auf die letzte Version 2.3.1.
Habe ich jetzt auch schon gemacht, nur leider bekomme ich weiterhin die nachricht #angry#
das was in der if-schleife steht:
if (!tx_ttproducts_basket_div::checkExtraAvailable('shipping',$k)) { $k=intval(key($this->cleanConfArr($this->conf['shipping.'],1)));
}
Ich weiß nicht genau, aber kann das mit dem Server zutun haben? Also mit der Php-Version vielleicht.
Das kann nicht sein!
Weder in der oben angegebenen Zeile noch in den aufgerufenen Funktionen werden Referenz-Variablen verwendet.
Du hast wohl noch eine alte lokale Version unter typo3conf installiert.
Ich habe jetzt nochmal die gesamte Erweiterung gelöscht und neu installiert Andere Installationen vom Shop habe ich nicht gefunden. Leider immer noch der gleiche Fehler.
Jetzt habe im mal mein Typoverzeichnis + Datenbank auf meiner Platte gespieglt und jetzt klappt es obwohl ich nichts verändert habe ????
Lokal habe ich die: 4.3.4
Auf dem Server läuft: 5.0.5
Hat vielleicht sonst jemand schon die 5.0.5 PHP Version und ähnlich Probleme?
Ich kenne das Problem, habe auch auf PHP 5.0.5 upgedated und die gleiche Fehlermeldung bekommen.
Nach längerer Recherche im Internet habe ich dann einen Lösungsweg gefunden:
Das Problem liegt nämliche bei den verschachtelten Arrays bzw. Klassen, damit hat PHP 5 noch Mühe.
darum muss man z.B.
$k=intval(key($this->cleanConfArr($this->conf['shipping.'],1)));
in
$tr_array = $this->cleanConfArr($this->conf['shipping.'],1);
$k=intval(key($tr_array));
aufteilen und zwar auf jeder Zeile wo die gleiche Fehlermeldung kommt!!!
Dann sollte es funktionieren
😃 Super danke. Ich dachte schon es liegt am Server oder an meinem Typo. An zwei Stellen musste ich was ändern und nun zeigt er mir sogar den Shop an 😃
Soweit bin ich nun auch, bei mir wird jedoch kein Bestätiguns-Email geschickt nicht mir und auch nicht dem Käufer. Ich bin schon am verzweifeln!!! #angry#
Hat da jemand evtl. eine Ahnung woran das liegen könnte?
Constants:
plugin.tt_products.file.templateFile = fileadmin/HTML/products_template.html
plugin.tt_products.TAXpercentage = 7.6
plugin.tt_products.priceDecPoint = .
plugin.tt_products.priceThousandPoint = '
plugin.tt_products.PIDbasket = 62# diese ids sind auch wichtig
plugin.tt_products.PIDstoreRoot = 60 # müssen natürlich angepasst
plugin.tt_products.PIDsearch = 66 # werden!!
plugin.tt_products.displayBasketCatHeader = 1
plugin.tt_products {
orderEmail_htmlmail = 0
orderEmail_from = shop@hssoft.com
orderEmail_fromName = HS-Soft - Online Shop
orderEmail_to = shop@hssoft.com
orderNumberPrefix = order2005_
}
Setup:
plugin.tt_products.code.field = select_key
plugin.tt_products.AlwaysInStock = 1
plugin.tt_products.statusCodes.1 = Bestellungseingang
plugin.tt_products.statusCodes.11 = Der HS-Soft Online Shop wartet auf Ihren Zahlungseingang
plugin.tt_products.statusCodes.20 = Ihre Ware wird versendet
plugin.tt_products.statusCodes.101 = Bestellung abgeschlossen
plugin.tt_products.statusCodes.200 = Bestellung storniert
#plugin.tt_products.discountGroupName = Team
#plugin.tt_products.lockLoginUserInfo=true
plugin.tt_products.displayBasketColumns = 3
plugin.tt_products.outputFolder = {$plugin.tt_products.outputfolder}
plugin.tt_products {
payment >
payment {
radio = 1
TAXpercentage = 7.6
10.title = Vorkasse
20.title = PayPal
20.percentOfTotalShipping = 0.04
30.title = Nachnahme
30.discountDeactive = 1
30.priceTax.1 = 4
30.priceTax.6 = 5.8
30.showLimit = 99
}
shipping {
radio = 1
TAXpercentage = 7.6
10.title = Schweiz
10.image.file =
10.priceTax.type = count
10.priceTax.1 = 2.5
10.priceTax.6 = 4.8
10.priceTax.50 = 10
10.priceTax.100 = 25
10.priceTax.120 = 30
10.priceTax.300 = 150
10.percentOfGoodstotal = 0
20.title = Europa (ausserhalb Schweiz)
20.image.file =
20.priceTax.type = count
20.priceTax.1 = 8.8
20.priceTax.6 = 11.8
20.priceTax.50 = 11.8
20.priceTax.100 = 25
20.priceTax.120 = 30
20.priceTax.300 = 150
20.percentOfGoodstotal = 0
30.title = Selbstabholung
30.image.file =
30.priceTax.1 = 0
30.percentOfGoodstotal = 0
}
pricecalc {
type = count
field = price
10.prod.1 = 4.99
10.prod.2 = 8.99
10.prod.5 = 19.99
20.prod.1 = 6.99
20.prod.2 = 13.98
20.prod.5 = 29.99
}
discountprice {
10.type = count
10.field = price
10.additive = 1
10.where =
10.prod.1 = 4.99
10.prod.100 = 2.89
10.prod.1050 = 2.77
20.type = count
20.field = price
20.where =
20.prod.1 = 6.99
20.prod.100 = 3.00
20.prod.1050 = 2.89
}
}
plugin.tt_products.basketImage.imageLinkWrap.height = 800
plugin.tt_products.listImage.file.maxW = 150
Bitte hilft mir.... 😢
inside schrieb
Soweit bin ich nun auch, bei mir wird jedoch kein Bestätiguns-Email geschickt nicht mir und auch nicht dem Käufer.
Hat da jemand evtl. eine Ahnung woran das liegen könnte?
Das ###EMAIL_PLAINTEXT_TEMPLATE### darf am Beginn keine Leerzeile enthalten. Also dort einen Text für die Betreff-Zeile eingeben und anschließend kräftig auf die RETURN-Taste drücken.
Danke viel Mal, hat funktionert!!! 😃
Zudem fehlte noch ein <!-- ###EMAIL_PLAINTEXT_TEMPLATE### end --> tag.
Was sicherlich auch dazu beigetragen hat
Nochmal Danke