Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Master Password Error


Guest

Recommended Posts

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 ?

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

Make sure you were editing the correct file, catalog/includes/functions/password_funcs.php and not catalog/admin/includes/functions/password_funcs.php

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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 >

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...