I'm trying to upload a demo content for a template I'm using but it gets stuck and never uploads.
Using Mamp Pro on localhost configuration. Here is the log that I get everytime I try to run the upload:
PHP Fatal error: Maximum execution time of 60 seconds exceeded in C:\MAMP\htdocs\\wp-includes\wp-db.php on line 1877
PHP Stack trace:
PHP 1. {main}() C:\MAMP\htdocs\\wp-admin\admin-ajax.php:0
PHP 2. do_action() C:\MAMP\htdocs\\wp-admin\admin-ajax.php:91
PHP 3. WP_Hook->do_action() C:\MAMP\htdocs\\wp-includes\plugin.php:453
PHP 4. WP_Hook->apply_filters() C:\MAMP\htdocs\\wp-includes\class-wp-hook.php:323
PHP 5. stm_demo_import_content() C:\MAMP\htdocs\\wp-includes\class-wp-hook.php:298
PHP 6. WP_Import->import() C:\MAMP\htdocs\\wp-content\plugins\stm-importer\stm-importer.php:241
PHP 7. WP_Import->process_posts() C:\MAMP\htdocs\\wp-content\plugins\stm-importer\wordpress-importer\wordpress-importer.php:106
PHP 8. add_post_meta() C:\MAMP\htdocs\\wp-content\plugins\stm-importer\wordpress-importer\wordpress-importer.php:731
PHP 9. add_metadata() C:\MAMP\htdocs\\wp-includes\post.php:1716
PHP 10. wpdb->insert() C:\MAMP\htdocs\\wp-includes\meta.php:99
PHP 11. wpdb->_insert_replace_helper() C:\MAMP\htdocs\\wp-includes\wp-db.php:1910
PHP 12. wpdb->query() C:\MAMP\htdocs\\wp-includes\wp-db.php:1989
PHP 13. wpdb->_do_query() C:\MAMP\htdocs\\wp-includes\wp-db.php:1765
php.ini
is reconfigured with max_execution_time = 600
and max_input_time = 600
I've added directive TimeOut 600
in httpd.conf
(at the end of virtualhost block)
httpd.conf-default timeout directives are both set on 600
wp_config
is set with set_time_limit(600);
and .htaccess
Mamp-pro is configured so that it overrides it
Despite all of these, I still get the 60 seconds max execution time exceeded. I've browsed this site and many others without luck. I'm no coder so I can't see in the files in the stack trace if there is anything that should be amended.