Jump to content
yusufraza

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

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

Share this post


Link to post
Share on other sites

Hi..
Enable debug mode and see what error come

Thanks 

  • Like 1

Share this post


Link to post
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)

Share this post


Link to post
Share on other sites

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. 

Share this post


Link to post
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

Share this post


Link to post
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 .

Share this post


Link to post
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

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More