This error means $response isn’t returning the array you expect but a wordpress error object. Try
if( is_wp_error( $response ) ) {
echo $response->get_error_message();
}
and see what you get.
Related Posts:
- Running WP Cron on multisite the right way
- How to check if image is already stored in a site’s post database? (network)
- Customize default settings on new sites on multisite
- Sorting list of sites from multisite network using wp_get_sites
- Integrating WordPress to my website, while keeping my own authentication system
- How does wordpress know which site to setup (on multisite)?
- Remove/unset options field from backend Settings->General?
- Multisite get_home_url(); – Getting URL for current site
- How to use wp_insert_user on WordPress Multisite?
- Network installation giving errors when viewing or adding a user
- Sort posts from multiple sites by date
- Fix 403 error on WordPress multisite network using subdomains
- Update Custom Field on Imported Post Creation
- Insert post without actions/hooks
- “Maximum function nesting level of ‘100’ reached” after adding a new filter
- Import 10,000 Users into WordPress WITH a specific ID for each user
- How to create Sub Sub domain Multi User blogs?
- Why am I getting ERR_NAME_NOT_RESOLVED when I add a site to my multisite installation? [closed]
- apache cpu over 70% on localhost
- Fatal error: Call to undefined method WP_Error::get_item_quantity()
- Custom php page outside the scope of my theme
- WordPress (3.9.1) MultiSite Permissions. Is chown the answer?
- phpMyAdmin displays error when importing database
- Adding hreflang tags automatically in WordPress subdirectory multisite
- How to add values to media “whitelist_options” in wp-admin/options.php template?
- Fatal Error relating to sessions.php
- How to change home or site url using action hooks or filter?
- How can I get the total number of installed importers?
- wordpress media library new uploads don’t write to database
- WordPress returning 404 for multisite pages
- How to call plugin function per site in a multisite?
- WordPress returns “The link you followed has expired” error page whenever I add a new site, add a user etc
- wp_ob_end_flush_all and wp_suspend_cache_addition()
- NGINX rewrite rules for multisite
- Make a list of sites for each user in WPMU – switch_to_blog (display in SITE_ID: 1)
- fatal error call to undefined function get_header in index.php on line 1
- Getting error when using wp_insert_post()
- WP & Server Speed [Teacher Question]
- Fatal Errors on pluggable.php
- Create “blank” admin page without having admin-bar/admin-menu for faster load
- Import Instagram post as WordPress post
- Merging Multiple WordPress Websites
- Annoying/confusing WordPress memory limit exhausted
- Create form which redirects to site in network?
- Redirect user role to a specific page on login in a multisite network?
- Multiple WordPress sites with different theme and plugin sharing the same content
- Changable favicon
- Remove node from multisites?
- PHP script to redirect traffic based on website accessed
- Add .php to end of all WordPress Pages (multisite)
- List all blogs apart from the current blog and main blog in WordPress Multisite
- Adding users to another blog
- Transfer WordPress Login Session to an Extended Webpage on the Same Domain
- Pull a div from one WordPress site into another WordPress site
- Fatal Error cannot log into wordpress and website disappeared
- Resource 404 error on multisite subdirectory install
- pages disable after wordpress update
- WordPress error on my website
- use system script advertising in wordpress multisite
- WP Admin Bar – Get current theme name as custom menu title
- Changed URl in General Settings now WordPress site doesnt work
- WPMU schedule doesn’t execute actions
- WP multisite network plugin fails to see classes loaded with spl autoload
- Host does not allow remote connection, so how do I transfer data to my WordPress site?
- WordPress won’t display errors at all
- Trying to post information from a remote database to wordpress page
- WP white screen of death after duping a site that works fine on same server
- Custom PHP-coding in MU installs
- WXR XML import is stripping php tags that I need to keep
- .htaccess on multisite and roots theme?
- Force string into signup form
- Catchable fatal error in appcloud free theme by Tokokoo
- I need a button to appear when not loged in and another when logged in, I need help fixing code PLEASE!
- WPMU – How to echo only one URL
- Front-end major break after upgrade PHP 8.0 [closed]
- kali php problem [closed]
- Losing Session ID and sessionStorage when navigating to other domains on Multisite
- Divi – add title to mobile menu button
- Getting invalid user ID error when creating a new user with wp_insert_user
- Creating posts with php-script + csv
- add_rewrite_rule image from /images/site2/favicon.ico to /favico.ico
- Internal server error when enabling Multisite in WordPress
- WordPress critical error after trying to update to 6.2 – Fatal error: Allowed memory size of 268435456 bytes exhausted
- Running a long script in PHP
- How to create a build for quickly deploying a server with WP?
- Global update of records after import WP All Import Pro
- Error message not appearing in error email or in the error log
- NGINX rewrite rules for WordPress Subdirectory Multisite to support deep URL
- Single wordpress multi website down need help factoring what it is
- Change WordPress Multisite Domain to subfolder
- Why PHP Parse unmachet after update to PHP8?
- Enabling pretty permalinks with Docker, Multisite WordPress and Caddy
- Running WP-Cron on Multisite networks the right way?
- “Object-cache.php” disables wp_cron and even disables my entire site, and keeps reappearing by itself again after I delete it
- PHP Fatal error: Uncaught TypeError: Cannot access offset of type string on string in Stack trace:\n#0 [internal function]: img_caption_shortcode()
- How to add query string at the end of sitemap Yoast SEO
- How to Customize the Admin Sidebar Menu in WordPress Multisite Network by changing the backend code of the wp-admin code files?
- Custom theme on multisite has issues with standard loop output
- Set custom post type to load custom block pattern by default
- REST API request between domain and subdomain