Viewing 7 replies - 1 through 7 (of 7 total)
  • 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;
    	}

    Plugin Author Ron Rennick

    (@wpmuguru)

    Plugin Author Ron Rennick

    (@wpmuguru)

    @gdelwo – download the development version from the developer’s tab on the plugin page.

    Thread Starter gdelwo

    (@gdelwo)

    worked. Thanks!!!!

    [wrong train of thought]

    I get the same issue thanks Ron.

    Plugin Author Ron Rennick

    (@wpmuguru)

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

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘[Plugin: WordPress MU Domain Mapping] Warning creating default object from empty value’ is closed to new replies.