Title: PHP warnings with WordPress 4.0
Last modified: August 22, 2016

---

# PHP warnings with WordPress 4.0

 *  [Rene Hermenau](https://wordpress.org/support/users/renehermi/)
 * (@renehermi)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/php-warnings-with-wordpress-40/)
 * This should be fixed, when WP 4.0 is released:
 *     ```
       Strict Standards: Redefining already defined constructor for class WXR_Parser_Regex in /var/www/website/htdocs/dev/wp-content/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 /var/www/website/htdocs/dev/wp-content/plugins/wordpress-importer/wordpress-importer.php on line 38
       ```
   
 * [https://wordpress.org/plugins/wordpress-importer/](https://wordpress.org/plugins/wordpress-importer/)

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

 *  [golderweb](https://wordpress.org/support/users/golderweb/)
 * (@golderweb)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/php-warnings-with-wordpress-40/#post-5254734)
 * For the first Error I suppose that swapping the order of the PHP5 and the old
   constructor in class WXR_Parser_Regex will help. (Maybe the old one could be 
   removed if PHP4.x isn’t supported anymore with this plugin.)
    parsers.php – Line
   396 and following would be
 *     ```
       class WXR_Parser_Regex {
       	var $authors = array();
       	var $posts = array();
       	var $categories = array();
       	var $tags = array();
       	var $terms = array();
       	var $base_url = '';
   
       	function __construct() {
       		$this->has_gzip = is_callable( 'gzopen' );
       	}
   
       	function WXR_Parser_Regex() {
       		$this->__construct();
       	}
       ```
   
 * For the second Error see [my reply this topic](http://wordpress.org/support/topic/got-php-warning-of-type-strict-standards?replies=2q#post-5977682).
 *  Thread Starter [Rene Hermenau](https://wordpress.org/support/users/renehermi/)
 * (@renehermi)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/php-warnings-with-wordpress-40/#post-5254735)
 * Its easier. This error is already solved, but the patch isnt merged yet:
    [https://core.trac.wordpress.org/ticket/24373](https://core.trac.wordpress.org/ticket/24373)
 *  [sem101](https://wordpress.org/support/users/sem101/)
 * (@sem101)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/php-warnings-with-wordpress-40/#post-5254765)
 * I’m getting this with debug on…
 *     ```
       Strict Standards: Redefining already defined constructor for class WXR_Parser_Regex in /Users/developer/Dropbox/Sandbox/public_html/branches/tags/4.0.0/wp-content/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 /Users/developer/Dropbox/Sandbox/public_html/branches/tags/4.0.0/wp-content/plugins/wordpress-importer/wordpress-importer.php on line 38
   
       Warning: Cannot modify header information - headers already sent by (output started at /Users/developer/Dropbox/Sandbox/public_html/branches/tags/4.0.0/wp-content/plugins/wordpress-importer/parsers.php:408) in /Users/developer/Dropbox/Sandbox/public_html/branches/tags/4.0.0/wp-includes/option.php on line 750
   
       Warning: Cannot modify header information - headers already sent by (output started at /Users/developer/Dropbox/Sandbox/public_html/branches/tags/4.0.0/wp-content/plugins/wordpress-importer/parsers.php:408) in /Users/developer/Dropbox/Sandbox/public_html/branches/tags/4.0.0/wp-includes/option.php on line 751
       ```
   
 * WP 4.0
    PHP 5.5.10 MySQL 5.5.34
 *  [manuelrc](https://wordpress.org/support/users/manuelrc/)
 * (@manuelrc)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/php-warnings-with-wordpress-40/#post-5254798)
 * [@rene](https://wordpress.org/support/users/rene/) How can I merge this patch?
 *  Thread Starter [Rene Hermenau](https://wordpress.org/support/users/renehermi/)
 * (@renehermi)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/php-warnings-with-wordpress-40/#post-5254799)
 * [@manuelrc](https://wordpress.org/support/users/manuelrc/) see here [https://core.trac.wordpress.org/attachment/ticket/24373/24373.diff](https://core.trac.wordpress.org/attachment/ticket/24373/24373.diff)
 * and do the changes manually in the php files. This are not much

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

The topic ‘PHP warnings with WordPress 4.0’ 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/)

## Tags

 * [wordpress 4.0](https://wordpress.org/support/topic-tag/wordpress-4-0/)

 * 5 replies
 * 4 participants
 * Last reply from: [Rene Hermenau](https://wordpress.org/support/users/renehermi/)
 * Last activity: [11 years, 8 months ago](https://wordpress.org/support/topic/php-warnings-with-wordpress-40/#post-5254799)
 * Status: not resolved