Guest Posted March 2, 2011 Share Posted March 2, 2011 Hello everyone i had an issue with the program not sending new password emails to the customers, after reading a while i installed the module for changing their password on the admin panel, now i have this error and i cant log in as an admin at all :( the store seems to be ok but i cant access admin info for reports now Fatal error: Call to undefined function tep_get_version() in /home/content/05/7060605/html/oscommerce/catalog/admin/includes/header.php on line 20 i didnt even touched that file! can anybody help ? Thank you G Link to comment Share on other sites More sharing options...
germ Posted March 2, 2011 Share Posted March 2, 2011 Add to /admin/includes/functions/general.php //// // Get the installed version number function tep_get_version() { static $v; if (!isset($v)) { $v = trim(implode('', file(DIR_FS_CATALOG . 'includes/version.php'))); } return $v; } 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 More sharing options...
starclown Posted January 2, 2012 Share Posted January 2, 2012 Hello everyone i had an issue with the program not sending new password emails to the customers, after reading a while i installed the module for changing their password on the admin panel, now i have this error and i cant log in as an admin at all the store seems to be ok but i cant access admin info for reports now Fatal error: Call to undefined function tep_get_version() in /home/content/05/7060605/html/oscommerce/catalog/admin/includes/header.php on line 20 i didnt even touched that file! can anybody help ? Thank you G Hi to all, I have exactly same problem and the solution which Jim offer doesn't work for me. Some one else? PLEASE!! I'm reading and reading everything I fund and nothing works. :( Link to comment Share on other sites More sharing options...
starclown Posted January 2, 2012 Share Posted January 2, 2012 I didn't touched that file either... what's going on? :/ PLEEEEEEASE... some one, help! Link to comment Share on other sites More sharing options...
starclown Posted January 2, 2012 Share Posted January 2, 2012 Add to /admin/includes/functions/general.php //// // Get the installed version number function tep_get_version() { static $v; if (!isset($v)) { $v = trim(implode('', file(DIR_FS_CATALOG . 'includes/version.php'))); } return $v; } Jmmmm weird... I just use the next code which is almost exactly at the above one.... //// // Get the installed version number function tep_get_version() { static $v; if (!isset($v)) { $v = trim(implode('', file(DIR_FS_CATALOG . 'includes/version.php'))); } return $v; } And it's works!! ;) Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.