[TYPO3-commerce] Problem with Commerce payment method
Georg Schönweger
georg.schoenweger at gmail.com
Tue Apr 2 14:48:31 CEST 2013
Hi Gregor,
as far as i remember this error message indicates that there is no
payment Article in the basket. Be sure that the payment article you set via
plugin.tx_commerce_pi3.defaultpayment =
is existend. If i remember correctly you have to set payment article uid
of default language here.
regards,
Georg
Am 30.03.2013 14:09, schrieb Fam Maier:
> Hi list,
>
> here is the full error list (System is TYPO3 4.5.25 and Commerce 0.13.12):
>
>
> Uncaught TYPO3 Exception
> #1305675802: Expected variable of type string for $paymentType but a NULL
> was given.
>
> Exception thrown in file
> .../typo3cms/projekt5/typo3conf/ext/commerce/lib/class.tx_commerce_pibase.ph
> p in line 130.
>
> 11 tx_commerce_pibase::getPaymentObject(NULL)
>
> .../typo3cms/projekt5/typo3conf/ext/commerce/pi2/class.tx_commerce_pi2.php:
> 00634: $articleObj->load_data();
> 00635: $paymentType = $articleObj->classname;
> 00636: $payment = $this->getPaymentObject($paymentType);
> 00637: if (method_exists($payment, 'isAllowed')) {
> 00638: if ($payment->isAllowed()) {
>
> 10 tx_commerce_pi2::makePayment(array)
>
> .../typo3cms/projekt5/typo3conf/ext/commerce/pi2/class.tx_commerce_pi2.php:
> 00459: $template = $this->cObj->substituteSubpart($template,
> '###PAYMENTBOX###', $contentPayment);
> 00460: } else {
> 00461: $paymentArray = $this->makePayment(array());
> 00462: $contentPayment =
> $this->substituteMarkerArrayNoCached($contentPayment, $paymentArray);
> 00463: $template = $this->cObj->substituteSubpart($template,
> '###PAYMENTBOX###', $contentPayment);
>
> 9 tx_commerce_pi2::generateBasket()
>
> .../typo3cms/projekt5/typo3conf/ext/commerce/pi2/class.tx_commerce_pi2.php:
> 00150: break;
> 00151: default:
> 00152: $this->generateBasket();
> 00153: }
> 00154: } else {
>
> 8 tx_commerce_pi2::main("", array)
> 7 call_user_func_array(array, array)
>
> .../typo3cms/typo3_src-4.5.25/typo3/sysext/cms/tslib/class.tslib_content.php
> :
> 06402: ), array(
> 06403: $content, $conf
> 06404: ));
> 06405: } else {
> 06406: $GLOBALS['TT']->setTSlogMessage('Method "' . $parts[1] . '" did
> not exist in class "' . $parts[0] . '"', 3);
>
> 6 tslib_cObj::callUserFunction("tx_commerce_pi2->main", array, "")
>
> .../typo3cms/typo3_src-4.5.25/typo3/sysext/cms/tslib/content/class.tslib_con
> tent_user.php:
> 00054: }
> 00055: $this->cObj->includeLibs($conf);
> 00056: $tempContent = $this->cObj->callUserFunction($conf['userFunc'],
> $conf, '');
> 00057: if ($this->cObj->doConvertToUserIntObject) {
> 00058: $this->cObj->doConvertToUserIntObject = FALSE;
>
> 5 tslib_content_User::render(array)
>
> .../typo3cms/typo3_src-4.5.25/typo3/sysext/cms/tslib/class.tslib_content.php
> :
> 00920: return $this->getContentObject('USER_INT')->render($conf);
> 00921: } else {
> 00922: return $this->getContentObject('USER')->render($conf);
> 00923: }
> 00924: }
>
> 4 tslib_cObj::USER(array)
>
> .../typo3cms/typo3_src-4.5.25/typo3/sysext/cms/tslib/class.tslib_fe.php:
> 03306: break;
> 03307: case 'FUNC':
> 03308: $incContent =
> $INTiS_cObj->USER($INTiS_config[$INTiS_key]['conf']);
> 03309: break;
> 03310: case 'POSTUSERFUNC':
>
> 3 tslib_fe::INTincScript_process(array)
>
> .../typo3cms/typo3_src-4.5.25/typo3/sysext/cms/tslib/class.tslib_fe.php:
> 03244: $INTiS_config = $this->config['INTincScript'];
> 03245: $this->INTincScript_includeLibs($INTiS_config);
> 03246: $this->INTincScript_process($INTiS_config);
> 03247: // Check if there were new items added to INTincScript during the
> previous execution:
> 03248: $INTiS_config = array_diff_assoc($this->config['INTincScript'],
> $INTiS_config);
>
> 2 tslib_fe::INTincScript()
>
> .../typo3cms/typo3_src-4.5.25/typo3/sysext/cms/tslib/index_ts.php:
> 00463: if ($TSFE->isINTincScript()) {
> 00464: $TT->push('Non-cached objects','');
> 00465: $TSFE->INTincScript();
> 00466: $TT->pull();
> 00467: }
>
> 1 require(".../typo3cms.po3_src-4.5.25/typo3/sysext/cms/tslib/index_ts.php")
>
> .../typo3cms/projekt5/index.php:
> 00082: // ******************
> 00083:
> 00084: require (PATH_tslib.'index_ts.php');
> 00085:
> 00086: ?>
>
> Thanks for Help
> Greets Gregor
>
>
>
>
>
> Hi list,
>
> set an commerce shop up to a second spech: English. But now I got this error
> message if I put an article into basket:
>
> Uncaught TYPO3 Exception
> #1305675802: Expected variable of type string for $paymentType but a NULL
> was given.
>
> Exception thrown in file
> .../typo3cms/projekt5/typo3conf/ext/commerce/lib/class.tx_commerce_pibase.ph
> p in line 130.
>
> After a two hour search I think it's about the English types of the payment
> methods because they are not 1,2,3 instead they were 381,382,..
> Think this is the problem because as I added a new payment method the uid
> was 422 and I got the same error message on the german page.
>
> Could someone help me fix this problem?
>
> Greets Gregor
>
>
>
>
>
>
> _______________________________________________
> TYPO3-project-commerce mailing list
> TYPO3-project-commerce at lists.typo3.org
> http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-project-commerce
>
More information about the TYPO3-project-commerce
mailing list