Reputation: 539
When I'm trying to change some variables e.g. the primary color in my theme configurations I get the following message:
AxiosError: Request failed with status code 500
The symfony profiler says the following:
Uncaught PHP Exception Symfony\Component\ErrorHandler\Error\FatalError: "Error: Maximum execution time of 30 seconds exceeded" at /home/user/projects/project/vendor/sabberworm/php-css-parser/src/OutputFormatter.php line 27
[▼
"exception" => Symfony\Component\ErrorHandler\Error\FatalError {#63389 ▼
-error: [▼
"type" => 1
"message" => "Maximum execution time of 30 seconds exceeded"
"file" => "/home/user/projects/project/vendor/sabberworm/php-css-parser/src/OutputFormatter.php"
"line" => 27
]
#message: "Error: Maximum execution time of 30 seconds exceeded"
#code: 0
#file: "/home/user/projects/project/vendor/sabberworm/php-css-parser/src/OutputFormatter.php"
#line: 27
}
]
Does anyone know how to fix this?
Upvotes: 2
Views: 943
Reputation: 31
As already said you have to increase the max_execution_time
.
go on the server to /etc
.
search by typing find -name php.ini
.
May differ between different distributions
Choose the php.ini
of the webserver. Thats not in ../cli/..
path!
sudo cp php.ini php.ini.bak
sudo nano php.ini
ctrl
+ w
, enter max_execution_time
, increase the numberctrl
+ o
ctrl
+ x
sudo systemctl restart apache2
or sudo service apache2 restart
Upvotes: 1
Reputation: 34978
The max execution time (max_execution_time
in your php.ini
used for webserver requests) needs to be increased.
Shopware is building the theme when saving the configuration, and this can take some time.
Upvotes: 0