diane43 Posted October 23, 2007 Share Posted October 23, 2007 Hello, I just went to my shipping module to check out something for a customer in Singapore and this error came up. I don't know anything about codes at all. Can someone please help me help. Thanks, Diane Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting ')' in /home/essence3/public_html/cart/admin/modules.php(341) : eval()'d code on line 1 <?php /* $Id: modules.php,v 1.47 2003/06/29 22:50:52 hpdl Exp $ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright © 2003 osCommerce Released under the GNU General Public License */ require('includes/application_top.php'); $set = (isset($HTTP_GET_VARS['set']) ? $HTTP_GET_VARS['set'] : ''); if (tep_not_null($set)) { switch ($set) { case 'shipping': $module_type = 'shipping'; $module_directory = DIR_FS_CATALOG_MODULES . 'shipping/'; $module_key = 'MODULE_SHIPPING_INSTALLED'; define('HEADING_TITLE', HEADING_TITLE_MODULES_SHIPPING); break; case 'ordertotal': $module_type = 'order_total'; $module_directory = DIR_FS_CATALOG_MODULES . 'order_total/'; $module_key = 'MODULE_ORDER_TOTAL_INSTALLED'; Quote Link to comment Share on other sites More sharing options...
diane43 Posted October 24, 2007 Author Share Posted October 24, 2007 Hello, I just went to my shipping module to check out something for a customer in Singapore and this error came up. I don't know anything about codes at all. Can someone please help me help. Thanks, Diane Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting ')' in /home/essence3/public_html/cart/admin/modules.php(341) : eval()'d code on line 1 <?php /* $Id: modules.php,v 1.47 2003/06/29 22:50:52 hpdl Exp $ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright © 2003 osCommerce Released under the GNU General Public License */ require('includes/application_top.php'); $set = (isset($HTTP_GET_VARS['set']) ? $HTTP_GET_VARS['set'] : ''); if (tep_not_null($set)) { switch ($set) { case 'shipping': $module_type = 'shipping'; $module_directory = DIR_FS_CATALOG_MODULES . 'shipping/'; $module_key = 'MODULE_SHIPPING_INSTALLED'; define('HEADING_TITLE', HEADING_TITLE_MODULES_SHIPPING); break; case 'ordertotal': $module_type = 'order_total'; $module_directory = DIR_FS_CATALOG_MODULES . 'order_total/'; $module_key = 'MODULE_ORDER_TOTAL_INSTALLED'; I had someone look at the error and and is not sure about the code and said to post this on the forum and I might get a response. Thanks, Diane Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting ')' in /home/essence3/public_html/cart/admin/modules.php(341) : eval()'d code on line 1 <br> this is a snapshot of the php code from the modules.php on line 340 - 344 <br> if ($value['set_function']) { eval('$keys .= ' . $value['set_function'] . "'" . $value['value'] . "', '" . $key . "');"); } else { $keys .= tep_draw_input_field('configuration[' . $key . ']', $value['value']); }<br> Quote Link to comment Share on other sites More sharing options...
Jan Zonjee Posted October 24, 2007 Share Posted October 24, 2007 I had someone look at the error and and is not sure about the code and said to post this on the forum and I might get a response. Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting ')' in /home/essence3/public_html/cart/admin/modules.php(341) : eval()'d code on line 1 <br> this is a snapshot of the php code from the modules.php on line 340 - 344 <br> Such an error can come up if you use UPSXML and haven't enlarged a field in the table configuration to hold all the different shipping options UPS has. The error is mentioned in the install instructions, together with the fixes. If you have UPSXML installed of course otherwise I wouldn't know either. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.