Jump to content

backend does not load


Freddykhoury

Recommended Posts

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 

Capture.JPG

Link to comment
Share on other sites

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

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

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

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

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

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 by Nickz (see edit history)
Link to comment
Share on other sites

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

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

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

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 

  • Like 1
Link to comment
Share on other sites

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

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

@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

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...