Payment email exception for payed orders
Forum rules
Always add your TYPO3, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
Always add your TYPO3, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
Payment email exception for payed orders
When I make an order (payment received) and execute the order/email/payment job I get the following exception.
It occurs on this line.Error while trying to send payment e-mail for order ID "1215" and status "6": ID parameter needs to be passed for the cHash calculation!
#0 /var/www/typo3_src-11.5.17/typo3/sysext/core/Classes/Routing/PageRouter.php(498): TYPO3\CMS\Frontend\Page\CacheHashCalculator->getRelevantParameters()
#1 /var/www/typo3_src-11.5.17/typo3/sysext/core/Classes/Routing/PageRouter.php(484): TYPO3\CMS\Core\Routing\PageRouter->getCacheHashParameters()
#2 /var/www/typo3_src-11.5.17/typo3/sysext/core/Classes/Routing/PageRouter.php(372): TYPO3\CMS\Core\Routing\PageRouter->generateCacheHash()
#3 /var/www/typo3_www.ami-informiert.de/typo3conf/ext/aimeos/Resources/Libraries/aimeos/ai-typo3/src/Base/View/Helper/Url/T3Router.php(69): TYPO3\CMS\Core\Routing\PageRouter->generateUri()
#4 [internal function]: Aimeos\Base\View\Helper\Url\T3Router->transform()
#5 /var/www/typo3_www.ami-informiert.de/typo3conf/ext/aimeos/Resources/Libraries/aimeos/aimeos-base/src/View/Standard.php(87): call_user_func_array()
#6 /var/www/typo3_www.ami-informiert.de/typo3conf/ext/aimeos/Resources/Libraries/aimeos/aimeos-base/src/View/Helper/Link/Standard.php(47): Aimeos\Base\View\Standard->__call()
#7 [internal function]: Aimeos\Base\View\Helper\Link\Standard->transform()
#8 /var/www/typo3_www.ami-informiert.de/typo3conf/ext/aimeos/Resources/Libraries/aimeos/aimeos-base/src/View/Standard.php(87): call_user_func_array()
#9 /var/www/typo3_www.ami-informiert.de/typo3conf/ext/aimeos/Resources/Libraries/aimeos/ai-controller-jobs/templates/order/email/payment/html.php(132): Aimeos\Base\View\Standard->__call()
#10 /var/www/typo3_www.ami-informiert.de/typo3conf/ext/aimeos/Resources/Libraries/aimeos/aimeos-base/src/View/Standard.php(281): include('/var/www/typo3_...')
#11 /var/www/typo3_www.ami-informiert.de/typo3conf/ext/aimeos/Resources/Libraries/aimeos/aimeos-base/src/View/Standard.php(263): Aimeos\Base\View\Standard->includeFile()
#12 /var/www/typo3_www.ami-informiert.de/typo3conf/ext/aimeos/Resources/Libraries/aimeos/ai-controller-jobs/src/Controller/Jobs/Order/Email/Payment/Standard.php(466): Aimeos\Base\View\Standard->render()
#13 /var/www/typo3_www.ami-informiert.de/typo3conf/ext/aimeos/Resources/Libraries/aimeos/ai-controller-jobs/src/Controller/Jobs/Order/Email/Payment/Standard.php(330): Aimeos\Controller\Jobs\Order\Email\Payment\Standard->send()
#14 /var/www/typo3_www.ami-informiert.de/typo3conf/ext/aimeos/Resources/Libraries/aimeos/ai-controller-jobs/src/Controller/Jobs/Order/Email/Payment/Standard.php(238): Aimeos\Controller\Jobs\Order\Email\Payment\Standard->notify()
#15 /var/www/typo3_www.ami-informiert.de/typo3conf/ext/aimeos/Classes/Scheduler/Base.php(60): Aimeos\Controller\Jobs\Order\Email\Payment\Standard->run()
#16 [internal function]: Aimeos\Aimeos\Scheduler\Base::Aimeos\Aimeos\Scheduler\closure()
#17 /var/www/typo3_www.ami-informiert.de/typo3conf/ext/aimeos/Resources/Libraries/aimeos/aimeos-base/src/Process/None.php(44): call_user_func_array()
#18 /var/www/typo3_www.ami-informiert.de/typo3conf/ext/aimeos/Classes/Scheduler/Base.php(63): Aimeos\Base\Process\None->start()
#19 /var/www/typo3_www.ami-informiert.de/typo3conf/ext/aimeos/Classes/Scheduler/Task/Typo6.php(41): Aimeos\Aimeos\Scheduler\Base::execute()
Ubuntu 22.04.01
PHP 7.4.30
Typo3 v11.5.21 LTS
Aimeos web shop 22.10.4-pre3
PHP 7.4.30
Typo3 v11.5.21 LTS
Aimeos web shop 22.10.4-pre3
Re: Payment email exception for payed orders
Either you've used the standard Aimeos scheduler task instead of the Aimeos advanced scheduler task where you have to enter the IDs of the required pages or you've added a route enhancer rule which requires an ID which isn't passed as parameter to the URI builder.
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, give us a star
If you like Aimeos, give us a star
Re: Payment email exception for payed orders
I use the Standard Aimeos scheduler task.
When I change the payment status of an order back to "waiting" and execute the job again I receive an email.
When I change the payment status of an order back to "waiting" and execute the job again I receive an email.
Ubuntu 22.04.01
PHP 7.4.30
Typo3 v11.5.21 LTS
Aimeos web shop 22.10.4-pre3
PHP 7.4.30
Typo3 v11.5.21 LTS
Aimeos web shop 22.10.4-pre3
Re: Payment email exception for payed orders
With the Aimeos advanced scheduler task I get the same error.
I have not added a additional route enhancer.
I have not added a additional route enhancer.
Ubuntu 22.04.01
PHP 7.4.30
Typo3 v11.5.21 LTS
Aimeos web shop 22.10.4-pre3
PHP 7.4.30
Typo3 v11.5.21 LTS
Aimeos web shop 22.10.4-pre3
Re: Payment email exception for payed orders
Strange is, that I get a mail when the status is on "pending".
Ubuntu 22.04.01
PHP 7.4.30
Typo3 v11.5.21 LTS
Aimeos web shop 22.10.4-pre3
PHP 7.4.30
Typo3 v11.5.21 LTS
Aimeos web shop 22.10.4-pre3
Re: Payment email exception for payed orders
Maybe this problem is related to an issue another user pointed us to and which we've fixed recently:
https://github.com/aimeos/aimeos-typo3/ ... 1f902ae92e
https://github.com/aimeos/aimeos-typo3/ ... 1f902ae92e
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, give us a star
If you like Aimeos, give us a star
Re: Payment email exception for payed orders
I'am the other user
So the page ID is saved correctly in the task for me.
So the page ID is saved correctly in the task for me.
Ubuntu 22.04.01
PHP 7.4.30
Typo3 v11.5.21 LTS
Aimeos web shop 22.10.4-pre3
PHP 7.4.30
Typo3 v11.5.21 LTS
Aimeos web shop 22.10.4-pre3
Re: Payment email exception for payed orders
The TYPO3 error "ID parameter needs to be passed for the cHash calculation!" states that the page ID is missing when generating the URL for the account download page:
Code can be found here:
https://github.com/aimeos/ai-controller ... l.php#L132
This means, the page ID for the account download page isn't set. Maybe that helps debugging.
Code: Select all
$this->link( 'client/html/account/download/url', ['dl_id' => $attribute->getId()], ['absoluteUri' => 1] )
https://github.com/aimeos/ai-controller ... l.php#L132
This means, the page ID for the account download page isn't set. Maybe that helps debugging.
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, give us a star
If you like Aimeos, give us a star
Re: Payment email exception for payed orders
That make sense.
I debugged the error and found out, that it occurs when creating the download URL with an id = 0.
Next I try to find out why it's zero.
I debugged the error and found out, that it occurs when creating the download URL with an id = 0.
Next I try to find out why it's zero.
Ubuntu 22.04.01
PHP 7.4.30
Typo3 v11.5.21 LTS
Aimeos web shop 22.10.4-pre3
PHP 7.4.30
Typo3 v11.5.21 LTS
Aimeos web shop 22.10.4-pre3
Re: Payment email exception for payed orders
Maybe you can evaluate it better.
I found out, that the result ($target) for the config "client/html/account/download/url" is null.
Because for the config the default value (null) is returned.
I found out, that the result ($target) for the config "client/html/account/download/url" is null.
Because for the config the default value (null) is returned.
Ubuntu 22.04.01
PHP 7.4.30
Typo3 v11.5.21 LTS
Aimeos web shop 22.10.4-pre3
PHP 7.4.30
Typo3 v11.5.21 LTS
Aimeos web shop 22.10.4-pre3