• This plugin throws errors in debug mode. The following changes don’t fix any of the other issues folks report here:

    File: wordpress-importer
    Line: 1110

    Change:

    function bump_request_timeout() {
        return 60;
    }

    to:

    function bump_request_timeout( $val = 60 ) {
        return $val;
    }

    File: parsers.php
    Line: 404

    Comment out the ‘WRX_Parser_Regex` function:

    /*function WXR_Parser_Regex() {
        $this->__construct();
    }*/

    These changes will make PHP happy in strict mode, in any case.

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

Viewing 2 replies - 1 through 2 (of 2 total)
  • Yeah, these error have been there for years. Are these ever going to be fixed?

    Fix your code please.

    /wp-content/plugins/wordpress-importer/parsers.php:404
    Comment out

    //	function WXR_Parser_Regex() {
    //		$this->__construct();
    //	}

    /wp-content/plugins/wordpress-importer/wordpress-importer.php:66
    Comment out
    // function WP_Import() { /* nothing */ }

    /wp-content/plugins/wordpress-importer/wordpress-importer.php:1109
    Fix it

    function bump_request_timeout($val) {

    See also:

    PHP7 is slated for release later this year. One of the changes is that PHP4 style constructors are deprecated. In order to prepare WordPress to support PHP7, these constructors have been deprecated in WordPress core.

    https://codex.www.ads-software.com/Version_4.3#Highlights

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Fixes for some PHP warnings’ is closed to new replies.