Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Fatal Error, Orders.PHP


Shirley10

Recommended Posts

Hello,

 

I've had a problem this weekend trying to fix a fatal error problem that keeps me from retrieving my orders.

 

Here is the error message:

 

Parse error: parse error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting ',' or ';' in /mnt/web_g/d44/s22/b023602b/www/gbstore/nfoscomm/catalog/admin/orders.php on line 347

 

Here is the coding above and below line 347:

 

<?php

$orders_history_query = tep_db_query("select orders_status_id, date_added, customer_notified, comments from " . TABLE_ORDERS_STATUS_HISTORY . " where orders_id = '" . tep_db_input($oID) . "' order by date_added");

if (tep_db_num_rows($orders_history_query)) {

while ($orders_history = tep_db_fetch_array($orders_history_query)) {

echo ' <tr>' . "n" .

' <td class="smallText" align="center">' ;

tep_datetime_short($orders_history['date_added']) . '</td>' . "n" .

' <td class="smallText" align="center">';

if ($orders_history['customer_notified'] == '1') {

echo tep_image(DIR_WS_ICONS . 'tick.gif', ICON_TICK) . "</td>n";

} else {

echo tep_image(DIR_WS_ICONS . 'cross.gif', ICON_CROSS) . "</td>n";

}

echo ' <td class="smallText">' . $orders_status_array

 

 

If counting the first line as line 1, this is line 347:

 

echo ' <tr>' . "n" .

 

 

If the string expects to see a , or ; as stated in the error message, I do not know where it belongs.

 

 

I made a change within this file, but the change has nothing to do with this area, so this truly confuses me.

 

Thanks for any help,

 

Shirley

Link to comment
Share on other sites

Notice how you have all those "n" characters? Those should be:

\n

It is obvious that you used the filemanager to make changes. Do not use the filemanager to make changes. You'll have to upload a fresh file and make your changes again with a text editor and FTP client.

 

Bobby

Link to comment
Share on other sites

Thanks so much, Bobby.

 

A fresh file? That will be fun to find, but I'll move forward to find it for the solution.

 

Much appreciated,

 

Shirley

 

Notice how you have all those "n" characters?  Those should be:

\n

It is obvious that you used the filemanager to make changes.  Do not use the filemanager to make changes.  You'll have to upload a fresh file and make your changes again with a text editor and FTP client.

 

Bobby

Link to comment
Share on other sites

Download a fresh MS2 ZIP file and upload the correct file.

 

As a general rule, you should keep a fresh (UNMODIFIED) copy of osC on your local drive for cases like this.

 

Bobby

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...