Asked 12 months ago
23 Jul 2023
Views 376
Mahesh Radadiya

Mahesh Radadiya posted

Fatal error: Maximum execution time of 120 seconds exceeded in wp-admin/includes/class/wp-filesystem/direct.php

installing woocommerce.7.9.0 but after sometime it cause error and stop installing
Fatal error: Maximum execution time of 120 seconds exceeded in wp-admin\includes\class-wp-filesystem-direct.php

what to do now ?
jabber

jabber
answered Jul 23 '23 00:00

you should increate maximum execution time in php.ini
may be it works

go to php.ini and find max_execution_time
and change it like max_execution_time=90000 or any time in secs
max_execution_time is Maximum execution time of each script, in seconds

or put this following php code in first line of script

ini_set('max_execution_time', '300'); 
Post Answer