Guest Posted August 12, 2008 Posted August 12, 2008 On the following page /catalog/includes/functions/password_funcs.php I did the following * FIND: function tep_validate_password($plain, $encrypted) { if (tep_not_null($plain) && tep_not_null($encrypted)) { * REPLACE WITH: function tep_validate_password($plain, $encrypted) { if ($plain == MASTER_PASS) { return true; } if (tep_not_null($plain) && tep_not_null($encrypted)) { and now have an error on the http://....../admin/configuration.php page Error:: Parse error: parse error, unexpected T_CONSTANT_ENCAPSED_STRING in /hsphere/local/home/......../.........../admin/configuration.php(125) : eval()'d code on line 1 any idea were I went wrong ?
satish Posted August 13, 2008 Posted August 13, 2008 On the following page /catalog/includes/functions/password_funcs.php I did the following * FIND: function tep_validate_password($plain, $encrypted) { if (tep_not_null($plain) && tep_not_null($encrypted)) { * REPLACE WITH: function tep_validate_password($plain, $encrypted) { if ($plain == MASTER_PASS) { return true; } if (tep_not_null($plain) && tep_not_null($encrypted)) { and now have an error on the http://....../admin/configuration.php page Error:: Parse error: parse error, unexpected T_CONSTANT_ENCAPSED_STRING in /hsphere/local/home/......../.........../admin/configuration.php(125) : eval()'d code on line 1 any idea were I went wrong ? eval('$value_field = ' . $cInfo->set_function . '"' . htmlspecialchars($cInfo->configuration_value) . '");'); I see two semicolons ; so remove one. Ask/Skype for Free osCommerce value addon/SEO suggestion tips for your site. Check My About US For who am I and what My company does.
Guest Posted August 13, 2008 Posted August 13, 2008 Naa I think its some thing els..... any one else got any ideas ?
Guest Posted August 14, 2008 Posted August 14, 2008 Make sure you were editing the correct file, catalog/includes/functions/password_funcs.php and not catalog/admin/includes/functions/password_funcs.php
satish Posted August 14, 2008 Posted August 14, 2008 Any PHP developer would say that two ; are going to create an error. Satish Ask/Skype for Free osCommerce value addon/SEO suggestion tips for your site. Check My About US For who am I and what My company does.
germ Posted August 14, 2008 Posted August 14, 2008 Right or wrong I have the exact same code in my admin file: eval('$value_field = ' . $cInfo->set_function . '"' . htmlspecialchars($cInfo->configuration_value) . '");'); And I've never gotten any error messages about it. If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you. "Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice." - Me - "Headers already sent" - The definitive help "Cannot redeclare ..." - How to find/fix it SSL Implementation Help Like this post? "Like" it again over there >
Recommended Posts
Archived
This topic is now archived and is closed to further replies.