• Hi,

    I’m changing web servers for a customer and I’m having trouble getting ‘easy facebook feed’ working.

    The new webserver is using php 7.0.9 and the facebook feed isn’t returning any results. If I change to a previous version of php (5.5.11), I get the following results:

    Warning: Invalid argument supplied for foreach() in <edited>\wp\wp-content\plugins\easy-facebook-feed\class.eff.php on line 90 Warning: krsort() expects parameter 1 to be array, null given in <edited>\wp\wp-content\plugins\easy-facebook-feed\class.eff.php on line 124 Warning: array_slice() expects parameter 1 to be array, null given in <edited>\wp\wp-content\plugins\easy-facebook-feed\class.eff.php on line 125 Warning: implode(): Invalid arguments passed in <edited>\wp\wp-content\plugins\easy-facebook-feed\class.eff.php on line 132

    fopen is on and curl support is enabled in both versions of php

    The facebook feed is working fine on the old web server, unfortunately we have to migrate to the new server.

    I’m hoping someone can point me at something else I’m over looking

    Wordpress is up to date and facebook feed 2.5 is installed on the new web server.

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author Tim

    (@timwass)

    Hi,

    I checked the errors, they are caused by a missing Facebook page id. Can you check if the setting ‘Facebook page ID’ is set in wp-admin > settings > Easy Facebook feed?

    If that setting is set its probably an empty id parameter in your shortcode, something like: [easy_facebook_feed id=] (this will generate the same errors as yours). by removing ‘id=’ or setting the id parameter with a value (example: [easy_facebook_feed id=Vikings]) will probably solve your problem.

    Thread Starter fouriermike

    (@fouriermike)

    Hi Tim,

    Thanks for getting back to me.

    The facebook ID is set in the wp-admin>settings>easy facebook feed (the ID is Davisearthmoving and number of posts is set to 10)

    The shortcode is set to [easy_facebook_feed]

    Still coming up with a blank page.

    Anything else? There aren’t any special port requirements or anything?

    Thanks for your help

    Plugin Author Tim

    (@timwass)

    I tried it with your settings, it seems to work fine on my test environment. So I’m not sure whats going on, maybe the plugin is having trouble getting the settings from the database for some reason.

    Does the following shortcode fix anything for you? [easy_facebook_feed id=Davisearthmoving limit=10]

    • This reply was modified 8 years, 1 month ago by Tim.
    Thread Starter fouriermike

    (@fouriermike)

    Hi Tim,

    Just for fun I installed the plugin on a blank wordpress install. I created a page that only has [easy_facebook_feed id=Davisearthmoving limit=10] on it. It also has the same ID and limit set on the settings page.

    I’m still getting the same php errors as before.

    https://weba07.fourier.com.au/facebook-feed/

    Thanks

    Plugin Author Tim

    (@timwass)

    Hi Mike,

    I suspect the json php extension is missing on the webserver. To be sure I added some extra php extension checks in v2.6, hopefully this can tell us more.

    Thread Starter fouriermike

    (@fouriermike)

    Hi Tim,

    No change as far as I can tell. Is there any debugging I can enable or anything?

    Thanks

    Plugin Author Tim

    (@timwass)

    Hi Mike,

    Sorry for the late response, it has been a busy week. Unfortunately there is no debugging mode.

    The problem is that the plugin is getting a empty value from the Facebook api (it turns out that the Facebook page id is not the problem). I don’t know why this happens (it shouldn’t), is it possible the request gets blocked by a firewall?

    Thread Starter fouriermike

    (@fouriermike)

    Hi Tim,

    Thanks for getting back to me.

    I got it working for now. I had to edit the class.eff.php file and comment out the if(self::$useCurl) conditional. I know it’s not the best way to go but it works for now.

    Thanks for all your help.

    Mike

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Blank Page’ is closed to new replies.