WordPress WAMP Import XML File Errors
Posted by: funkyfrank (81.17.20.---)
Date: August 07, 2015 11:10AM

I am trying to import an XML file alongside media attachments/images (the test data from wptest.com) into a WP theme I am working on but I am getting following errors:

[07-Aug-2015 08:50:01 UTC] PHP Strict standards:  Redefining already defined constructor for class WXR_Parser_Regex in D:\WEB PROJECTS\WWW\WP\river\wp-content\plugins\wordpress-importer\parsers.php on line 408

[07-Aug-2015 08:50:01 UTC] PHP Stack trace:

[07-Aug-2015 08:50:01 UTC] PHP   1. {main}() D:\WEB PROJECTS\WWW\WP\river\wp-admin\import.php:0

[07-Aug-2015 08:50:01 UTC] PHP   2. require_once() D:\WEB PROJECTS\WWW\WP\river\wp-admin\import.php:12

[07-Aug-2015 08:50:01 UTC] PHP   3. require_once() D:\WEB PROJECTS\WWW\WP\river\wp-admin\admin.php:31

[07-Aug-2015 08:50:01 UTC] PHP   4. require_once() D:\WEB PROJECTS\WWW\WP\river\wp-load.php:37

[07-Aug-2015 08:50:01 UTC] PHP   5. require_once() D:\WEB PROJECTS\WWW\WP\river\wp-config.php:80

[07-Aug-2015 08:50:01 UTC] PHP   6. include_once() D:\WEB PROJECTS\WWW\WP\river\wp-settings.php:215

[07-Aug-2015 08:50:01 UTC] PHP Strict standards:  Declaration of WP_Import::bump_request_timeout() should be compatible with WP_Importer::bump_request_timeout($val) in D:\WEB PROJECTS\WWW\WP\river\wp-content\plugins\wordpress-importer\wordpress-importer.php on line 38

[07-Aug-2015 08:50:01 UTC] PHP Stack trace:

[07-Aug-2015 08:50:01 UTC] PHP   1. {main}() D:\WEB PROJECTS\WWW\WP\river\wp-admin\import.php:0

[07-Aug-2015 08:50:01 UTC] PHP   2. require_once() D:\WEB PROJECTS\WWW\WP\river\wp-admin\import.php:12

[07-Aug-2015 08:50:01 UTC] PHP   3. require_once() D:\WEB PROJECTS\WWW\WP\river\wp-admin\admin.php:31

[07-Aug-2015 08:50:01 UTC] PHP   4. require_once() D:\WEB PROJECTS\WWW\WP\river\wp-load.php:37

[07-Aug-2015 08:50:01 UTC] PHP   5. require_once() D:\WEB PROJECTS\WWW\WP\river\wp-config.php:80

[07-Aug-2015 08:50:01 UTC] PHP   6. include_once() D:\WEB PROJECTS\WWW\WP\river\wp-settings.php:215

[07-Aug-2015 08:50:06 UTC] PHP Strict standards:  Redefining already defined constructor for class WXR_Parser_Regex in D:\WEB PROJECTS\WWW\WP\river\wp-content\plugins\wordpress-importer\parsers.php on line 408

[07-Aug-2015 08:50:06 UTC] PHP Stack trace:

[07-Aug-2015 08:50:06 UTC] PHP   1. {main}() D:\WEB PROJECTS\WWW\WP\river\wp-admin\admin.php:0

[07-Aug-2015 08:50:06 UTC] PHP   2. require_once() D:\WEB PROJECTS\WWW\WP\river\wp-admin\admin.php:31

[07-Aug-2015 08:50:06 UTC] PHP   3. require_once() D:\WEB PROJECTS\WWW\WP\river\wp-load.php:37

[07-Aug-2015 08:50:06 UTC] PHP   4. require_once() D:\WEB PROJECTS\WWW\WP\river\wp-config.php:80

[07-Aug-2015 08:50:06 UTC] PHP   5. include_once() D:\WEB PROJECTS\WWW\WP\river\wp-settings.php:215

[07-Aug-2015 08:50:06 UTC] PHP Strict standards:  Declaration of WP_Import::bump_request_timeout() should be compatible with WP_Importer::bump_request_timeout($val) in D:\WEB PROJECTS\WWW\WP\river\wp-content\plugins\wordpress-importer\wordpress-importer.php on line 38

[07-Aug-2015 08:50:06 UTC] PHP Stack trace:

[07-Aug-2015 08:50:06 UTC] PHP   1. {main}() D:\WEB PROJECTS\WWW\WP\river\wp-admin\admin.php:0

[07-Aug-2015 08:50:06 UTC] PHP   2. require_once() D:\WEB PROJECTS\WWW\WP\river\wp-admin\admin.php:31

[07-Aug-2015 08:50:06 UTC] PHP   3. require_once() D:\WEB PROJECTS\WWW\WP\river\wp-load.php:37

[07-Aug-2015 08:50:06 UTC] PHP   4. require_once() D:\WEB PROJECTS\WWW\WP\river\wp-config.php:80

[07-Aug-2015 08:50:06 UTC] PHP   5. include_once() D:\WEB PROJECTS\WWW\WP\river\wp-settings.php:215

[07-Aug-2015 08:50:33 UTC] PHP Strict standards:  Redefining already defined constructor for class WXR_Parser_Regex in D:\WEB PROJECTS\WWW\WP\river\wp-content\plugins\wordpress-importer\parsers.php on line 408

[07-Aug-2015 08:50:33 UTC] PHP Stack trace:

[07-Aug-2015 08:50:33 UTC] PHP   1. {main}() D:\WEB PROJECTS\WWW\WP\river\wp-admin\admin.php:0

[07-Aug-2015 08:50:33 UTC] PHP   2. require_once() D:\WEB PROJECTS\WWW\WP\river\wp-admin\admin.php:31

[07-Aug-2015 08:50:33 UTC] PHP   3. require_once() D:\WEB PROJECTS\WWW\WP\river\wp-load.php:37

[07-Aug-2015 08:50:33 UTC] PHP   4. require_once() D:\WEB PROJECTS\WWW\WP\river\wp-config.php:80

[07-Aug-2015 08:50:33 UTC] PHP   5. include_once() D:\WEB PROJECTS\WWW\WP\river\wp-settings.php:215

[07-Aug-2015 08:50:33 UTC] PHP Strict standards:  Declaration of WP_Import::bump_request_timeout() should be compatible with WP_Importer::bump_request_timeout($val) in D:\WEB PROJECTS\WWW\WP\river\wp-content\plugins\wordpress-importer\wordpress-importer.php on line 38

[07-Aug-2015 08:50:33 UTC] PHP Stack trace:

[07-Aug-2015 08:50:33 UTC] PHP   1. {main}() D:\WEB PROJECTS\WWW\WP\river\wp-admin\admin.php:0

[07-Aug-2015 08:50:33 UTC] PHP   2. require_once() D:\WEB PROJECTS\WWW\WP\river\wp-admin\admin.php:31

[07-Aug-2015 08:50:33 UTC] PHP   3. require_once() D:\WEB PROJECTS\WWW\WP\river\wp-load.php:37

[07-Aug-2015 08:50:33 UTC] PHP   4. require_once() D:\WEB PROJECTS\WWW\WP\river\wp-config.php:80

[07-Aug-2015 08:50:33 UTC] PHP   5. include_once() D:\WEB PROJECTS\WWW\WP\river\wp-settings.php:215

[07-Aug-2015 08:50:39 UTC] PHP Strict standards:  Redefining already defined constructor for class WXR_Parser_Regex in D:\WEB PROJECTS\WWW\WP\river\wp-content\plugins\wordpress-importer\parsers.php on line 408
[07-Aug-2015 08:50:39 UTC] PHP Stack trace:

[07-Aug-2015 08:50:39 UTC] PHP   1. {main}() D:\WEB PROJECTS\WWW\WP\river\wp-admin\admin.php:0

[07-Aug-2015 08:50:39 UTC] PHP   2. require_once() D:\WEB PROJECTS\WWW\WP\river\wp-admin\admin.php:31

[07-Aug-2015 08:50:39 UTC] PHP   3. require_once() D:\WEB PROJECTS\WWW\WP\river\wp-load.php:37

[07-Aug-2015 08:50:39 UTC] PHP   4. require_once() D:\WEB PROJECTS\WWW\WP\river\wp-config.php:80

[07-Aug-2015 08:50:39 UTC] PHP   5. include_once() D:\WEB PROJECTS\WWW\WP\river\wp-settings.php:215

[07-Aug-2015 08:50:39 UTC] PHP Strict standards:  Declaration of WP_Import::bump_request_timeout() should be compatible with WP_Importer::bump_request_timeout($val) in D:\WEB PROJECTS\WWW\WP\river\wp-content\plugins\wordpress-importer\wordpress-importer.php on line 38

[07-Aug-2015 08:50:39 UTC] PHP Stack trace:

[07-Aug-2015 08:50:39 UTC] PHP   1. {main}() D:\WEB PROJECTS\WWW\WP\river\wp-admin\admin.php:0

[07-Aug-2015 08:50:39 UTC] PHP   2. require_once() D:\WEB PROJECTS\WWW\WP\river\wp-admin\admin.php:31

[07-Aug-2015 08:50:39 UTC] PHP   3. require_once() D:\WEB PROJECTS\WWW\WP\river\wp-load.php:37

[07-Aug-2015 08:50:39 UTC] PHP   4. require_once() D:\WEB PROJECTS\WWW\WP\river\wp-config.php:80

[07-Aug-2015 08:50:39 UTC] PHP   5. include_once() D:\WEB PROJECTS\WWW\WP\river\wp-settings.php:215

[07-Aug-2015 08:51:42 UTC] PHP Fatal error:  Maximum execution time of 60 seconds exceeded in D:\WEB PROJECTS\WWW\WP\river\wp-includes\class-http.php on line 1512

[07-Aug-2015 08:51:42 UTC] PHP Stack trace:

[07-Aug-2015 08:51:42 UTC] PHP   1. {main}() D:\WEB PROJECTS\WWW\WP\river\wp-admin\admin.php:0

[07-Aug-2015 08:51:42 UTC] PHP   2. call_user_func:{D:\WEB PROJECTS\WWW\WP\river\wp-admin\admin.php:311}() D:\WEB PROJECTS\WWW\WP\river\wp-admin\admin.php:311

[07-Aug-2015 08:51:42 UTC] PHP   3. WP_Import->dispatch() D:\WEB PROJECTS\WWW\WP\river\wp-admin\admin.php:311

[07-Aug-2015 08:51:42 UTC] PHP   4. WP_Import->import() D:\WEB PROJECTS\WWW\WP\river\wp-content\plugins\wordpress-importer\wordpress-importer.php:92

[07-Aug-2015 08:51:42 UTC] PHP   5. WP_Import->process_posts() D:\WEB PROJECTS\WWW\WP\river\wp-content\plugins\wordpress-importer\wordpress-importer.php:116

[07-Aug-2015 08:51:42 UTC] PHP   6. WP_Import->process_attachment() D:\WEB PROJECTS\WWW\WP\river\wp-content\plugins\wordpress-importer\wordpress-importer.php:611

[07-Aug-2015 08:51:42 UTC] PHP   7. WP_Import->fetch_remote_file() D:\WEB PROJECTS\WWW\WP\river\wp-content\plugins\wordpress-importer\wordpress-importer.php:859

[07-Aug-2015 08:51:42 UTC] PHP   8. wp_get_http() D:\WEB PROJECTS\WWW\WP\river\wp-content\plugins\wordpress-importer\wordpress-importer.php:905

[07-Aug-2015 08:51:42 UTC] PHP   9. wp_safe_remote_request() D:\WEB PROJECTS\WWW\WP\river\wp-includes\functions.php:589

[07-Aug-2015 08:51:42 UTC] PHP  10. WP_Http->request() D:\WEB PROJECTS\WWW\WP\river\wp-includes\http.php:49

[07-Aug-2015 08:51:42 UTC] PHP  11. WP_Http->_dispatch_request() D:\WEB PROJECTS\WWW\WP\river\wp-includes\class-http.php:275

[07-Aug-2015 08:51:42 UTC] PHP  12. WP_Http_Curl->request() D:\WEB PROJECTS\WWW\WP\river\wp-includes\class-http.php:359

This post theme-fusion.com/knowledgebase/what-to-do-if-xml-import-fails/ suggest to check the PHP settings.

This post tells me where the .ini file is secure.php.net/manual/en/configuration.file.php however with WAMP there are two .ini files, one php.ini and one called phpForApache.ini.

Which one do I need to edit to get the recommended PHP configuration limits being:

1. max_execution_time 180

2. memory_limit 128M

3. post_max_size 32M

4. upload_max_filesize 32M

I compared both file contents to each other and they are identical, so not sure where to change settings to achieve recommended PHP config limits.

edit1
OK I changed recommended settings in phpForApache.ini and this plugin wordpress.org/plugins/wordpress-php-info/ now confirms the correct values. However the error messages are the same. I restarted all services also. Any clue?


IF, from looking the log, you know this error is due to something else PLEASE do let me know. I am using this plugin wordpress.org/plugins/wordpress-importer/ to import the XML file from wptest.io.

Thank you for any help!

Best Regards

Version of Operating system? Windows 7 Ultimate 64bit
Version of Wamp Server installed? 2.5 32bit
Version of Apache you are running? 2.4.9
Version of MySQL you are running? 5.6.17
Version of PHP you are running? 5.5.12
What colour is your WampManager icon? Green
Host file localhost 127.0.0.1

New to WAMP?
Read this please: [forum.wampserver.com]



Edited 3 time(s). Last edit at 08/07/2015 11:57AM by funkyfrank.

Options: ReplyQuote
Re: WordPress WAMP Import XML File Errors
Posted by: RiggsFolly (---.as43234.net)
Date: August 07, 2015 01:02PM

Hi Frank

Strict standards:

These errors are all due to code written for an older version of PHP, badly, being run in a newer version of PHP and are strictly only warning at this time.

Fatal error: Maximum execution - Fairly obvious

The simple quick and dirty way to stop the errors being generated is to turn off the reporting of Strict Standard infringments.



php.ini & phpForApache.ini

The \wamp\bin\php\php{version}\php.ini file is used only by the PHP CLI (Command Line Interface)

If you want to edit the php.ini file that is used by the Apache environment Always use the wampmanager menus i.e. wampmanager->PHP->php.ini as this ensures you are editing the correct file.



Now if you have a Virtual host defined for this project edit the httpd-vhost.conf and add these, just before the end tag.


    # E_ALL & ~E_STRICT
    php_admin_value error_reporting 30719

    php_value max_execution_time 180
    php_value memory_limit 128M
    php_value post_max_size 32M
    php_value max_upload_size 50M
    php_value upload_max_filesize 32M

    # You may also need to add this to stop errors appearing on the screen and messing up the app
    # errors will still be logged to the error log file.
    php_flag  display_errors Off

</VirtualHost>

Otherwise edit the php.ini (with wampmanager menus) find each parameter and change it there

Dont forget to restart Apache once the file is saved

---------------------------------------------------------------------------------------------
(Windows 10 Pro 64bit) (Wampserver 3.3.4 64bit) Aestan Tray Menu 3.2.5.4
<Apache versions MULTIPE> <PHP versions MULTIPLE> <MySQL Versions MULTIPLE>
<MariaDB versions MULTIPLE> <phpMyAdmin versions MULTIPLE> <MySQL Workbench 8.0.23>

Read The Manuals Apache -- MySQL -- PHP -- phpMyAdmin
Get your Apache/MySQL/mariaDB/PHP ADDONs here from the WAMPServer alternate Repo
-X-X-X- Backup your databases regularly Here is How dont regret it later! Yes even when developing -X-X-X-

Options: ReplyQuote
Re: WordPress WAMP Import XML File Errors
Posted by: funkyfrank (81.17.20.---)
Date: August 07, 2015 02:09PM

Thank you Riggs!

I have added the code to my vhost file and now get this error:

Fatal error: Maximum execution time of 60 seconds exceeded in D:\WEB PROJECTS\WWW\WP\sunshine\wp-includes\class-http.php on line 1512

Below is my complete vhost file:
# Virtual Hosts
#
# Required modules: mod_log_config

# If you want to maintain multiple domains/hostnames on your
# machine you can setup VirtualHost containers for them. Most configurations
# use only name-based virtual hosts so the server doesn't need to worry about
# IP addresses. This is indicated by the asterisks in the directives below.
#
# Please see the documentation at 
# <URL:[httpd.apache.org];
# for further details before you try to setup virtual hosts.
#
# You may use the command line option '-S' to verify your virtual host
# configuration.

#
# VirtualHost example:
# Almost any Apache directive may go into a VirtualHost container.
# The first VirtualHost section is used for all requests that do not
# match a ServerName or ServerAlias in any <VirtualHost> block.
#
 <VirtualHost *:80>
    DocumentRoot "c:/wamp/www"
    ServerName localhost
    ServerAlias localhost
    <Directory  "c:/wamp/www">
    	AllowOverride All
	Require local
	Require ip 192.168.188
    </Directory>
