Freddykhoury Posted May 17, 2022 Share Posted May 17, 2022 Hello, I have copied the online version to my localhost and i cannot login to my backend the website open on my localhost but not the backend After clickingon login the page loads again and there is no error. debug is true PHP version is 7.3.3 same as the online server I also tried it on chrome, firefox, IE I have attached an image thank you Link to comment Share on other sites More sharing options...
Prestachamps Posted May 17, 2022 Share Posted May 17, 2022 Hi, try deleting from the FTP the folders /var/cache/dev/ and /var/cache/prod/ if still not working you could try renaming the Backoffice folder to another name and login using that folder name. Kind regards, Leo. Link to comment Share on other sites More sharing options...
Nickz Posted May 17, 2022 Share Posted May 17, 2022 htaccess and Database have you thought off changing the domain name? Link to comment Share on other sites More sharing options...
El Patron Posted May 17, 2022 Share Posted May 17, 2022 here is guide to installing on local environment, it might help https://devdocs.prestashop.com/1.7/basics/installation/localhost/ Link to comment Share on other sites More sharing options...
Freddykhoury Posted May 18, 2022 Author Share Posted May 18, 2022 Thank you guys for the quick reply but unfortunatly non of the solution worked I deleted the cache folder, renamed the folder and still the same issue I have changed the domain name and the frontend is working fine I already installed the latest prestashop on my localhost all is working fine below is the htaccess file content Hope it can help fine the error # ~~start~~ Do not remove this comment, Prestashop will keep automatically the code outside this comment when .htaccess will be generated again # .htaccess automaticaly generated by PrestaShop e-commerce open-source solution # https://www.prestashop.com - https://www.prestashop.com/forums <IfModule mod_rewrite.c> <IfModule mod_env.c> SetEnv HTTP_MOD_REWRITE On </IfModule> RewriteEngine on #Domain: localhost RewriteRule . - [E=REWRITEBASE:/lm/] RewriteRule ^api(?:/(.*))?$ %{ENV:REWRITEBASE}webservice/dispatcher.php?url=$1 [QSA,L] # Images RewriteCond %{HTTP_HOST} ^localhost$ RewriteRule ^([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$1$2$3.jpg [L] RewriteCond %{HTTP_HOST} ^localhost$ RewriteRule ^([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$2/$1$2$3$4.jpg [L] RewriteCond %{HTTP_HOST} ^localhost$ RewriteRule ^([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$2/$3/$1$2$3$4$5.jpg [L] RewriteCond %{HTTP_HOST} ^localhost$ RewriteRule ^([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$2/$3/$4/$1$2$3$4$5$6.jpg [L] RewriteCond %{HTTP_HOST} ^localhost$ RewriteRule ^([0-9])([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$2/$3/$4/$5/$1$2$3$4$5$6$7.jpg [L] RewriteCond %{HTTP_HOST} ^localhost$ RewriteRule ^([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$2/$3/$4/$5/$6/$1$2$3$4$5$6$7$8.jpg [L] RewriteCond %{HTTP_HOST} ^localhost$ RewriteRule ^([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$2/$3/$4/$5/$6/$7/$1$2$3$4$5$6$7$8$9.jpg [L] RewriteCond %{HTTP_HOST} ^localhost$ RewriteRule ^c/([0-9]+)(\-[\.*_a-zA-Z0-9-]*)(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/c/$1$2$3.jpg [L] RewriteCond %{HTTP_HOST} ^localhost$ RewriteRule ^c/([a-zA-Z_-]+)(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/c/$1$2.jpg [L] # AlphaImageLoader for IE and fancybox RewriteRule ^images_ie/?([^/]+)\.(jpe?g|png|gif)$ js/jquery/plugins/fancybox/images/$1.$2 [L] # Dispatcher RewriteCond %{REQUEST_FILENAME} -s [OR] RewriteCond %{REQUEST_FILENAME} -l [OR] RewriteCond %{REQUEST_FILENAME} -d RewriteRule ^.*$ - [NC,L] RewriteRule ^.*$ %{ENV:REWRITEBASE}index.php [NC,L] </IfModule> AddType application/vnd.ms-fontobject .eot AddType font/ttf .ttf AddType font/otf .otf AddType application/font-woff .woff AddType font/woff2 .woff2 <IfModule mod_headers.c> <FilesMatch "\.(ttf|ttc|otf|eot|woff|woff2|svg)$"> Header set Access-Control-Allow-Origin "*" </FilesMatch> <FilesMatch "\.pdf$"> Header set Content-Disposition "Attachment" Header set X-Content-Type-Options "nosniff" </FilesMatch> </IfModule> <Files composer.lock> # Apache 2.2 <IfModule !mod_authz_core.c> Order deny,allow Deny from all </IfModule> # Apache 2.4 <IfModule mod_authz_core.c> Require all denied </IfModule> </Files> #If rewrite mod isn't enabled ErrorDocument 404 /index.php?controller=404 # ~~end~~ Do not remove this comment, Prestashop will keep automatically the code outside this comment when .htaccess will be generated again Link to comment Share on other sites More sharing options...
Freddykhoury Posted May 18, 2022 Author Share Posted May 18, 2022 May this can help I am also not able to login as user from the frontend when I enter a wrong password it tell me Authentication failed. but when i enter the correct password the page loads and nothing happens I tried to give full access to all folder and files but still Link to comment Share on other sites More sharing options...
SchmidtSon Posted May 18, 2022 Share Posted May 18, 2022 have u enabled "DEBUG MODE"? U can do this in ure Database. or go into ure FTP root -> config -> defines.inc.php On Line 29 /* Debug only */ if (!defined('_PS_MODE_DEV_')) { define('_PS_MODE_DEV_', false); } change to /* Debug only */ if (!defined('_PS_MODE_DEV_')) { define('_PS_MODE_DEV_', true); } After it u get the information what is wrong with ure Backend when u try to login. Send us the Report u will see after trying to login. Bests Patrick Link to comment Share on other sites More sharing options...
Freddykhoury Posted May 18, 2022 Author Share Posted May 18, 2022 The Debug mode was already enabled and that is the problem Link to comment Share on other sites More sharing options...
Prestachamps Posted May 18, 2022 Share Posted May 18, 2022 Hi, you should try to disable the https from the database, as on localhost that could cause these type of issues. You can change this in the database table PREFIX_configuration , set value of "PS_SSL_ENABLED_EVERYWHERE" to 0, and also set value of "PS_SSL_ENABLED" to 0 , then delete cache and test it in an incognito window. Kind regards, Leo. Link to comment Share on other sites More sharing options...
Freddykhoury Posted May 18, 2022 Author Share Posted May 18, 2022 Thank you for the Solution but I disabled the SSLfrom the DB, cleared the cache, opened the backend from incognito, tried it from another browser and still it didn't work 😅 backend page reload and nothing happened Link to comment Share on other sites More sharing options...
SchmidtSon Posted May 18, 2022 Share Posted May 18, 2022 (edited) Go into ure Database into table config and disable the PS_REWRITING_SETTINGS by setting it 0 Edited May 18, 2022 by SchmidtSon (see edit history) Link to comment Share on other sites More sharing options...
Nickz Posted May 18, 2022 Share Posted May 18, 2022 21 hours ago, Freddykhoury said: I have copied the online version to my localhost The online version is which PS Version? Link to comment Share on other sites More sharing options...
Freddykhoury Posted May 18, 2022 Author Share Posted May 18, 2022 I changed the PS_REWRITING_SETTINGS to 0 but nothing changed PS Version on the server and on localhost are the same 1.7.6.8 thank you for your support Link to comment Share on other sites More sharing options...
SchmidtSon Posted May 18, 2022 Share Posted May 18, 2022 what is this for a .htaccess?? This .htaccess only works for localhost not for a live Version. 10 hours ago, Freddykhoury said: Thank you guys for the quick reply but unfortunatly non of the solution worked I deleted the cache folder, renamed the folder and still the same issue I have changed the domain name and the frontend is working fine I already installed the latest prestashop on my localhost all is working fine below is the htaccess file content Hope it can help fine the error # ~~start~~ Do not remove this comment, Prestashop will keep automatically the code outside this comment when .htaccess will be generated again # .htaccess automaticaly generated by PrestaShop e-commerce open-source solution # https://www.prestashop.com - https://www.prestashop.com/forums <IfModule mod_rewrite.c> <IfModule mod_env.c> SetEnv HTTP_MOD_REWRITE On </IfModule> RewriteEngine on #Domain: localhost RewriteRule . - [E=REWRITEBASE:/lm/] RewriteRule ^api(?:/(.*))?$ %{ENV:REWRITEBASE}webservice/dispatcher.php?url=$1 [QSA,L] # Images RewriteCond %{HTTP_HOST} ^localhost$ RewriteRule ^([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$1$2$3.jpg [L] RewriteCond %{HTTP_HOST} ^localhost$ RewriteRule ^([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$2/$1$2$3$4.jpg [L] RewriteCond %{HTTP_HOST} ^localhost$ RewriteRule ^([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$2/$3/$1$2$3$4$5.jpg [L] RewriteCond %{HTTP_HOST} ^localhost$ RewriteRule ^([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$2/$3/$4/$1$2$3$4$5$6.jpg [L] RewriteCond %{HTTP_HOST} ^localhost$ RewriteRule ^([0-9])([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$2/$3/$4/$5/$1$2$3$4$5$6$7.jpg [L] RewriteCond %{HTTP_HOST} ^localhost$ RewriteRule ^([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$2/$3/$4/$5/$6/$1$2$3$4$5$6$7$8.jpg [L] RewriteCond %{HTTP_HOST} ^localhost$ RewriteRule ^([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$2/$3/$4/$5/$6/$7/$1$2$3$4$5$6$7$8$9.jpg [L] RewriteCond %{HTTP_HOST} ^localhost$ RewriteRule ^c/([0-9]+)(\-[\.*_a-zA-Z0-9-]*)(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/c/$1$2$3.jpg [L] RewriteCond %{HTTP_HOST} ^localhost$ RewriteRule ^c/([a-zA-Z_-]+)(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/c/$1$2.jpg [L] # AlphaImageLoader for IE and fancybox RewriteRule ^images_ie/?([^/]+)\.(jpe?g|png|gif)$ js/jquery/plugins/fancybox/images/$1.$2 [L] # Dispatcher RewriteCond %{REQUEST_FILENAME} -s [OR] RewriteCond %{REQUEST_FILENAME} -l [OR] RewriteCond %{REQUEST_FILENAME} -d RewriteRule ^.*$ - [NC,L] RewriteRule ^.*$ %{ENV:REWRITEBASE}index.php [NC,L] </IfModule> AddType application/vnd.ms-fontobject .eot AddType font/ttf .ttf AddType font/otf .otf AddType application/font-woff .woff AddType font/woff2 .woff2 <IfModule mod_headers.c> <FilesMatch "\.(ttf|ttc|otf|eot|woff|woff2|svg)$"> Header set Access-Control-Allow-Origin "*" </FilesMatch> <FilesMatch "\.pdf$"> Header set Content-Disposition "Attachment" Header set X-Content-Type-Options "nosniff" </FilesMatch> </IfModule> <Files composer.lock> # Apache 2.2 <IfModule !mod_authz_core.c> Order deny,allow Deny from all </IfModule> # Apache 2.4 <IfModule mod_authz_core.c> Require all denied </IfModule> </Files> #If rewrite mod isn't enabled ErrorDocument 404 /index.php?controller=404 # ~~end~~ Do not remove this comment, Prestashop will keep automatically the code outside this comment when .htaccess will be generated again this only works for localhost not for live Version Link to comment Share on other sites More sharing options...
Nickz Posted May 18, 2022 Share Posted May 18, 2022 (edited) 26 minutes ago, Freddykhoury said: PS Version on the server and on localhost are the same 1.7.6.8 On local host do you have all php extensions installed plus enabled? Windows Localhost or Linux? Edited May 18, 2022 by Nickz (see edit history) Link to comment Share on other sites More sharing options...
SchmidtSon Posted May 18, 2022 Share Posted May 18, 2022 2 minutes ago, Nickz said: On local host do you have all php extensions installed plus enabled? Windows Localhost or Linux? and are the PHP Versions the same local and at ure hoster? Link to comment Share on other sites More sharing options...
Freddykhoury Posted May 18, 2022 Author Share Posted May 18, 2022 php and prestashop are the same on the server and the Xampp windows for the php extention,i don't know what is required Link to comment Share on other sites More sharing options...
Freddykhoury Posted May 18, 2022 Author Share Posted May 18, 2022 I have installed the lastes version of prestashop and it is working fineon my localhost 1 Link to comment Share on other sites More sharing options...
Nickz Posted May 18, 2022 Share Posted May 18, 2022 (edited) 12 minutes ago, Freddykhoury said: I have installed the lastes version of prestashop and it is working fineon my localhost if the php version is not exactly the same you could see front end but not the backend or vice versa. C:\>php -v for version php -m for modules Between Linux and Windows the biggest issue can be / for Linux and \ for Windows. Edited May 18, 2022 by Nickz (see edit history) Link to comment Share on other sites More sharing options...
Nickz Posted May 18, 2022 Share Posted May 18, 2022 30 minutes ago, SchmidtSon said: and are the PHP Versions the same local and at ure hoster? That should @Freddykhouryknow Link to comment Share on other sites More sharing options...
Freddykhoury Posted May 18, 2022 Author Share Posted May 18, 2022 (edited) Php version on the localhost and the server is 7.3.33 I also checked the active extention on the server an install them changed the PHP.ini and restart the server still not working Edited May 18, 2022 by Freddykhoury (see edit history) Link to comment Share on other sites More sharing options...
SchmidtSon Posted May 18, 2022 Share Posted May 18, 2022 I would do a new setup for the host. Delete everything in ure FTP and Database and then upload again ure Files and Database. Then change all url´s in ure Database in Table config and in Table shop_url. After this clean all Folder in Var/Cache Then it must work. Maybe now there is an Issue with the rights u set for the folders. All the Solution the Members here wrote down is the normal Way and one of this way have to fix ure Issue 🙂 Link to comment Share on other sites More sharing options...
Nickz Posted May 18, 2022 Share Posted May 18, 2022 1 hour ago, SchmidtSon said: Then change all url´s in ure Database in Table config and in Table shop_url. After this clean all Folder in Var/Cache so far I understood his site is working but the copy in his PC does not want to run. Could well be that both are not running. Link to comment Share on other sites More sharing options...
Freddykhoury Posted May 18, 2022 Author Share Posted May 18, 2022 The online is working fine lebnenmarket.com Link to comment Share on other sites More sharing options...
Mian Waqas Posted May 18, 2022 Share Posted May 18, 2022 16 minutes ago, Freddykhoury said: The online is working fine lebnenmarket.com Hi, First Try > load this url https://Domain Name here/Admin name here/index.php/improve/modules/manage (change to ur domain url and change the admin) this means load directly another page rather then dashboard and try. Second & Important thing > remove .htaccess file & Disable URL rewriting (in database) & then rename or delete Var/cache/prod & Dev folders - then give it a try. Hope this will be helpful Regards Link to comment Share on other sites More sharing options...
Freddykhoury Posted May 18, 2022 Author Share Posted May 18, 2022 It finally worked. I erased all files, copied the files again, edited the .htaccess, changed the DB parameter, delete Var/cache/prod & Dev folders updated the shop URL, changed the domain name in the configuration table, disabled the URL rewriting and it worked Thank you guys for your quick reply 1 Link to comment Share on other sites More sharing options...
Mian Waqas Posted May 19, 2022 Share Posted May 19, 2022 10 hours ago, Freddykhoury said: It finally worked. I erased all files, copied the files again, edited the .htaccess, changed the DB parameter, delete Var/cache/prod & Dev folders updated the shop URL, changed the domain name in the configuration table, disabled the URL rewriting and it worked Thank you guys for your quick reply That's great If you look at my last message it was same step for fixing!. Best regards Link to comment Share on other sites More sharing options...
Freddykhoury Posted May 24, 2022 Author Share Posted May 24, 2022 @mian I tried your solution but it didn't work anyway the backend opened once and now it is not loading anymore. i am not even able to load the login page Debug is on and no error is apearing, just loading and loading. Any idea ? Link to comment Share on other sites More sharing options...
Nickz Posted May 24, 2022 Share Posted May 24, 2022 6 hours ago, Freddykhoury said: anyway the backend opened once and now it is not loading anymore. i am not even able to load the login page short on Memory? Link to comment Share on other sites More sharing options...
SchmidtSon Posted May 25, 2022 Share Posted May 25, 2022 did u clean the cache of ure Browser, too? Link to comment Share on other sites More sharing options...
Freddykhoury Posted May 25, 2022 Author Share Posted May 25, 2022 Yes I cleaned the cache and i even opened edge that I nevered used, clear all the cache and opened the backend the backend opened to enter the credential, and then it loads and nothing hsppens and it keeps loading Thank you Link to comment Share on other sites More sharing options...
Nickz Posted May 25, 2022 Share Posted May 25, 2022 11 minutes ago, Freddykhoury said: the backend opened to enter the credential, and then it loads and nothing hsppens and it keeps loading how much RAM do you have on your server? How much memory is allocated via PHP? Link to comment Share on other sites More sharing options...
Prestachamps Posted May 25, 2022 Share Posted May 25, 2022 The Ram has less to do, as I suspect is higher than 32 MB (which would be the minimum minimorum to maker the BO work. try to downgrade the PHP to 7.1 . Any errors on the Information's tab ? Any Apache packages missing etc ? Link to comment Share on other sites More sharing options...
Nickz Posted May 25, 2022 Share Posted May 25, 2022 22 minutes ago, Prestachamps said: The Ram has less to do, as I suspect is higher than 32 MB suspecting is not knowing. You weren't addressed by the way. Link to comment Share on other sites More sharing options...
Prestachamps Posted May 25, 2022 Share Posted May 25, 2022 lmao. Really deep. I'll let you handle than as I see that most of your comments are well based 1 Link to comment Share on other sites More sharing options...
Mian Waqas Posted May 25, 2022 Share Posted May 25, 2022 @Nickz @Prestachamps The requester issue had already fixed as per his previous answer.... but next day the other issues comes along. the suspection of low on Hardisk/memory/malware/host/permission can be anything as he does not want to show de`bug errors. but i would recommend a developer to him to audit his server and store. Thanks Link to comment Share on other sites More sharing options...
Freddykhoury Posted May 27, 2022 Author Share Posted May 27, 2022 Thank you guys for the answers it may be my laptop that i am using as a server. these are the info Device name DESKTOP-A15OR6A Processor Intel(R) Core(TM) i7-4510U CPU @ 2.00GHz 2.60 GHz Installed RAM 6.00 GB (5.89 GB usable) Device ID A3BD4393-BFE6-48E8-B1FC-A6E383D67460 Product ID 00331-10000-00001-AA165 System type 64-bit operating system, x64-based processor Pen and touch No pen or touch input is available for this display ; Maximum amount of memory a script may consume (128MB) ; http://php.net/memory-limit memory_limit=512M Link to comment Share on other sites More sharing options...
Nickz Posted May 27, 2022 Share Posted May 27, 2022 You are aware that every change in php.ini requieres a apache2 restart? Link to comment Share on other sites More sharing options...
Freddykhoury Posted May 27, 2022 Author Share Posted May 27, 2022 Yes i restart everytime there is an update Link to comment Share on other sites More sharing options...
yofome9389 Posted May 28, 2022 Share Posted May 28, 2022 21 hours ago, Freddykhoury said: Yes i restart everytime there is an update when I enter a wrong password it tell me Authentication failed. but when i enter the correct password the page loads and nothing happens Link to comment Share on other sites More sharing options...
Nickz Posted May 28, 2022 Share Posted May 28, 2022 On 5/27/2022 at 12:38 AM, Freddykhoury said: ; Maximum amount of memory a script may consume (128MB) Set that to 360mb or better to 720mb 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