Support » Plugin: Social Sharing Plugin - Social Warfare » Fatal Error with new version

  • Resolved goodereader


    When publishing a new post, i get a fatal error. This only started happening on the new version that was pushed out today. On the wordpress email it states

    An error of type E_ERROR was caused in line 75 of the file /home/goodread/public_html/blog/wp-content/plugins/social-warfare/lib/utilities/SWP_Requests.php. Error message: Uncaught Error: Cannot use object of type WP_Error as array in /home/goodread/public_html/blog/wp-content/plugins/social-warfare/lib/utilities/SWP_Requests.php:75
    Stack trace:
    #0 /home/goodread/public_html/blog/wp-content/plugins/social-warfare/lib/utilities/SWP_CURL.php(38): SWP_Requests::file_get_contents_http(‘https://graph.f…’, NULL)
    #1 /home/goodread/public_html/blog/wp-content/plugins/social-warfare/lib/social-networks/SWP_Facebook.php(206): SWP_CURL::file_get_contents_curl(‘https://graph.f…’)
    #2 /home/goodread/public_html/blog/wp-content/plugins/social-warfare/lib/social-networks/SWP_Facebook.php(116): SWP_Facebook->get_og_id(‘https://goodere…’)
    #3 /home/goodread/public_html/blog/wp-content/plugins/social-warfare/lib/utilities/SWP_Post_Cache.php(641): SWP_Facebook->get_api_link(‘https://goodere…’)
    #4 /home/goodread/public_html/blog/wp-content/plugins/social-warfare/lib/utilities/SWP_Post_Cache.php(525): SWP_Post_Cache->establish_api_request_urls()
    #5 /home/goodread/public_html/blog/wp-content/p

Viewing 15 replies - 1 through 15 (of 21 total)
  • I can confirm this is happening on my live site also after updating to the security fix that my host (Kinsta) recommended after detecting the issue. I’ve had to disable the social warfare basic + pro plugins on 2 sites.

    Same here.

    Got an automated email from WordPress saying there is a built in feature in WordPress 5.2 that detects when a plugin causes a fatal error on your site…and it said the plugin was Social Warfare. I could not get to the dashboard of my blog, was getting an error message when I tried to access it. I had to contact my host company to deactivate Social Warfare. I have deactivated both Social Warfare plugins at this point…they broke my blog.

    Fatal error with the 4.4.0 version, I also had to disable the social warfare plugin.

    • This reply was modified 4 months, 1 week ago by sophiev.

    same here fatal error i also disable plugin on my sites.

    Same here, critical error, website down… Have deleted cache and also disable it but remains the same.

    Got error ‘PHP message: PHP Warning: Undefined variable $response in /xxx/wp-content/plugins/social-warfare/lib/utilities/SWP_Requests.php on line 66

    PHP message: PHP Fatal error: Uncaught TypeError: array_merge(): Argument #1 must be of type array, null given in /xxx/wp-content/plugins/social-warfare/lib/utilities/SWP_Requests.php:66



    Fatal error after every published post. Is Social Warfare listening to all this? Would be great to hear something from them to know they are at least aware and trying to fix the problem.



    Same here.

    I need such a module on my site, so I disabled Social Warfare to put another one. It’s a shame, it was working fine. But I regret the lack of communication when such a big technical problem was found.

    • This reply was modified 4 months ago by desben.

    Hey guys, seems that they don’t offer support on the WordPress forums, 🤔 weird…

    “Please submit support requests via our website at or by emailing – NO support is provided via these forums.”


    I have already email them including this ticket direct link. Also have alerted them with twitter but seems abandoned also…

    Maybe you can also email them so they realize the issue is affecting many users.



    This is the reply I received from plugin support at Social Warfare (@warfareplugins). Initial tests have been successful. See how it goes for you.

    “Hello, my name is Randy with Social Warfare Support and I appreciate you reaching out about this. It sounds like you’re seeing some issues after updating Social Warfare and I know this can be frustrating. 

    Our developers have just completed some fixes that should resolve this issue. These fixes will be in our next public update but that likely wont be for at least another few days so in the meantime I have attached the patched version that you can install manually by following these steps:

    To manually install this updated version of Social Warfare follow these steps:

    1. Make a full backup of your site
    2. Download the attached patched version of Social Warfare (note that if you are viewing this ticket in email, the attachment will not show. You will have to view this ticket from your Warfare Plugins dashboard to download the attached .ZIP file)
    3. Deactivate, then delete Social Warfare from your plugins list page – your settings shouldn’t be lost as they are saved in your site’s database but please see item #1 
    4. On your WordPress Dashboard, go to Plugins > Add New > Upload the Social Warfare ZIP file that you downloaded in Step 2, and activate the plugin
    5. Be sure to clear/purge any caching plugins/CDNs/Cloudflare, etc

    Note that even if you use Social Warfare Pro, only this file needs to be re-installed.

    Please reply to let me know if this does not resolve the errors.





    Some fatal error came along for me as well, when publishing a new post:
    no more social icons on this new post!
    ..and I did update the latest version 3 days ago. BUT not the pro version first, as suggested lately.











    Does the attachment from Joe fix this problem?

Viewing 15 replies - 1 through 15 (of 21 total)
  • You must be logged in to reply to this topic.