Unable to import wordpress theme unit test data

Everytime i am unable to import wordpress test data from here. http://codex.wordpress.org/Theme_Unit_Test

I am using xampp, sometimes its failed to import.



Find class-wp-http-curl.php in that directory (C:\xampp\htdocs\wordpress\wp-includes) And before line 240 , input set_time_limit (5000);

set_time_limit (5000);
curl_exec( $handle );
$theHeaders = WP_Http::processHeaders( $this->headers, $url );
$theBody = $this->body;
$bytes_written_total = $this->bytes_written_total;

Your answer is in the error your provide Fatal error: Maximum execution time of 60 seconds exceeded.

You should edit your server PHP.ini to extend this 60 second limit. In example to 240 seconds.

max_execution_time = 240 ;

Find class-http.php in that directory (C:\xampp\htdocs\wordpress\wp-includes) And before line 1511 OR 1510, input set_time_limit (5000); the 5000 is the seconds. so the larger the number, the longer the maximum execution time will be.So at line 1509 it should look like this...

    set_time_limit (5000);
    curl_exec( $handle );
    $theHeaders = WP_Http::processHeaders( $this->headers, $url );
    $theBody = $this->body;
    $bytes_written_total = $this->bytes_written_total;

Max Execution Time exceeded error while importing Wordpress Theme Unit Testing Data

If Nothing works, try it.

wp-includes > deprecated.php line number 3636; WordPress V: 4.8.2

function wp_get_http( $url, $file_path = false, $red = 1 ) { _deprecated_function( FUNCTION, '4.4.0', 'WP_Http' );

@set_time_limit( 60 );

if ( $red > 5 ) return false ………………….

change @set_time_limit( 1260 );

It's work for me

Need Your Help

Error after segue to Storyboard Reference

ios objective-c iphone swift uistoryboardsegue

I segue from one Storyboard where the View Controller is written in Objective C to another Storyboard where the View Controllers is written in Swift 2 and it goes through fine.

How to do annotation in map with onetomany relationship?

java hibernate

Actually I need to do annotation for this map tag.kindly help me to do.I'm new to this annotation.