• Resolved jimnuttall

    (@jimnuttall)


    Hi,

    I have been using the plugin successfully in development on MAMP, but upon migrating to the live server I am getting the following error:

    Warning: Creating default object from empty value in D:\XXXXXX\wwwroot\XXXXXXX\wp-content\plugins\feed-them-social\feeds\facebook\class-fts-facebook-feed.php on line 432

    Warning: Invalid argument supplied for foreach() in D:\XXXXXX\wwwroot\XXXXXXX\wp-content\plugins\feed-them-social\feeds\facebook\class-fts-facebook-feed.php on line 1786

    Warning: Invalid argument supplied for foreach() in D:\XXXXXX\wwwroot\XXXXXXX\wp-content\plugins\feed-them-social\feeds\facebook\class-fts-facebook-feed.php on line 661

    Warning: Invalid argument supplied for foreach() in D:\XXXXXX\wwwroot\XXXXXXX\wp-content\plugins\feed-them-social\feeds\facebook\class-fts-facebook-feed.php on line 672

    I get this error on a fresh WP installation as well as the migrated site, so I’m assuming it’s a PHP issue on the live server, but can’t figure out what!

    System info:

    ### Begin System Info ###
    SITE_URL: https://XXXXXXXXX
    Feed Them Social Version: 2.6.9

    — WordPress Configuration:
    WordPress Version: 5.1.1
    Multisite: No
    Permalink Structure: /%postname%/
    Active Theme: Eat Sleep Ride 2
    PHP Memory Limit: 256M
    WP_DEBUG: Disabled

    — Webserver Configuration:
    PHP Version: 7.2.7
    Web Server Info: microsoft-iis85

    — PHP Configuration:
    Safe Mode: No
    Upload Max Size: 2M
    Post Max Size: 8M
    Upload Max Filesize: 2M
    Time Limit: 300
    Max Input Vars: 1000
    Allow URL File Open: On (1)
    Display Erros: On (1)

    — PHP Extensions:
    json: Your server supports json.
    FSOCKOPEN: Your server supports fsockopen.
    cURL: Your server supports cURL.
    curl_multi: Your server supports curl_multi_select.

    — FTS Settings->Global Options:
    Cache time: 1 Day (Default)

    — Active Plugins:
    All-in-One WP Migration: 6.97
    All-in-One WP Migration File Extension: 1.4
    Contact Form 7: 5.1.3
    Feed Them Social (Facebook, Instagram, Twitter, etc): 2.6.9
    WP Google Maps: 7.11.32
    WP Mail SMTP: 1.4.2

    — Custom Token or Keys added to Options Pages
    — You must have a custom token to use the feeds

    Facebook App Token: Yes
    Twitter Consumer Key: No
    Twitter Secret: No
    Twitter Token: No
    Twitter Token Secret: No
    Pinterest Token: No
    Instagram: No
    YouTube: No

    — FaceBook & Twitter Date Format and Timezone

    Date Format: one-day-ago
    Timezone: No

    — Hide Facebook Images in Posts:

    Hide: No

    — Hide Facebook Error Handler:

    Hide: No

    — Fix Twitter Time:

    Fix: No

    — Disable Magnific CSS:

    Fix: No

    — Fix Internal Server Error:

    Fix: No
    ### End System Info ###

    • This topic was modified 5 years, 5 months ago by jimnuttall.
