Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Where is this parse error coming from???


aarslank

Recommended Posts

Posted

Where is this parse error coming from???

 

Parse error: parse error, unexpected T_STRING in /home/designersupplyco.com/httpdocs/admin/configuration.php(109) : eval()'d code on line 1

 

I looked into configuration.php

108>>  if ($cInfo->set_function) {

109>>        eval('$value_field = ' . $cInfo->set_function . "'" . $cInfo->configuration_value . "');");

110>>      } else {

111>>        $value_field = tep_draw_input_field('configuration_value', $cInfo->configuration_value);

Thanks for your help.

Posted
109>> eval('$value_field = ' . $cInfo->set_function . "'" . $cInfo->configuration_value . "');");

 

Seems to have the wrong mix of "'s and 's.

It should look like this:

eval('$value_field = ' . $cInfo->set_function . '"' . htmlspecialchars($cInfo->configuration_value) . '");');

HTH

Best Regards

olby

Archived

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

×
×
  • Create New...