From: Steve Sutton Date: Wed, 15 Jul 2015 20:32:17 +0000 (-0400) Subject: cannot active curl option for followlocation X-Git-Tag: v0.0.2^2~29 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/?a=commitdiff_plain;h=9fbd241d79768265dfd67b6165e10f15d8186ad8;p=WP-Plugins%2Fglm-wp-importer.git cannot active curl option for followlocation --- diff --git a/controllers/Import.php b/controllers/Import.php index 9f29372..bdd801d 100644 --- a/controllers/Import.php +++ b/controllers/Import.php @@ -348,7 +348,7 @@ $ch = curl_init($fileUrl); curl_setopt($ch, CURLOPT_TIMEOUT, 50); curl_setopt($ch, CURLOPT_FILE, $fp); - curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true); + //curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true); $imgData = curl_exec($ch); $httpCode = curl_getinfo($ch); curl_close($ch); @@ -698,10 +698,12 @@ } switch($step) { case 0: + //$this->post = array(); + //$this->_storePost(); + //echo '
'.print_r(get_option(GLM_WP_IMPORT_POST_OPTION), true).'
'; $this->_greet(); $this->_readOptions(); echo '

Begin Import

'; - echo '

Part 2

'; break; case 1: $numPagesImported = $this->_import();