Jump to content

The server returned a "500 Internal Server Error". at install new theme


yusufraza

Recommended Posts

hello all,

today am install new bitnami prestashop on google cloud.

then m install new theme wia  Import from FTP.

ps 1.7.5.0

but we get..

Oops! An Error Occurred

The server returned a "500 Internal Server Error".

Something is broken. Please let us know what you were doing when this error occurred. We will fix it as soon as possible. Sorry for any inconvenience caused.

how to solve this

Link to comment
Share on other sites

Symfony\Component\Filesystem\Exception\ IOException

 

in vendor/symfony/symfony/src/Symfony/Component/Filesystem/Filesystem.php (line 104)

            if (!self::box('mkdir', $dir, $mode, true)) {

                if (!is_dir($dir)) {

                    // The directory was not created by a concurrent process. Let's throw an exception with a developer friendly error message if we have one

                    if (self::$lastError) {

                        throw new IOException(sprintf('Failed to create "%s": %s.', $dir, self::$lastError), 0, null, $dir);

                    }

                    throw new IOException(sprintf('Failed to create "%s"', $dir), 0, null, $dir);

                }

            }

        }

 

Filesystem->mkdir('/opt/bitnami/apps/prestashop/htdocs/themes/warehouse') in src/Core/Addon/Theme/ThemeManager.php (line 440)

                    'Admin.Design.Notification'

                )

            );

        }

        $this->filesystem->mkdir($themePath);

        $this->filesystem->mirror($sandboxPath, $themePath);

        $this->importTranslationToDatabase($theme);

        $this->filesystem->remove($sandboxPath);

 

ThemeManager->installFromZip('/opt/bitnami/apps/prestashop/htdocs/themes/theme_4_2_1.zip') in src/Core/Addon/Theme/ThemeManager.php (line 106)

 

ThemeManager->install('/opt/bitnami/apps/prestashop/htdocs/themes/theme_4_2_1.zip') in src/Core/Domain/Theme/CommandHandler/ImportThemeHandler.php (line 90)

 

ImportThemeHandler->handle(object(ImportThemeCommand)) in vendor/league/tactician/src/Handler/CommandHandlerMiddleware.php (line 71)

 

CommandHandlerMiddleware->execute(object(ImportThemeCommand), object(Closure)) in vendor/league/tactician/src/CommandBus.php (line 62)

 

CommandBus->League\Tactician\{closure}(object(ImportThemeCommand)) in vendor/league/tactician/src/CommandBus.php (line 42)

 

CommandBus->handle(object(ImportThemeCommand)) in src/Core/CommandBus/TacticianCommandBusAdapter.php (line 54)

 

TacticianCommandBusAdapter->handle(object(ImportThemeCommand)) in src/PrestaShopBundle/Controller/Admin/Improve/Design/ThemeController.php (line 235)

 

ThemeController->importAction(object(Request)) in vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpKernel.php (line 151)

 

HttpKernel->handleRaw(object(Request), 1) in vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpKernel.php (line 68)

 

HttpKernel->handle(object(Request), 1, false) in vendor/symfony/symfony/src/Symfony/Component/HttpKernel/Kernel.php (line 200)

 

Kernel->handle(object(Request), 1, false) in apanel/index.php (line 86)

Link to comment
Share on other sites

1 minute ago, prestamodulo said:

check again if debug mode is correctly. It should be looks like this.


if (!defined('_PS_MODE_DEV_')) {
define('_PS_MODE_DEV_', true);
}

 You can also check server error log file. 

we cant install new theme on ps 1.7.5.0

Link to comment
Share on other sites

2 minutes ago, prestamodulo said:

check again if debug mode is correctly. It should be looks like this.


if (!defined('_PS_MODE_DEV_')) {
define('_PS_MODE_DEV_', true);
}

 You can also check server error log file. 

if m install new theme the we got error

Oops! An Error Occurred

The server returned a "500 Internal Server Error".

Something is broken. Please let us know what you were doing when this error occurred. We will fix it as soon as possible. Sorry for any inconvenience caused.

the m enable debug mode and see this error .

Link to comment
Share on other sites

Just now, prestamodulo said:

It must be permission file permission issue. check if all files have correct owner and group.

thanks solve this

am use below command

sudo chmod 775 /opt/bitnami/apps/prestashop/htdocs/themes

after this solve this problem

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...