Create Magento App
Create ScandiPWA AppScandiPWA DocsGitHub
v2
v2
  • Create Magento App
  • Getting started
    • Getting Started
    • Prerequisites
      • Linux requirements
      • MacOS requirements
        • Apple Silicon
      • Windows requirements
    • Available commands
      • Start the application
      • Stop the application
      • Check application status
      • Enter application CLI
      • Explore application logs
      • Execute commands in Docker containers
      • Link a theme
      • Import database dump
      • ⚠️ Uninstall a project
    • Folder structure
    • Updating to New Releases
      • Testing Alpha Releases
    • Configuration File
      • System Configuration File
    • Supported Magento versions
    • How does it work?
    • Limitations
    • What Is New in Version 2
  • Usage guide
    • Using console commands
    • Accessing Docker containers
    • Linking a Scandi Theme
    • Enabling XDebug
    • Enabling SSL
    • Configuring PHP
    • Configuring Multi-Store
    • Configuring NewRelic
    • Access on the local network
    • Using custom domain
    • Using Enterprise Edition
    • Using OpenSearch
    • Importing database
      • Importing remote database
    • Converting legacy Docker setup to CMA
    • Improve Performance
  • Container images
    • PHP Images
      • PHP 8.3
        • PHP 8.3 with Magento 2.4 extensions
        • PHP 8.3 with XDebug
          • PHP 8.3 with XDebug with Magento 2.4 extensions
      • PHP 8.2
        • PHP 8.2 with Magento 2.4 extensions
        • PHP 8.2 with XDebug
          • PHP 8.2 with XDebug with Magento 2.4 extensions
      • PHP 8.1
        • PHP 8.1 with Magento 2.4 extensions
        • PHP 8.1 with XDebug
          • PHP 8.1 with XDebug with Magento 2.4 extensions
      • PHP 7.4
        • PHP 7.4 with Magento 2.4 extensions
        • PHP 7.4 with XDebug
          • PHP 7.4 with XDebug with Magento 2.4 extensions
      • PHP 7.3
        • PHP 7.3 with Magento 2.4 extensions
        • PHP 7.3 with Magento 2.3 extensions
        • PHP 7.3 with XDebug
          • PHP 7.3 with XDebug with Magento 2.4 extensions
          • PHP 7.3 with XDebug with Magento 2.3 extensions
      • PHP 7.2
        • PHP 7.2 with Magento 2.3 extensions
        • PHP 7.2 with XDebug
          • PHP 7.2 with XDebug with Magento 2.3 extensions
    • ElasticSearch Images
      • ElasticSearch 6.8
  • Scripts Extensions
    • PHP Extensions
      • PHP Extensions Package
      • (deprecated) ionCube Extension
  • Troubleshooting
    • Common Issues
    • CMA Debugging
    • Uninstall CMA
Powered by GitBook
On this page
  • Required parameter 'theme_dir' was not passed
  • SQLSTATE[HY000] [2002] No such file or directory
  • SQLSTATE[HY000] [2006] MySQL server has gone away
  • The default website isn't defined. Set the website and try again.
  • Connection to Redis localhost:port failed after 1 failures. Connection refused.
  • Redis is not configured for persistent queries.
  • There are no commands defined in the "config" namespace.

Was this helpful?

  1. Troubleshooting

Common Issues

Previous(deprecated) ionCube ExtensionNextCMA Debugging

Last updated 3 years ago

Was this helpful?

Required parameter 'theme_dir' was not passed

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. Open core_config_data table and find a row with design/theme/theme_id path value.

  2. Open theme table and find a row with theme_id value corresponding to value from the previous step.

  3. Make sure that theme_path value is the same as the one declared in your theme's registration.php file. (for ScandiPWA it will be likely scandipwa/scandipwa)

SQLSTATE[HY000] [2002] No such file or directory

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.

SQLSTATE[HY000] [2006] MySQL server has gone away

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.

The default website isn't defined. Set the website and try again.

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.

Connection to Redis localhost:port failed after 1 failures. Connection refused.

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.

Redis is not configured for persistent queries.

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.

There are no commands defined in the "config" namespace.

This issue might appear if you have previously installed Magento with CMA but now lost all the data in MySQL for some reason.

Connect to your database using the database client. (like )

You can get host, port and credentials after running the command.

Run command the second time.

Run command the second time.

Delete app/etc/env.php file, after that run 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.

Get current port configuration from docker ps or command and edit app/etc/env.php file and run the command.

Delete app/etc/env.php file and run the command.

Run command to re-link the theme and setup persisted queries.

Delete app/etc/env.php and run the command again.

Beekeeper Studio
status
start
start
start
status
start
start
link
start