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
- 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
- Custom php page outside the scope of my theme
- 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
- 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)
- WP & Server Speed [Teacher Question]
- Fatal Errors on pluggable.php
- Is it best to avoid using $wpdb for security issues?
- How to set the WordPress logo programmatically with PHP
- wp_redirect only works on main site and not on other sites
- How to avoid duplicates when creating recent network posts
- Find Site ID From WP_Post
- List all blogs, but exclude the main site
- How to disable all logins except Network login in WordPress Multi site?
- Include style.css in the Child Theme with PHP
- WordPress homepage setup not working on first load
- Fatal errors to undefined function in theme 404.php file [closed]
- PHP Helper Class to create shortcodes
- Is it legal to redefine wp_password_change_notification in a mu plugin?
- Why, when moving a WordPress multisite network, have my theme customisations stopped working?
- wordpress admin part is not accesbile after server shifting
- phpMyAdmin error #1062 – Duplicate entry ‘1’ for key ‘PRIMARY’
- Authentication from sub-folder non-wp cookie WordPress
- need help adding a new sidebar to a page that can’t use page-templates -> multisite
- How can I fix this code [duplicate]
- How to sort posts by active category in WordPress?
- wordprees multi-site in user panel add filter
- How to Redirect Buddypress Directories To Login Page For Non Logged in Users
- bp-custom.php is not working on a WordPress multisite environment. how to fix it?
- WordPress: Export/Import Yoast meta title & description to custom taxonomy
- WordPress Multisite login_redirect to primary blog and specific page based on role
- Error while loading wordpress site “Fatal error: Uncaught Error: Call to undefined function twentytwentyone_the_html_classes() in /home
- How can I update WordPress plugins or WordPress itself in all server?
- Connecting to upstream failed
- Internal Server Errors – Moving working multi-site install to my localhost
- Create “blank” admin page without having admin-bar/admin-menu for faster load
- Import Instagram post as WordPress post
- Merging Multiple WordPress Websites
- 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
- 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
- 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
- Force string into signup form
- 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]
- 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
- 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?
- 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
- Why PHP Parse unmachet after update to PHP8?
- 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