WordPress.org

Ready to get started?Download WordPress

Forums

WordPress MU Domain Mapping
[resolved] Warning creating default object from empty value (8 posts)

  1. gdelwo
    Member
    Posted 1 year ago #

    My error:
    Warning: Creating default object from empty value in C:\xampp\htdocs\wp-content\mu-plugins\domain_mapping.php on line 214

    anybody have experience resolving this issue with domain mapping plugin???? Thanks!

    http://wordpress.org/extend/plugins/wordpress-mu-domain-mapping/

  2. simonhayre
    Member
    Posted 1 year ago #

    There is a warning on line 214 of domain_mapping.php. two ways to fix it...

    1. in you wp_config.php file, add the following:
    ini_set('error_reporting', E_ALL);
    this will stop warnings from being displayed.

    2. edit the file C:\xampp\htdocs\wp-content\mu-plugins\domain_mapping.php
    amend to the following:

    function dm_edit_domain( $row = false ) {
    	if ( is_object( $row ) ) {
    		echo "<h3>" . __( 'Edit Domain', 'wordpress-mu-domain-mapping' ) . "</h3>";
    	}  else {
    		echo "<h3>" . __( 'New Domain', 'wordpress-mu-domain-mapping' ) . "</h3>";
    		$row->blog_id = '';
    		$row->domain = '';
    		$_POST[ 'domain' ] = '';
    		$row->active = 1;
    	}
    function dm_edit_domain( $row = false ) {
    	if ( is_object( $row ) ) {
    		echo "<h3>" . __( 'Edit Domain', 'wordpress-mu-domain-mapping' ) . "</h3>";
    	}  else {
    		echo "<h3>" . __( 'New Domain', 'wordpress-mu-domain-mapping' ) . "</h3>";
    		$row = new stdClass();//FIX
    		$row->blog_id = '';
    		$row->domain = '';
    		$_POST[ 'domain' ] = '';
    		$row->active = 1;
    	}
  3. Ron Rennick
    MultiSite Guru
    Plugin Author

    Posted 1 year ago #

  4. Ron Rennick
    MultiSite Guru
    Plugin Author

    Posted 1 year ago #

    @gdelwo - download the development version from the developer's tab on the plugin page.

  5. gdelwo
    Member
    Posted 1 year ago #

    worked. Thanks!!!!

  6. tinus2
    Member
    Posted 1 year ago #

    [wrong train of thought]

  7. chaos1
    Member
    Posted 1 year ago #

    I get the same issue thanks Ron.

  8. Ron Rennick
    MultiSite Guru
    Plugin Author

    Posted 1 year ago #

    @chaos1 - did you get the development version (my post above)?

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic