Home  >  Article  >  CMS Tutorial  >  How to deal with the timeout prompt when installing a WordPress theme

How to deal with the timeout prompt when installing a WordPress theme

藏色散人
藏色散人Original
2019-07-18 09:18:143204browse

How to deal with the timeout prompt when installing a WordPress theme

#How to deal with the timeout prompt when WordPress installs a theme?

Error message:

Downloading update from http://wordpress.org/××××××.zip.
Download failed.: Operation timed out after 60000 milliseconds with 641464 bytes received
Installation Failed.
Downloading update from http://wordpress.org/××××××.zip.Download failed.: Operation timed out after 60000 milliseconds with 641464 bytes receivedInstallation Failed.

Explanation:

This English paragraph means that the download file has timed out. Since your host network speed is relatively slow, it is recommended to change this Adjust the time to a longer time, it is recommended to set it to 600 seconds (600000 milliseconds) and it should be successful.

How to handle the timeout prompt when WordPress installs the theme:

Edit: wp-admin/includes/file.php

Search:

$response = wp_remote_get($url, array(‘timeout’ => 300));

Operation: Change 300 to 600 or greater.

For more WordPress technical articles, please visit the WordPress Tutorial column!

The above is the detailed content of How to deal with the timeout prompt when installing a WordPress theme. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn