• Hi,

    There is an error with the plugin when activated with DB_DEBUG mode on.
    Currently I’m using WAMP on Win7 with latest version of WordPress.

    Here is a copy of my error log file:

    ——————————————–

    [25-Oct-2015 11:15:11 UTC] PHP Strict standards: Redefining already defined constructor for class WXR_Parser_Regex in D:\wamp\www\wordpress-contribute\wp-content\plugins\wordpress-importer\parsers.php on line 408

    [25-Oct-2015 11:15:11 UTC] PHP Stack trace:

    [25-Oct-2015 11:15:11 UTC] PHP 1. {main}() D:\wamp\www\wordpress-contribute\wp-admin\import.php:0

    [25-Oct-2015 11:15:11 UTC] PHP 2. require_once() D:\wamp\www\wordpress-contribute\wp-admin\import.php:12

    [25-Oct-2015 11:15:11 UTC] PHP 3. require_once() D:\wamp\www\wordpress-contribute\wp-admin\admin.php:31

    [25-Oct-2015 11:15:11 UTC] PHP 4. require_once() D:\wamp\www\wordpress-contribute\wp-load.php:37

    [25-Oct-2015 11:15:11 UTC] PHP 5. require_once() D:\wamp\www\wordpress-contribute\wp-config.php:89

    [25-Oct-2015 11:15:11 UTC] PHP 6. include_once() D:\wamp\www\wordpress-contribute\wp-settings.php:215

    [25-Oct-2015 11:15:11 UTC] PHP Strict standards: Declaration of WP_Import::bump_request_timeout() should be compatible with WP_Importer::bump_request_timeout($val) in D:\wamp\www\wordpress-contribute\wp-content\plugins\wordpress-importer\wordpress-importer.php on line 38

    [25-Oct-2015 11:15:11 UTC] PHP Stack trace:

    [25-Oct-2015 11:15:11 UTC] PHP 1. {main}() D:\wamp\www\wordpress-contribute\wp-admin\import.php:0

    [25-Oct-2015 11:15:11 UTC] PHP 2. require_once() D:\wamp\www\wordpress-contribute\wp-admin\import.php:12

    [25-Oct-2015 11:15:11 UTC] PHP 3. require_once() D:\wamp\www\wordpress-contribute\wp-admin\admin.php:31

    [25-Oct-2015 11:15:11 UTC] PHP 4. require_once() D:\wamp\www\wordpress-contribute\wp-load.php:37

    [25-Oct-2015 11:15:11 UTC] PHP 5. require_once() D:\wamp\www\wordpress-contribute\wp-config.php:89

    [25-Oct-2015 11:15:11 UTC] PHP 6. include_once() D:\wamp\www\wordpress-contribute\wp-settings.php:215

    [25-Oct-2015 11:15:11 UTC] PHP Warning: Cannot modify header information – headers already sent by (output started at D:\wamp\www\wordpress-contribute\wp-content\plugins\wordpress-importer\wordpress-importer.php:38) in D:\wamp\www\wordpress-contribute\wp-includes\option.php on line 787

    [25-Oct-2015 11:15:11 UTC] PHP Stack trace:

    [25-Oct-2015 11:15:11 UTC] PHP 1. {main}() D:\wamp\www\wordpress-contribute\wp-admin\import.php:0

    [25-Oct-2015 11:15:11 UTC] PHP 2. require_once() D:\wamp\www\wordpress-contribute\wp-admin\import.php:12

    [25-Oct-2015 11:15:11 UTC] PHP 3. require_once() D:\wamp\www\wordpress-contribute\wp-admin\admin.php:301

    [25-Oct-2015 11:15:11 UTC] PHP 4. wp_user_settings() D:\wamp\www\wordpress-contribute\wp-admin\admin-header.php:58

    [25-Oct-2015 11:15:11 UTC] PHP 5. setcookie() D:\wamp\www\wordpress-contribute\wp-includes\option.php:787

    [25-Oct-2015 11:15:11 UTC] PHP Warning: Cannot modify header information – headers already sent by (output started at D:\wamp\www\wordpress-contribute\wp-content\plugins\wordpress-importer\wordpress-importer.php:38) in D:\wamp\www\wordpress-contribute\wp-includes\option.php on line 788

    [25-Oct-2015 11:15:11 UTC] PHP Stack trace:

    [25-Oct-2015 11:15:11 UTC] PHP 1. {main}() D:\wamp\www\wordpress-contribute\wp-admin\import.php:0

    [25-Oct-2015 11:15:11 UTC] PHP 2. require_once() D:\wamp\www\wordpress-contribute\wp-admin\import.php:12

    [25-Oct-2015 11:15:11 UTC] PHP 3. require_once() D:\wamp\www\wordpress-contribute\wp-admin\admin.php:301

    [25-Oct-2015 11:15:11 UTC] PHP 4. wp_user_settings() D:\wamp\www\wordpress-contribute\wp-admin\admin-header.php:58

    [25-Oct-2015 11:15:11 UTC] PHP 5. setcookie() D:\wamp\www\wordpress-contribute\wp-includes\option.php:788

    https://www.ads-software.com/plugins/wordpress-importer/

Viewing 9 replies - 1 through 9 (of 9 total)
  • Same issue here. Have you found a solution? It seems to import correctly, at least with the one file I needed to import.

    To fix this issue the following code needs to be updated in the plugin folder:

    1. Comment out the old constructor function (lines 404 to 406) in parsers.php
    2. On Line 1110 in wordpress-importer.php replace this line: function bump_request_timeout( $val ) { with this line function bump_request_timeout( $val ) {

    The double constructor is there because WordPress is currently providing backwards support for users that are running WordPress on servers with older versions of php.

    Hope that helps anyone reading this post. If the plugin authors could make these changes when they get the chance that would be great. Cheers

    Sunny

    Hi Sunny
    Aren’t both lines identical??

    replace:
    function bump_request_timeout( $val ) {

    with:
    function bump_request_timeout( $val ) {

    Cheers

    Hi Kristian,
    Typo. That should be:

    On Line 1110 in wordpress-importer.php

    Replace: function bump_request_timeout() {
    With: function bump_request_timeout( $val ) {

    Cheers

    Sunny

    OKI, will try and get back.

    Thank you @sunny Johal!

    @sunny Johal, Thanks for your fix.

    Why hasn’t this been fixed? It’s an easy fix. Is there a public git repo for this somewhere so I can contribute the simple fixes to it?

    Is this the new unfinished version?
    https://github.com/humanmade/WordPress-Importer

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘importer raises errors with WP_DEBUG mode on’ is closed to new replies.