Title: Please Fix PHP Warning
Last modified: August 30, 2016

---

# Please Fix PHP Warning

 *  [prionkor](https://wordpress.org/support/users/prionkor/)
 * (@prionkor)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/please-fix-php-warning/)
 * I am developing with this plugin enabled and getting two warnings
 * `Strict Standards: Redefining already defined constructor for class WXR_Parser_Regex
   in ...plugins\wordpress-importer\parsers.php on line 408`
 * `Strict Standards: Declaration of WP_Import::bump_request_timeout() should be
   compatible with WP_Importer::bump_request_timeout($val) in ...\wp-content\plugins\
   wordpress-importer\wordpress-importer.php on line 38`
 * Please fix.
 * Thanks
 * [https://wordpress.org/plugins/wordpress-importer/](https://wordpress.org/plugins/wordpress-importer/)

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

 *  [tomotomobile](https://wordpress.org/support/users/tomotomobile/)
 * (@tomotomobile)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/please-fix-php-warning/#post-6589135)
 * 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.
 * [http://codex.wordpress.org/Version_4.3#Highlights](http://codex.wordpress.org/Version_4.3#Highlights)
 *  [rawfishbad](https://wordpress.org/support/users/rawfishbad/)
 * (@rawfishbad)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/please-fix-php-warning/#post-6589155)
 * I got the exact same warnings every single time I tried to install the plugin.
   Fixes from tomotomobile got rid of the warnings but imports still fail. every.
   single.time. No errors, nothing. Just timed out with a blank gray dashboard screen.
   I’m trying to migrate a wp.com site and have been for the past several hours 
   but everything fails.
 * Help?
 * Is there any alternative to this plugin?
 *  Thread Starter [prionkor](https://wordpress.org/support/users/prionkor/)
 * (@prionkor)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/please-fix-php-warning/#post-6589156)
 * [@tomotomobile](https://wordpress.org/support/users/tomotomobile/)
 * I think those php4 style constructor remains there for backword compat. Once 
   you add a `__construct()` in your class php7 should ignore the warning if there
   is php4 style constructor.
 * I wasn’t running the plugin in php7 so the strict standard warning has nothing
   to do with php7.

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

The topic ‘Please Fix PHP Warning’ is closed to new replies.

 * ![](https://ps.w.org/wordpress-importer/assets/icon.svg?rev=2791650)
 * [WordPress Importer](https://wordpress.org/plugins/wordpress-importer/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wordpress-importer/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wordpress-importer/)
 * [Active Topics](https://wordpress.org/support/plugin/wordpress-importer/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wordpress-importer/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wordpress-importer/reviews/)

 * 3 replies
 * 3 participants
 * Last reply from: [prionkor](https://wordpress.org/support/users/prionkor/)
 * Last activity: [10 years, 8 months ago](https://wordpress.org/support/topic/please-fix-php-warning/#post-6589156)
 * Status: not resolved