Publisher does not support the Fluid field type. Please do not contact asking when support will be available.
If you purchased an add-on from expressionengine.com, be sure to visit boldminded.com/claim to add the license to your account here on boldminded.com.
Ticket: PHP “_POST” Errors On CartThrob Error Page
Status | Resolved |
Add-on / Version | Custom System Messages 2.5 |
Severity | Trivial |
EE Version | 2.6.1 |
Kristen Grote
Aug 29, 2013I’m getting these PHP errors after submitting a CartThrob checkout form with empty required fields:
A PHP Error was encountered
Severity: Notice
Message: Undefined variable: _POST
Filename: mo_variables/ext.mo_variables.php
Line Number: 339
A PHP Error was encountered
Severity: Warning
Message: array_merge(): Argument #2 is not an array
Filename: mo_variables/ext.mo_variables.php
Line Number: 339
A PHP Error was encountered
Severity: Notice
Message: Undefined variable: _POST
Filename: mo_variables/ext.mo_variables.php
Line Number: 350
A PHP Error was encountered
Severity: Notice
Message: Undefined variable: _POST
Filename: system_messages/ext.system_messages.php
Line Number: 420
I contacted Rob Sanchez about the Mo’ Variables errors, and he said:
Something must be unsetting $_POST in custom system messages (or another extension). Can you ask Boldminded about that?
The rest of the error template and message seem to display fine.
BoldMinded (Brian)
The only thing CSM unsets are these:
unset($_SESSION[‘csm_data’]);
and
unset($_POST[‘submit’]); unset($_POST[‘file’]);
The last 2 are done only on the extension settings save page. It doesn’t do anything else to POST data, so not sure how CSM would be causing an error like that.
KMGDEV
My bad, it was a CartThrob issue that was solved by updating.
Should have done that before submitting a support request - sorry!
BoldMinded (Brian)
No worries! Glad its working.