</VirtualHost>

<VirtualHost *:80>
    DocumentRoot "D:/WEB PROJECTS/WWW"
    ServerName workbench.webdev
    ServerAlias www.workbench.webdev
	
    ErrorLog "D:/WEB PROJECTS/WWW/Logs/workbench-apache.error.log"
    CustomLog "D:/WEB PROJECTS/WWW/Logs/workbench-apache.access.log" common	

    <Directory "D:/WEB PROJECTS/WWW">
	AllowOverride all
        Options Indexes FollowSymLinks

    	<IfDefine APACHE24>
    		Require local
    		Require ip 192.168.188
		</IfDefine>

		<IfDefine !APACHE24>
			Order Deny,Allow
				Deny from all
				Allow from 127.0.0.0/8 localhost ::1 192.168.188
		</IfDefine>

    </Directory>
	
	# E_ALL & ~E_STRICT
    php_admin_value error_reporting 30719

    php_value max_execution_time 180
    php_value memory_limit 128M
    php_value post_max_size 32M
    php_value max_upload_size 50M
    php_value upload_max_filesize 32M

    # You may also need to add this to stop errors appearing on the screen and messing up the app
    # errors will still be logged to the error log file.
    # php_flag  display_errors Off
	
	
	
	php_flag log_errors on
    php_flag display_errors on
    # php_value error_reporting 2147483647
    php_value error_log "D:/WEB PROJECTS/WWW/Logs/workbench-php.error.log"
</VirtualHost>

I have reverted the changes in the php.ini and phpForApache.ini files, had made a backup copy before touching those and restored that original copy.

edit
I also tried with
php_flag  display_errors Off
but that also throws the fatal error with the max execution time.

Here is the PHP error log:
[07-Aug-2015 11:51:19 UTC] PHP Fatal error:  Maximum execution time of 60 seconds exceeded in D:\WEB PROJECTS\WWW\WP\sunshine\wp-includes\class-http.php on line 1512

[07-Aug-2015 11:51:19 UTC] PHP Stack trace:

[07-Aug-2015 11:51:19 UTC] PHP   1. {main}() D:\WEB PROJECTS\WWW\WP\sunshine\wp-admin\admin.php:0

[07-Aug-2015 11:51:19 UTC] PHP   2. call_user_func:{D:\WEB PROJECTS\WWW\WP\sunshine\wp-admin\admin.php:311}() D:\WEB PROJECTS\WWW\WP\sunshine\wp-admin\admin.php:311

[07-Aug-2015 11:51:19 UTC] PHP   3. WP_Import->dispatch() D:\WEB PROJECTS\WWW\WP\sunshine\wp-admin\admin.php:311

[07-Aug-2015 11:51:19 UTC] PHP   4. WP_Import->import() D:\WEB PROJECTS\WWW\WP\sunshine\wp-content\plugins\wordpress-importer\wordpress-importer.php:92

[07-Aug-2015 11:51:19 UTC] PHP   5. WP_Import->process_posts() D:\WEB PROJECTS\WWW\WP\sunshine\wp-content\plugins\wordpress-importer\wordpress-importer.php:116

[07-Aug-2015 11:51:19 UTC] PHP   6. WP_Import->process_attachment() D:\WEB PROJECTS\WWW\WP\sunshine\wp-content\plugins\wordpress-importer\wordpress-importer.php:611

[07-Aug-2015 11:51:19 UTC] PHP   7. WP_Import->fetch_remote_file() D:\WEB PROJECTS\WWW\WP\sunshine\wp-content\plugins\wordpress-importer\wordpress-importer.php:859

[07-Aug-2015 11:51:19 UTC] PHP   8. wp_get_http() D:\WEB PROJECTS\WWW\WP\sunshine\wp-content\plugins\wordpress-importer\wordpress-importer.php:905

[07-Aug-2015 11:51:19 UTC] PHP   9. wp_safe_remote_request() D:\WEB PROJECTS\WWW\WP\sunshine\wp-includes\functions.php:589

[07-Aug-2015 11:51:19 UTC] PHP  10. WP_Http->request() D:\WEB PROJECTS\WWW\WP\sunshine\wp-includes\http.php:49

