cancel
Showing results for 
Search instead for 
Did you mean: 

Magento 2.3.4 has frontend and backend issue

Magento 2.3.4 has frontend and backend issue

Hi,

 

I have installed Magento 2.3.4 on cpanel (hosting) environment. After successful installation when i open my site and magento admin (backend) it doesn't open properly. It seems like css is not loading or working perfectly.

Here are the images of front end and backend.

Frontend

frontend.PNG

Backend

 

backend.PNG

Please support that how i can resolve it.

6 REPLIES 6

Re: Magento 2.3.4 has frontend and backend issue

Hi @aamir_saleem1 

Please make sure that you have “.htaccess” file under pub/static folder.

Or you can change dynamic url from following setting:

Stores>Configuration>Advanced>Developer>Sign Static Files (dev_static_sign) -> No.


or using query

INSERT INTO 'core_config_data' ('path', 'value') 
VALUES ('dev/static/sign', 0) 
ON DUPLICATE KEY UPDATE value = 0;

 

OR

 

For Ubuntu / Debian edit the file /etc/apache2/apache2.conf. To edit this file run command


sudo vi /etc/apache2/apache2.conf

Modify from:

<Directory /var/www/>
Options Indexes FollowSymLinks
AllowOverride None
Require all granted
</Directory>

to

<Directory /var/www/>
Options Indexes FollowSymLinks
AllowOverride All
Require all granted
</Directory>

Then restart apache

sudo service apache2 restart

or

sudo /etc/init.d/apache2 restart


for more info a/201005 

Flush the cache

php bin/magento cache:flush



I hope it will help you!

Re: Magento 2.3.4 has frontend and backend issue

Hi Kumar,

 

Thanks for the support. i have tryed your soulution but didn't succeeded. .htaccess file is also there. Please suggest anything else.'

 

Thank you so much.

Re: Magento 2.3.4 has frontend and backend issue

Hi @aamir_saleem1 

Try the following command once:

find . -type d -exec chmod 755 {} \; && find . -type f -exec chmod 644 {} \; && chmod u+x bin/magento

You can use sudo as well.

Run the below command in sequence once.

chmod -R 0777 var/ pub/ generated/
rm -rf var/cache/* var/view_preprocessed/* generated/* pub/static/*
php bin/magento setup:di:compile
php bin/magento setup:static-content:deploy -f
php bin/magento cache:flush
php bin/magento indexer:reindex
chmod -R 0777 var/ pub/ generated/

I hope it will help you!

Re: Magento 2.3.4 has frontend and backend issue

@Vimal Kumar 

 

Thanks for your kind support. i have tried your suggestion step by step. But still issue is there. i am so frustrate what is the issue. i have reinstall complete package but still issue is there.

 

Kindly suggest any other procedure.

 

BR,

Re: Magento 2.3.4 has frontend and backend issue

Hi @aamir_saleem1 

Also make sure that a2enmod is enabled.

sudo a2enmod rewrite

Restart apache2 after

sudo /etc/init.d/apache2 restart

or

sudo service apache2 restart

 
Might be it will help you!

Re: Magento 2.3.4 has frontend and backend issue

@Vimal Kumar 

 

Thanks for your support. I have resolved the problem by reinstalling magento clean and then add my theme.

now frontend and backend is working fine. But unfrotunatelly still i have one issue that when i click on  Sm Mega Menu > Menu Configuration > Menu Item the no page opens untill i refresh browser and when i refresh browser page will open but i can't click on any option of except Back.

Don't know what is the issue.

 

error image.PNG