View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0007235 | module PayPal Plus | module PayPal Plus - sub | public | 2021-04-27 11:46 | 2023-06-29 09:16 |
Reporter | StefanBerger | Assigned To | |||
Priority | normal | Severity | major | Reproducibility | always |
Status | acknowledged | Resolution | open | ||
Summary | 0007235: The wrong use of oxmultilangassign leads to an error when submitting an order | ||||
Description | Hi, using the paypal plus module in OXID Version 6.3.0 with the PHP Version 8.0.3 a fatal error occurs in the order confirmation email. [2021-04-26 17:02:36] OXID Logger.ERROR: 3 arguments are required, 2 given ["[object] (ArgumentCountError(code: 0): 3 arguments are required, 2 given at .../httpdocs_oxid_project_ce/vendor/oxid-esales/oxideshop-ce/source/Core/Smarty/Plugin/mod$ fier.oxmultilangassign.php:48)\n[stacktrace]\n 0 .../httpdocs_oxid_project_ce/vendor/oxid-esales/oxideshop-ce/source/Core/Smarty/Plugin/modifier.oxmultilangassign.php(48): sprintf()\n 1 .../httpdocs_oxid_project_ce/source/tmp/smarty/21d7b5fe19872adcb3bf183f0884d58a^%%D3^D37^D37E7128%%order_cust.tpl.php(789): smarty_modifier_oxmultilangassign()\n ... The problem is that the smarty modifier oxmultilangassign is called with one variable, although the text contains 2 placeholders. The following source solves the problem: httpdocs_oxid_project_ce/vendor/oxid-professional-services/paypalplus-module/views/blocks/payppaypalplus_email_html_order_cust_orderemailend.tpl httpdocs_oxid_project_ce/vendor/oxid-professional-services/paypalplus-module/views/blocks/payppaypalplus_email_plain_order_cust_orderemailend.tpl ... [{*}] [{assign var="sDueDate" value=$oPaymentInstructions->getDueDate()|replace:" 00:00:00":""}] [{assign var="sTerm" value="PAYP_PAYPALPLUS_PUI_SUCCESS_TERM"|oxmultilangassign:$sDueDate}] [{*}] [{capture name="pptotalprice"}][{oxprice price=$oPaymentInstructions->getTotal()}][{/capture}] [{assign var="sPPTermsArg0" value=$smarty.capture.pptotalprice }] [{assign var="sPPTermsArg1" value=$oPaymentInstructions->getDueDate()|date_format:"%d.%m.%Y" }] [{assign_adv var="aPPTermsArgs" value="array('$sPPTermsArg0', '$sPPTermsArg1')" }] [{assign var="sTerm" value="PAYP_PAYPALPLUS_PUI_SUCCESS_TERM"|oxmultilangassign:$aPPTermsArgs}] ... | ||||
Steps To Reproduce | Submit an order using paypal plus invoice payment. | ||||
Tags | Paypal Plus | ||||