Viewing 3 replies - 1 through 3 (of 3 total)
  • Moderator James Huff

    (@macmanx)

    Would you please quote the errors you saw? I recently had no trouble with the importer under PHP 5.4.

    Thread Starter ranacseruet

    (@ranacseruet)

    In PHP 5.5, whenver I land on the import page, it shows the following error:

    Strict Standards: Declaration of WP_Import::bump_request_timeout() should be compatible with WP_Importer::bump_request_timeout($val) in /usr/share/nginx/html/dev/codesamplez/web/app/plugins/wordpress-importer/wordpress-importer.php on line 38

    I also checked on 5.4, and got error, but don’t remember the error message, should be something similar.

    Moderator James Huff

    (@macmanx)

    Ok, that’s actually more of a warning than an error.

    Strict standard really aren’t necessary unless you’re trying to debug something that’s actually broken. More often than not, Strict Standards simply catches things that exist the way they are just so they will continue to work in lower PHP versions (like 5.2.4 and higher), but could be done differently if you’re only supporting the version of PHP currently in use, not necessarily something that is actually broken.

    There are a variety of ways to disable the errors.

    The best way is to find this in your php.ini file:

    error_reporting = E_ALL

    and change that to:

    error_reporting = E_ALL & ~E_STRICT

    Alternatively, you could add this to your .htaccess file:

    php_value error_reporting 30711

    They look weird, but both methods disable Strict Standards errors will leaving other errors operational.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Not Compatible With PHP 5.4 And PHP 5.5’ is closed to new replies.