WPDB Global issue
-
Not sure if this is really an issue so but I wanted to bring it up as possibly something to discuss or have logged for anyone with the potential future issue – I was attempting to use this plugin on a local set up and kept getting a “Undefined variable: wpdb” on like 516 whenever I tried to create a new post in any of my sites in the multisite – so I added a “global $wpdb;” as follows: (begins line 514)
protected function get_blogs_to_import() { global $wpdb; if ( $this->options->get( 'populate_all_blogs' ) ) { return $wpdb->get_col( "SELECT blog_id FROM $wpdb->blogs ORDER BY blog_id DESC" ); } // 'all blogs' not checked? check the blogs_to_import option return $this->options->get( 'blogs_to_import', array() ); }
https://www.ads-software.com/plugins/wds-multisite-aggregate/
- The topic ‘WPDB Global issue’ is closed to new replies.