Viewing 13 replies - 1 through 13 (of 13 total)
  • Plugin Author slickremix

    (@slickremix)

    hey @jimnuttall

    Sorry for the troubles! In order to keep things fast by default the feeds cache (or save) for a set amount of time.

    Try Clearing the cache by clicking to Feed Them tab > Settings > Global Options > Clear cache

    Be sure to clear any other Caching plugins you may have installed also.

    Let us know if this helped. If not let us know and we can go from there.

    Justin

    Thread Starter jimnuttall

    (@jimnuttall)

    Hi Justin,

    Thanks for quick response. No, clearing the cache doesn’t make any difference, neither does changing the cache time.

    Was working perfectly locally, but something’s obviously unhappy on the production server!

    Jim

    Plugin Author slickremix

    (@slickremix)

    Hey @jimnuttall,
    Is the php versions the same on your local environment? Also can you share with me the system info for the local to so I may compare.

    Thanks,
    Justin

    Thread Starter jimnuttall

    (@jimnuttall)

    Hi,

    Local system info below.

    PHP version 7.0.8 locally and 7.2.7 on production. Also I am aware WordPress version are different here but I have tried after updating too with no difference.

    Thanks again for your help,
    Jim

    ### Begin System Info ###
    SITE_URL: https://localhost:8888/development/eatsleepride
    Feed Them Social Version: 2.6.9

    — WordPress Configuration:
    WordPress Version: 5.2.2
    Multisite: No
    Permalink Structure: /%postname%/
    Active Theme: Eat Sleep Ride 2
    PHP Memory Limit: 256M
    WP_DEBUG: Disabled

    — Webserver Configuration:
    PHP Version: 7.0.8
    Web Server Info: apache2229unixmod_wsgi35python2710php708mod_ssl2229openssl098zhdav2mod_fastcgi246mod_perl209perlv5220

    — PHP Configuration:
    Safe Mode: No
    Upload Max Size: 32M
    Post Max Size: 32M
    Upload Max Filesize: 32M
    Time Limit: 30
    Max Input Vars: 1000
    Allow URL File Open: On ()
    Display Erros: N/A

    — PHP Extensions:
    json: Your server supports json.
    FSOCKOPEN: Your server supports fsockopen.
    cURL: Your server supports cURL.
    curl_multi: Your server supports curl_multi_select.

    — FTS Settings->Global Options:
    Cache time: 1 Day (Default)

    — Active Plugins:
    All-in-One WP Migration: 6.97
    Contact Form 7: 5.1.3
    Feed Them Social (Facebook, Instagram, Twitter, etc): 2.6.9
    WP Google Maps: 7.11.32
    WP Mail SMTP: 1.4.2

    — Custom Token or Keys added to Options Pages
    — You must have a custom token to use the feeds

    Facebook App Token: Yes
    Twitter Consumer Key: No
    Twitter Secret: No
    Twitter Token: No
    Twitter Token Secret: No
    Pinterest Token: No
    Instagram: No
    YouTube: No

    — FaceBook & Twitter Date Format and Timezone

    Date Format: one-day-ago
    Timezone: No

    — Hide Facebook Images in Posts:

    Hide: No

    — Hide Facebook Error Handler:

    Hide: No

    — Fix Twitter Time:

    Fix: No

    — Disable Magnific CSS:

    Fix: No

    — Fix Internal Server Error:

    Fix: No
    ### End System Info ###

    Plugin Author slickremix

    (@slickremix)

    Thanks for that. When you visit the Facebook Options page of our plugin does it show the access token is working ok?

    Thread Starter jimnuttall

    (@jimnuttall)

    Sorry for the slow reply. Yes, access token is working ok and also verifies using the Facebook debugger.

    Thanks,
    Jim

    Plugin Author slickremix

    (@slickremix)

    It appears your live server may have E_Strict on which checks for way old php 5.3 or less errors. Can you contact your hosting company and have them turn that off and see if that helps.

    https://stackoverflow.com/questions/8900701/creating-default-object-from-empty-value-in-php

    Thanks,
    Justin

    Thread Starter jimnuttall

    (@jimnuttall)

    Nope, E_STRICT & E_WARNING both off.

    This is a strange one!!!

    Thanks,
    Jim

    Plugin Author slickremix

    (@slickremix)

    Hey @jimnuttall,
    Yes this is really weird! We have never experienced this. Can you ask your hosting service if they are blocking any incoming or outgoing connections?

    Thanks,
    Justin

    I’m actually having the exact same issue. It was working this morning until I updated to the newest version of the plugin. My specs are very similar to those listed by the OP.

    Plugin Author slickremix

    (@slickremix)

    @maxxd,
    Either of you guys figure this out? Not sure what is going on here pretty strange.

    Thanks,
    Justin

    @slickremix – I’ve got a ticket in with the host to see if there’s a setting on the firewall that may be causing it. We’re getting the following error in the server logs (this is the first – there are more but they look like a waterfall caused by this initial issue):

    
    A non-numeric value encountered in path\to\site\directory\wp-content\plugins\feed-them-social\feeds\facebook\class-fts-facebook-feed.php on line 264
    

    So it looks like – on the production server only – the API call is returning no posts. It’s working fine on the staging/testing site, so… Hopefully we’ll find something out.

    Plugin Author slickremix

    (@slickremix)

    Hey @maxxd,
    Awesome, Let us know how it goes. Thanks for lettings us know about that notice. In the future we will be making improvements to the feeds if they fail. We actually just made an update yesterday that improves this aspect for Twitter.

    Thanks for being patient!

    Justin

Viewing 13 replies - 1 through 13 (of 13 total)
  • The topic ‘Facebook Feed Error on Live Server’ is closed to new replies.