Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Parse error: syntax error, unexpected $end


Guest

Recommended Posts

When a customer went to download his clip, he got this error:

 

There nothing to download.

Parse error: syntax error, unexpected $end in /usr/home/darkdesire/domains/adarkdesire.com/private_html/store/includes/modules/downloads.php on line 105

 

Here's the last php code in that file:

 

<?php

// BOF: WebMakers.com Added: Downloads Controller

// If there is a download in the order and they cannot get it, tell customer about download rules

$downloads_check_query = tep_db_query("select o.orders_id, opd.orders_products_download_id from " . TABLE_ORDERS . " o, " . TABLE_ORDERS_PRODUCTS_DOWNLOAD . " opd where o.orders_id = opd.orders_id and o.orders_id = '" . (int)$last_order . "' and opd.orders_products_filename != ''");

 

if (tep_db_num_rows($downloads_check_query) > 0 and tep_db_num_rows($downloads_query) < 1) {

// if (tep_db_num_rows($downloads_query) < 1) {

?>

<tr>

<td colspan="3" align="center" valign="top" class="main" height="30"><FONT FACE="Arial" SIZE=1 COLOR="FF000"><?php echo DOWNLOADS_CONTROLLER_ON_HOLD_MSG ?></FONT></td>

</tr>

 

<!-- downloads_eof //-->

 

Line 105 is right after the <!--downloads_eof//--> line at the end..

 

Anybody see where I should put the }?

Link to comment
Share on other sites

Most likley right before the <!-- downloads_eof //-->

Depends on if the following code should only be displayed when the previous if statement is true or displayed always.

My Contributions

 

Stylesheet With Descriptions Glassy Grey Boxtops Our Products Meta Tags On The Fly

Password Protect Admin

"No matter where you go....There you are" - Buccaroo Bonsai

Link to comment
Share on other sites

Most likley right before the <!-- downloads_eof //-->

Depends on if the following code should only be displayed when the previous if statement is true or displayed always.

 

Thanks! I'll give that a try....

Link to comment
Share on other sites

Thanks! I'll give that a try....

 

Well, I tested it and it seems to work now, but when I download the zip file it's empty! I've checked, and the zip file is not empty in the directory....

 

Anybody got a clue here why the download would be empty?

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...