[07-Aug-2015 11:51:19 UTC] PHP  11. WP_Http->_dispatch_request() D:\WEB PROJECTS\WWW\WP\sunshine\wp-includes\class-http.php:275

[07-Aug-2015 11:51:19 UTC] PHP  12. WP_Http_Curl->request() D:\WEB PROJECTS\WWW\WP\sunshine\wp-includes\class-http.php:359

The WP php plugin mentioned above shows me these values though, value - local - master:

max_execution_time	180	120
max_file_uploads	20	20
max_input_nesting_level	64	64
max_input_time	60	60

So even though execution time to set above 60 seconds it still throws me the error. What about input_time? Shall I increase that?

Thank you for your help. My eyes are getting watery in a bad way, been getting this error the past 48 hours and been trying to get it sorted, tried all the things mentioned and researched the error on the PHP manual like you said last time. I am slowly but surly going to jump off the plank and..

Any ways.. thank you for any more help towards this.


smiling smiley

Version of Operating system? Windows 7 Ultimate 64bit
Version of Wamp Server installed? 2.5 32bit
Version of Apache you are running? 2.4.9
Version of MySQL you are running? 5.6.17
Version of PHP you are running? 5.5.12
What colour is your WampManager icon? Green
Host file localhost 127.0.0.1

New to WAMP?
Read this please: [forum.wampserver.com]



Edited 1 time(s). Last edit at 08/07/2015 02:28PM by funkyfrank.

Options: ReplyQuote
Re: WordPress WAMP Import XML File Errors
Posted by: Otomatic (Moderator)
Date: August 07, 2015 02:38PM

Hi,

Don't use path with space: D:/WEB PROJECTS/WWW

---------------------------------------------------------------
Documentation Apache - Documentation PHP - Documentation MySQL - Wampserver install files & addons

Options: ReplyQuote
Re: WordPress WAMP Import XML File Errors
Posted by: funkyfrank (81.17.20.---)
Date: August 07, 2015 04:05PM

[07-Aug-2015 13:49:37 UTC] PHP Fatal error:  Maximum execution time of 60 seconds exceeded in D:\WEBDEV\WWW\WP\moderntimes\wp-includes\class-http.php on line 1512

[07-Aug-2015 13:49:37 UTC] PHP Stack trace:

[07-Aug-2015 13:49:37 UTC] PHP   1. {main}() D:\WEBDEV\WWW\WP\moderntimes\wp-admin\admin.php:0

[07-Aug-2015 13:49:37 UTC] PHP   2. call_user_func:{D:\WEBDEV\WWW\WP\moderntimes\wp-admin\admin.php:311}() D:\WEBDEV\WWW\WP\moderntimes\wp-admin\admin.php:311

[07-Aug-2015 13:49:37 UTC] PHP   3. WP_Import->dispatch() D:\WEBDEV\WWW\WP\moderntimes\wp-admin\admin.php:311

[07-Aug-2015 13:49:37 UTC] PHP   4. WP_Import->import() D:\WEBDEV\WWW\WP\moderntimes\wp-content\plugins\wordpress-importer\wordpress-importer.php:92

[07-Aug-2015 13:49:37 UTC] PHP   5. WP_Import->process_posts() D:\WEBDEV\WWW\WP\moderntimes\wp-content\plugins\wordpress-importer\wordpress-importer.php:116

[07-Aug-2015 13:49:37 UTC] PHP   6. WP_Import->process_attachment() D:\WEBDEV\WWW\WP\moderntimes\wp-content\plugins\wordpress-importer\wordpress-importer.php:611

[07-Aug-2015 13:49:37 UTC] PHP   7. WP_Import->fetch_remote_file() D:\WEBDEV\WWW\WP\moderntimes\wp-content\plugins\wordpress-importer\wordpress-importer.php:859

[07-Aug-2015 13:49:37 UTC] PHP   8. wp_get_http() D:\WEBDEV\WWW\WP\moderntimes\wp-content\plugins\wordpress-importer\wordpress-importer.php:905

[07-Aug-2015 13:49:37 UTC] PHP   9. wp_safe_remote_request() D:\WEBDEV\WWW\WP\moderntimes\wp-includes\functions.php:589

