Comment on page
Common Issues

The issue appears when you have an incorrect theme path in the theme configuration in the database.
To fix the issue follow the steps below:
- 1.
- 2.Open
core_config_data
table and find a row withdesign/theme/theme_id
path value. - 3.Open
theme
table and find a row withtheme_id
value corresponding tovalue
from the previous step. - 4.Make sure that
theme_path
value is the same as the one declared in your theme'sregistration.php
file. (for ScandiPWA it will be likelyscandipwa/scandipwa
)
An error message should look like this:
Response: SQLSTATE[HY000] [2002] No such file or directory
In InstallCommand.php line 274:
Parameter validation failed
setup:install ...
This issue happens when
env.php
file is missing.Should not appear on magento-scripts@>=1.3.0.
Response: SQLSTATE[HY000] [2006] MySQL server has gone away
In InstallCommand.php line 274:
Parameter validation failed
setup:install ...
This issue might appear at the first start of the project.
Should not appear on magento-scripts@>=1.4.0.
This issue might appear if you, for some reason, have no Magento database installed in MySQL.
Delete
app/etc/env.php
file, after that run start command.
This will force CMA to reinstall Magento but you will lose some configuration, for example, a persisted query that is required for the ScandiPWA theme.Should not appear on magento-scripts@>=1.3.1.
This issue might appear if your port configuration has changed but Magento still uses old configuration.
There are 2 options on how to solve such a problem:
Recommended, as it is the safest option.
Not recommended, because you will lose all the configuration from that file.
Should not appear on magento-scripts@>=1.6.0
This issue might appear if you have a theme installed but persisted queries are not set up for some reason.
This issue might appear if you have previously installed Magento with CMA but now lost all the data in MySQL for some reason.
Last modified 2yr ago