We build. You grow.

Get best community software here

Start a social network, a fan-site, an education project with oxwall - free opensource community software

Plugin not working - 2Checkout Billing | Forum

Trent Jones
Trent Jones Apr 22 '16

here is the error message that I am getting!

please help

thanks





[Fri Apr 22 14:14:18 2016] [ow_core_log] [Exception] Message: Syntax error in template "file:/home/oiam2/public_html/ow_plugins/billing_2checkout/views/controllers/order_form.html"  on line 3 "<input type="hidden" name="sid" value="{$fields.sid}" />" Security: access to constants not permitted File: /home/oiam2/public_html/ow_libraries/vendor/smarty/smarty/libs/sysplugins/smarty_internal_templatecompilerbase.php Line:3 Trace: [#0 /home/oiam2/public_html/ow_libraries/vendor/smarty/smarty/libs/sysplugins/smarty_security.php(479): Smarty_Internal_TemplateCompilerBase->trigger_template_error('Security: acces...') | #1 /home/oiam2/public_html/ow_libraries/vendor/smarty/smarty/libs/sysplugins/smarty_internal_templateparser.php(2245): Smarty_Security->isTrustedConstant('sid', Object(Smarty_Internal_SmartyTemplateCompiler)) | #2 /home/oiam2/public_html/ow_libraries/vendor/smarty/smarty/libs/sysplugins/smarty_internal_templateparser.php(2687): Smarty_Internal_Templateparser->yy_r127() | #3 /home/oiam2/public_html/ow_libraries/vendor/smarty/smarty/libs/sysplugins/smarty_internal_templateparser.php(2782): Smarty_Internal_Templateparser->yy_reduce(127) | #4 /home/oiam2/public_html/ow_libraries/vendor/smarty/smarty/libs/sysplugins/smarty_internal_smartytemplatecompiler.php(114): Smarty_Internal_Templateparser->doParse(11, '}') | #5 /home/oiam2/public_html/ow_libraries/vendor/smarty/smarty/libs/sysplugins/smarty_internal_templatecompilerbase.php(392): Smarty_Internal_SmartyTemplateCompiler->doCompile('\n<form id="{$fo...', true) | #6 /home/oiam2/public_html/ow_libraries/vendor/smarty/smarty/libs/sysplugins/smarty_internal_templatecompilerbase.php(329): Smarty_Internal_TemplateCompilerBase->compileTemplateSource(Object(Smarty_Internal_Template), NULL, NULL) | #7 /home/oiam2/public_html/ow_libraries/vendor/smarty/smarty/libs/sysplugins/smarty_template_compiled.php(236): Smarty_Internal_TemplateCompilerBase->compileTemplate(Object(Smarty_Internal_Template)) | #8 /home/oiam2/public_html/ow_libraries/vendor/smarty/smarty/libs/sysplugins/smarty_template_compiled.php(123): Smarty_Template_Compiled->compileTemplateSource(Object(Smarty_Internal_Template)) | #9 /home/oiam2/public_html/ow_libraries/vendor/smarty/smarty/libs/sysplugins/smarty_template_compiled.php(193): Smarty_Template_Compiled->process(Object(Smarty_Internal_Template)) | #10 /home/oiam2/public_html/ow_libraries/vendor/smarty/smarty/libs/sysplugins/smarty_internal_template.php(159): Smarty_Template_Compiled->render(Object(Smarty_Internal_Template)) | #11 /home/oiam2/public_html/ow_libraries/vendor/smarty/smarty/libs/sysplugins/smarty_internal_templatebase.php(191): Smarty_Internal_Template->render(false, 0) | #12 /home/oiam2/public_html/ow_libraries/vendor/smarty/smarty/libs/sysplugins/smarty_internal_templatebase.php(94): Smarty_Internal_TemplateBase->_execute('/home/oiam2/pub...', NULL, NULL, NULL, 0) | #13 /home/oiam2/public_html/ow_core/view_renderer.php(101): Smarty_Internal_TemplateBase->fetch('/home/oiam2/pub...') | #14 /home/oiam2/public_html/ow_core/renderable.php(271): OW_ViewRenderer->renderTemplate('/home/oiam2/pub...') | #15 /home/oiam2/public_html/ow_core/request_handler.php(274): OW_Renderable->render() | #16 /home/oiam2/public_html/ow_core/application.php(364): OW_RequestHandler->dispatch() | #17 /home/oiam2/public_html/index.php(88): OW_Application->handleRequest() | #18 {main}]

Skalfa LLC Partner
Skalfa LLC Apr 25 '16
We will check into this issue and get back to you with the results.
Skalfa LLC Partner
Skalfa LLC Apr 28 '16
Trent, thank you for the report.


To fix this issue you need to follow these steps:


1. Go to /ow_plugins/billing_2checkout/controllers/order.php
Find the following line:
$this->assign('fields', $fields);
and add the following code under it:
$this->assign('sid', $fields['sid']);
2. Go to /ow_plugins/billing_2checkout/views/controllers/order_form.html
Find this line:
<input type="hidden" name="sid" value="{$fields.sid}" />
and replace it with this code:
<input type="hidden" name="sid" value={$sid} />


Trent Jones
Trent Jones May 1 '16
Thank you,
The locations where wrong but I found it, and it is now working like a charm

Thank you again
CEO, OIAm2, LLC
Skalfa LLC Partner
Skalfa LLC May 1 '16
Trent, you are welcome. Could you please specify what does it mean: wrong locations?
Trent Jones
Trent Jones May 21 '16
the location of the files that you specified to change!
You do not have permission to reply this topic