Guest Posted March 20, 2006 Posted March 20, 2006 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.
kgt Posted March 20, 2006 Posted March 20, 2006 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
Guest Posted March 20, 2006 Posted March 20, 2006 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";
Guest Posted March 20, 2006 Posted March 20, 2006 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.
kgt Posted March 20, 2006 Posted March 20, 2006 cut and paste back into the file manager in the admin Right. Don't do that. http://www.oscommerce.info/kb/212 You have Dreamweaver. Just edit the file in dreamweaver and FTP to your site. Contributions Discount Coupon Codes Donations
Recommended Posts
Archived
This topic is now archived and is closed to further replies.