You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
On updating few of the posts on Wordpress VIP website it throws an error of "Updating failed. The response is not a valid JSON response.".
By checking the network tab it is showing that issue is related to distributor plugin. Error shown below:
To fix this issue I have added the code snippet in networkSiteConnection.php on line 749 by commenting line no. 748
`
//$site = get_site( (int) $blog_id );
@dkotter This issue seems to be caused by older version of WordPress(<4.6.0) that does not have get_site() function. Since we only support WP 5.7+, I think this issue can be closed.
Describe the bug
On updating few of the posts on Wordpress VIP website it throws an error of "Updating failed. The response is not a valid JSON response.".
By checking the network tab it is showing that issue is related to distributor plugin.
Error shown below:
To fix this issue I have added the code snippet in networkSiteConnection.php on line 749 by commenting line no. 748
`
//$site = get_site( (int) $blog_id );
if(function_exists('get_site'))
{
$sites=
get_site( (int) $blog_id );}
elseif(function_exists('wp_get_site'))
{
$sites= wp_get_site((int) $blog_id);
}
`
This code snippet has fixed the call which was failing before.
Steps to Reproduce
Screenshots, screen recording, code snippet
API Header:
Error on Wordpress dashboard Distributor --> pull content
Error response:
"Uncaught Error: Call to undefined function Distributor\InternalConnections\get_site()"
Environment information
No response
WordPress information
No response
Code of Conduct
Tasks
The text was updated successfully, but these errors were encountered: