Parse error: syntax error, unexpected HELP
Version info below
Sites been working great for a long time, the problem just started --Whenever I try to check on customers order I get a blank white page with this message?
I tried searching it but couldn't find it with the order page. Anyone know what the fix is?
Parse error: syntax error, unexpected ''("select orders_status_id, or' (T_CONSTANT_ENCAPSED_STRING) in /home3/polishdb/public_html/admin-panel/orders.php on line 29
Zen Cart 1.5.5f
Database Patch Level: 1.5.5
PHP Version 7.1.14
Database: MySQL 5.6.41-84.1
Re: Parse error: syntax error, unexpected HELP
This is not a bug. Your copy of the file admin/orders.php has been modified.
Post lines (say) 28-38 and so we can see what's wrong.
Re: Parse error: syntax error, unexpected HELP
Thank you,
here is 28-38
from " . TABLE_ORDERS_STATUS . "
where language_id = '" . (int)$_SESSION['languages_id'] . "' order by orders_status_id");
while (!$orders_status->EOF) {
$orders_statuses[] = array('id' => $orders_status->fields['orders_status_id'],
'text' => $orders_status->fields['orders_status_name'] . ' [' . $orders_status->fields['orders_status_id'] . ']');
$orders_status_array[$orders_status->fields['orders_status_id']] = $orders_status->fields['orders_status_name'];
$orders_status->MoveNext();
}
$action = (isset($_GET['action']) ? $_GET['action'] : '');
$order_exists = false;
Re: Parse error: syntax error, unexpected HELP
Can you do that again, but this time enclose in [CODE][/CODE] tags? Simply click the # button on the messagebox toolbar before pasting the code.
Re: Parse error: syntax error, unexpected HELP
I reuploaded that php file and it resolved the issue.... any idea on how that would of changed on it’s own?
Re: Parse error: syntax error, unexpected HELP
Quote:
Originally Posted by
akjnashville
any idea on how that would of changed on it’s own?
It didn't change on its own.
Most likely you uploaded a different version of it as part of a plugin you tried to install.
Or, perhaps your first install of the file failed due to an FTP timeout problem.
In Zen Cart files don't change on their own. It always requires human interaction ... whether that's you or someone else with access to your files.