Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Parse Error


Guest

Recommended Posts

Posted

Hi all,

Hopefully Im in the right category for this discussion:

 

I get the following Parse error in my modules.php file:

 

Parse error: parse error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting ',' or ';' in /usr/www/users/goodebox/catalog/admin/modules.php on line 173

 

This is after installing the UPS XML contribution. This line of code, however, was never altered during the process, so why it's now becoming an issue is a mystery.

 

In any event, here is the code (a few lines before, and a few lines afer 173). Does anybody see anything wrong?

 

if (isset($mInfo) && is_object($mInfo) && ($class == $mInfo->code) ) {

if ($module->check() > 0) {

echo ' <tr id="defaultSelected" class="dataTableRowSelected" onmouseover="rowOverEffect(this)" onmouseout="rowOutEffect(this)" onclick="document.location.href='' . tep_href_link(FILENAME_MODULES, 'set=' . $set . '&module=' . $class . '&action=edit') . ''">' . "n";

}

} else {

echo ' <tr id="defaultSelected" class="dataTableRowSelected" onmouseover="rowOverEffect(this)" onmouseout="rowOutEffect(this)">' . "n";

}

} else {

echo ' <tr class="dataTableRow" onmouseover="rowOverEffect(this)" onmouseout="rowOutEffect(this)" onclick="document.location.href='' . tep_href_link(FILENAME_MODULES, 'set=' . $set . '&module=' . $class) . ''">' . "n";

}

?>

 

Thanks in advance for your help.

Posted

Did you edit this file using the File Manager in the admin section? It looks like all of your escape characters (\) are missing. Restore this file from the original that comes with the contribution.

Contributions

 

Discount Coupon Codes

Donations

Posted
Hi all,

Hopefully Im in the right category for this discussion:

 

I get the following Parse error in my modules.php file:

 

Parse error: parse error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting ',' or ';' in /usr/www/users/goodebox/catalog/admin/modules.php on line 173

 

This is after installing the UPS XML contribution. This line of code, however, was never altered during the process, so why it's now becoming an issue is a mystery.

 

In any event, here is the code (a few lines before, and a few lines afer 173). Does anybody see anything wrong?

 

if (isset($mInfo) && is_object($mInfo) && ($class == $mInfo->code) ) {

if ($module->check() > 0) {

echo ' <tr id="defaultSelected" class="dataTableRowSelected" onmouseover="rowOverEffect(this)" onmouseout="rowOutEffect(this)" onclick="document.location.href='' . tep_href_link(FILENAME_MODULES, 'set=' . $set . '&module=' . $class . '&action=edit') . ''">' . "n";

}

} else {

echo ' <tr id="defaultSelected" class="dataTableRowSelected" onmouseover="rowOverEffect(this)" onmouseout="rowOutEffect(this)">' . "n";

}

} else {

echo ' <tr class="dataTableRow" onmouseover="rowOverEffect(this)" onmouseout="rowOutEffect(this)" onclick="document.location.href='' . tep_href_link(FILENAME_MODULES, 'set=' . $set . '&module=' . $class) . ''">' . "n";

}

?>

 

Thanks in advance for your help.

 

 

This is line 173 Only: echo ' <tr id="defaultSelected" class="dataTableRowSelected" onmouseover="rowOverEffect(this)" onmouseout="rowOutEffect(this)" onclick="document.location.href='' . tep_href_link(FILENAME_MODULES, 'set=' . $set . '&module=' . $class . '&action=edit') . ''">' . "n";

Posted
Did you edit this file using the File Manager in the admin section? It looks like all of your escape characters (\) are missing. Restore this file from the original that comes with the contribution.

 

No. I copied into Dreamweaver, made the edits, then cut and paste back into the file manager in the admin.

Archived

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

×
×
  • Create New...