I have just installed Magento 2.3 on my server.
php version 7.3
I get an error 500 when i try to view site or access the admin
If i rename the htaccess file i get a page displayed but without any layout, its just text.
The debug log file says
lidate: {"method":"GET","url":"https://markhuyton.co.uk/magento2/","invalidateInfo":{"identifier":"LOCKED_RECORD_INFO_BLOCK_198a535145bd34b3c50606dbeaed1542379744a1"}} []
web addess is https://markhuyton.co.uk/magento2/
thanks in advance
Mark
Solved! Go to Solution.
Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 188416 bytes) in /home/mark/public_html/magento2/vendor/magento/framework/View/Model/Layout/Merge.php on line 804
Follow this for remove version
then run below commands:
php bin/magento deploy:mode:set developer php bin/magento setup:upgrade php bin/magento setup:static-content:deploy -f en_US php bin/magento c:f
Hi @markwhenwea946 ,
Your static content is not deployed properly.
Just run below commands in your ssh panel
1. php bin/magento setup:upgrade
2. rm -rf generated/* pub/static/frontend/*
3. php bin/magento setup:static-content:deploy -f
Hope this helps you!
Problem Sollved! Click Kudos & Accept as Solution!
You will find below shared line in .htacess:
#RewriteBase /magento/
Just uncomment this line and change it to like:
RewriteBase /magento2/
After that just run below commands:
php bin/magento c:f php bin/magento setup:static-content:deploy -f
Hi
Thanks for the reply, the htaccess file was renamed so i think this is why the content displayed as it did, i have changed it back and still get the error 500 message
Mark
Please revert back .htaccess as it was earlier same and then change in htaccess same what i recommend.
Thanks
Hi Maish
That line was already in the htaccess file, without the #, does it need the #?
Just replace magento to magento2, here magento2 is your folder name.
This is the line, it is already in the htaccess file i have not changed it
############################################ ## you can put here your magento root folder ## path relative to web root RewriteBase /magento2/ ############################################
yes, same issue