Magento Bug for sure ...
I have a Magento 2.3 installation on a fresh Unbuntu 18.x server.
I was able to set up my Magento installation and use it for a few days. When I set up the installation I only used a static ip address for the web site name. I was able to do all the front-end and admin activities with this hardcoded static ip.
I tried changing the base URL in admin to my domain name. In admin I selected Stores > Configuration > General > Web. Here I changed the base url from ip address to domain name. I hit Save Config and the browser came back back with generic error
medifoodusa.com redirected you too many times.
ATTEMPTS TO FIX ...
I do not have any way to log into the Magento Admin because I will always get redirect message.
Yes. I've tried multiple browser types of multiple computers clearing cache each time.
I've tried http://www.medifoodusa.com/index.php
and http://www.medifoodusa.com/index.php/admin_foodhome
I can get my http://www.medifoodusa.com/phpmyadmin/index.php page to display correctly.
When I log in I can navigate to the core_config_data table. The value for web/unsecure/base_url is http://medifoodusa.com
Throughout phpmyadmin tables I get warnings displaying "Some errors have been detected on the server! Please look at the bottom of the window."
I have a medifoodusa.com.conf file in /etc/apache2/
This file has ...
ServerName medifoodusa.com
ServerAlias www.medifoodusa.com
ServerAdmin KJohnston@FoodHome.com
DocumentRoot /var/www/medifoodusa.com
<Directory /var/www/medifoodusa.com>
Options -Indexes +FollowSymLinks
AllowOverride All
</Directory>
I can NOT configure HTTPS because I can not validate a file upload to my server (always redirects). I can not verify via DNS either with Google.
Solved! Go to Solution.
Hello @FoodHome
Can you please deploy the store once and then clear cache data of Magento by below commands then check?
bin/magento s:up bin/magento s:s:d bin/magento c:c
I hope this will work for you.
Regards,
Deep
Hello @FoodHome
Can you please deploy the store once and then clear cache data of Magento by below commands then check?
bin/magento s:up bin/magento s:s:d bin/magento c:c
I hope this will work for you.
Regards,
Deep
@FoodHome can you please add the below code in your index.php file and then refresh the frontend and let me know the content which you see there.
ini_set('display_errors',1);
Thanks
The 1st command did a lot of work.
The 2nd command did not add any value "NOTE: like static content deployment is not required in "default" and "development" modes static contents are being deployed ...xxxx
The 3rd step did a lot to clean up caches'
Then the web site worked! It also worked with the correct domain name instead of the ip address.
The admin page did not work, but that is most likely because I don't have an ssl key installed. I will work on that to see, if that problem gets fixed by adding ssl cert
I tried putting this statement in top or bottom of index.php page. This statement did not do any good because the page was never rendering to the browser. It just kept redirecting.