[07-Aug-2015 13:49:37 UTC] PHP  10. WP_Http->request() D:\WEBDEV\WWW\WP\moderntimes\wp-includes\http.php:49

[07-Aug-2015 13:49:37 UTC] PHP  11. WP_Http->_dispatch_request() D:\WEBDEV\WWW\WP\moderntimes\wp-includes\class-http.php:275

[07-Aug-2015 13:49:37 UTC] PHP  12. WP_Http_Curl->request() D:\WEBDEV\WWW\WP\moderntimes\wp-includes\class-http.php:359

with

 <VirtualHost *:80>
    DocumentRoot "c:/wamp/www"
    ServerName localhost
    ServerAlias localhost
    <Directory  "c:/wamp/www">
    	AllowOverride All
	Require local
	Require ip 192.168.188
    </Directory>
</VirtualHost>

<VirtualHost *:80>
    DocumentRoot "D:/WEBDEV/WWW"
    ServerName workbench.webdev
    ServerAlias www.workbench.webdev
	
    ErrorLog "D:/WEBDEV/WWW/Logs/workbench-apache.error.log"
    CustomLog "D:/WEBDEV/WWW/Logs/workbench-apache.access.log" common	

    <Directory "D:/WEBDEV/WWW">
	AllowOverride all
        Options Indexes FollowSymLinks

    	<IfDefine APACHE24>
    		Require local
    		Require ip 192.168.188
		</IfDefine>

		<IfDefine !APACHE24>
			Order Deny,Allow
				Deny from all
				Allow from 127.0.0.0/8 localhost ::1 192.168.188
		</IfDefine>

    </Directory>
	
	# E_ALL & ~E_STRICT
    php_admin_value error_reporting 30719

    php_value max_execution_time 180
    php_value memory_limit 128M
    php_value post_max_size 32M
    php_value max_upload_size 50M
    php_value upload_max_filesize 32M

    # You may also need to add this to stop errors appearing on the screen and messing up the app
    # errors will still be logged to the error log file.
    php_flag  display_errors Off	
	
	php_flag log_errors on
    # php_flag display_errors on
    # php_value error_reporting 2147483647
    php_value error_log "D:/WEBDEV/WWW/Logs/workbench-php.error.log"
</VirtualHost>

Deleted WP folder. Used latest WP install. Also deleted WP db. Created new db with other name. New WP install with other name. No more spaces in path. Used Ccleaner to clear all cache, deleted files and so on.

What else can I do please?

Found this wordpress.org/support/topic/media-images-not-importing but have no clue where to add that code?

Going nuts slowly but surly. No this is no affront or anything towards teh VERY helpful people here, just saying that my motivation and enthusiasm for WP is shrinking by the second. Why the heck can none of the dev of this super great working plugin just change the code and make it work?? With 1M+ installs there is a responsibility behind it. Where is the GitHub page for it, I will release my anger there.

BTW also tired this on a live server, the error also show but it does import the data, posts, pages and media. Not so on the local install. Though the errors are the same. Httpd.exe is allowed incoming and outgoing connections and in the FW logs I can see that it connects.

Lord help me...

smiling smiley

Version of Operating system? Windows 7 Ultimate 64bit
Version of Wamp Server installed? 2.5 32bit
Version of Apache you are running? 2.4.9
Version of MySQL you are running? 5.6.17
Version of PHP you are running? 5.5.12
What colour is your WampManager icon? Green
Host file localhost 127.0.0.1

New to WAMP?
Read this please: [forum.wampserver.com]

Options: ReplyQuote
Re: WordPress WAMP Import XML File Errors
Posted by: RiggsFolly (---.as43234.net)
Date: August 07, 2015 04:22PM

I assume you are launching this site using `workbench.webdev` in the browser address bar?

---------------------------------------------------------------------------------------------
(Windows 10 Pro 64bit) (Wampserver 3.3.4 64bit) Aestan Tray Menu 3.2.5.4
<Apache versions MULTIPE> <PHP versions MULTIPLE> <MySQL Versions MULTIPLE>
<MariaDB versions MULTIPLE> <phpMyAdmin versions MULTIPLE> <MySQL Workbench 8.0.23>

Read The Manuals Apache -- MySQL -- PHP -- phpMyAdmin
Get your Apache/MySQL/mariaDB/PHP ADDONs here from the WAMPServer alternate Repo
-X-X-X- Backup your databases regularly Here is How dont regret it later! Yes even when developing -X-X-X-

