vuestorefront / vue-storefront

Alokai is a Frontend as a Service solution that simplifies composable commerce. It connects all the technologies needed to build and deploy fast & scalable ecommerce frontends. It guides merchants to deliver exceptional customer experiences quickly and easily.
https://www.alokai.com
MIT License
10.59k stars 2.08k forks source link

[Bug]: Error 500 on homepage #6918

Open davordragic opened 1 year ago

davordragic commented 1 year ago

Describe the Bug

I successfully installed version 4.1.4 without any issues. However, when I tried installing version 4.2.0, I encountered an error stating "rmdir path/.env.example failed".

Even after successfully installing version 4.1.4, I encountered a 500 error when accessing the homepage. Unfortunately, no error message was displayed, making it difficult to identify the cause of the error. You can access the website at the following URL: http://vuetest.harvey.optiweb.si/.

Additionally, I noticed another unusual behavior that might be related to the Magento 2 configuration. When navigating back to the homepage, the URL appends "/default".

Furthermore, during the initialization process, there was an error related to the Magento URL. It claimed that "vuetest.harvey.optiweb.si" was invalid. I had to remove the ".si" from the URL, and the initialization process proceeded without any issues. Afterward, I fixed the URL in the .env file.

Current behavior

Error 500 without error message

Expected behavior

Status 200 and shown menu and other elements

Steps to reproduce

Install Magento 2.4.5 Install vue frontstore 4.1.4 with Magento 2

What version of Vue Storefront are you using?

4.1.4

What version of Node.js are you using?

v16.20.0

What browser (and version) are you using?

Chrome, Safari, Firefox

What operating system (and version) are you using?

macos

Relevant log output

GET http://vuetest.harvey.optiweb.si/ 500 (Internal Server Error)

This is only error I can find.

Able to fix / change the documentation?

Code of Conduct

rohrig commented 1 year ago

Hi @davordragic 👋 , can you please check out this installation guide ? This should get you going in the right direction. If you need additional help, feel free to ask 😄

davordragic commented 1 year ago

wait a second... It started working when DNS A record was resolved ... makes sense

davordragic commented 1 year ago

Only 1 issue I still have. Why does url append /default? This is probably store name (Magento 2 is clean install with demo content). How to hide that "/default"