what is the line before that please?
alot of times that error means that the previous line was not closed properly or something else with it.
$result = '["isValid" => "false", "type" => "", "message" => ""]'; //added single quotes outside
$result = array("isValid" => "false",
"type" => "",
"message" => ""
);
$result['isValid'] = 'false';
$result['type'] = '';
$result['message'] = '';
any of those would work i would think. I am not on my test site so i am not able to test right now.
$result['isValid'] = 'false';
$result['type'] = '';
$result['message'] = '';
...worked like a charm. Thanks again.
Glad you got it sorted.
Thanks :)
https://developers.oxwall.com/hosting
Your PHP version does not meet the specs so that could be why you got that error.
You really need to update your PHP version to at least 5.5 or run a previous version of Oxwall.
If you need a previous version let me know i think i might have 1.7.5 somewhere or ill try to find a link for a download for you. I have 1.8.1 also which was before that requirement and was released Jan 2016 Here is a link to the change logs.
https://developers.oxwall.com/1.8.2/CHANGELOG.txt
Just scroll down for the previous logs.
Remember that we prefer for you to update your PHP and run the latest version so we can support you better.