Options: ReplyQuote
Re: WordPress WAMP Import XML File Errors
Posted by: funkyfrank (81.17.20.---)
Date: August 07, 2015 04:40PM

The site now runs under workbench.webdev/WP/moderntimes/.

I did manage, though months ago, to successfully import the XML file along all posts, media, pages and users from wptest.io data.

It did work just fine, not throwing errors, took time when it did load the data but did work without errors.

At the time that was also under workbench.webdev/WP/somename/ . Or it was workbench.dev but then the .dev error started coming up so I renamed .dev to .webdev.

edit
Just to mention, I also did not change anyting in the WAMP setup or configuration between then and the past couple of days. Keeps throwing me the error. Also does so on a live server, though there then the import gets done, despite the error messages. Shall I just sync the live server with local install perhaps? There is also no developer that can be reached about this. Not a single reply to any of the support threads in the past month. WP is surly taking the mickey here big time. Is such behaviour usual for WP plugins and things? Either pay for premium plugins or have no support whatsoever? Nice way to make money..

Any ways.. if any of you have more ideas.. I am all ears.. and tired..
winking smiley

Version of Operating system? Windows 7 Ultimate 64bit
Version of Wamp Server installed? 2.5 32bit
Version of Apache you are running? 2.4.9
Version of MySQL you are running? 5.6.17
Version of PHP you are running? 5.5.12
What colour is your WampManager icon? Green
Host file localhost 127.0.0.1

New to WAMP?
Read this please: [forum.wampserver.com]



Edited 1 time(s). Last edit at 08/07/2015 05:19PM by funkyfrank.

Options: ReplyQuote
Re: WordPress WAMP Import XML File Errors
Posted by: funkyfrank (81.17.20.---)
Date: August 08, 2015 11:52AM

Going to give this another shot with a fresh install of WAMP today and report back.

Fingers crossed.

Perseverance is the key.

Version of Operating system? Windows 7 Ultimate 64bit
Version of Wamp Server installed? 2.5 32bit
Version of Apache you are running? 2.4.9
Version of MySQL you are running? 5.6.17
Version of PHP you are running? 5.5.12
What colour is your WampManager icon? Green
Host file localhost 127.0.0.1

New to WAMP?
Read this please: [forum.wampserver.com]

Options: ReplyQuote
Re: WordPress WAMP Import XML File Errors
Posted by: funkyfrank (81.17.20.---)
Date: August 09, 2015 12:36PM

Just to let you know, tried this with XAMPP and the same exact errors come up. So I can rule out bad settings on my part from the WAMP install.

Will also confirm if I somehow get this to run via WAMP.

Found teh GitHub page for the wptest.io data and it mentions a method of importing via WP-CLI, will give that a shot with both WAMP and XAMPP and report back.

Thank you for your help.

Version of Operating system? Windows 7 Ultimate 64bit
Version of Wamp Server installed? 2.5 32bit
Version of Apache you are running? 2.4.9
Version of MySQL you are running? 5.6.17
Version of PHP you are running? 5.5.12
What colour is your WampManager icon? Green
Host file localhost 127.0.0.1

New to WAMP?
Read this please: [forum.wampserver.com]

Options: ReplyQuote
Re: WordPress WAMP Import XML File Errors
Posted by: RiggsFolly (---.as43234.net)
Date: August 11, 2015 12:04PM

Then you are, I would assume, doing something wrong but as I have no idea what you are actually using to do this I cannot help.

Its not strictly within the scope of this site anyway as its not really WAMPServer related its more WordPress related.

---------------------------------------------------------------------------------------------
(Windows 10 Pro 64bit) (Wampserver 3.3.4 64bit) Aestan Tray Menu 3.2.5.4
<Apache versions MULTIPE> <PHP versions MULTIPLE> <MySQL Versions MULTIPLE>
<MariaDB versions MULTIPLE> <phpMyAdmin versions MULTIPLE> <MySQL Workbench 8.0.23>

Read The Manuals Apache -- MySQL -- PHP -- phpMyAdmin
Get your Apache/MySQL/mariaDB/PHP ADDONs here from the WAMPServer alternate Repo
-X-X-X- Backup your databases regularly Here is How dont regret it later! Yes even when developing -X-X-X-

Options: ReplyQuote


Sorry, only registered users may post in this forum.