• Resolved andyyompbiz

    (@andyyompbiz)


    Hi,

    I’m getting the following error on the pages where the Plugin is being used.

    Warning: array_key_exists() expects parameter 2 to be array, null given in /var/sites/f/fraserdove.com/public_html/wp-content/plugins/company-updates-for-linkedin/linkedin-company-updates.php on line 508

    Warning: array_key_exists() expects parameter 2 to be array, null given in /var/sites/f/fraserdove.com/public_html/wp-content/plugins/company-updates-for-linkedin/linkedin-company-updates.php on line 508

    For some reason I cant get the plugin to pull in the most recent posts only as well, it seems to be pulling in posts from 7 months ago, you can see the errors on the live site here.

    https://www.fraserdove.com/forum/

    I looked at the plugin on line 508 and there is a variable with an array to check if there is a picture on the post, I removed this from the plugin and the errors dissapeared, however the old posts from 7 months ago were still being pulled in.

    Has anyone else had these issues at all?

    Any help would be great as I dont want to start editing the plugin.

    https://www.ads-software.com/plugins/company-updates-for-linkedin/

Viewing 7 replies - 1 through 7 (of 7 total)
  • Hi,

    I am also facing the same issue. I have installed this plugin in my website. In between the posts, there is one old post which is posted 7 months ago. How can I correct this? Please help.

    I have the same issue. Any help on this?

    Exact same issue here. Any advice?

    I figured out my issue for anyone who is interested. The issue is that the plugin is also pulling job listings into the array along with status updates. Because the array format is different, it can’t properly call the timestamp on those.

    I fixed it by adding the following parameter to the api call on line 469 of linkedin-company-updates.php:

    &event-type=status-update

    So that line should now read:

    $api_response = file_get_contents('https://api.linkedin.com/v1/companies/' . $linkedin_company_id . '/updates?count=' . $linkedin_limit . '&format=json&event-type=status-update&oauth2_access_token='.$access_token, false);

    Hope that helps.

    Thread Starter andyyompbiz

    (@andyyompbiz)

    Hi @creativepickle

    That seems to have done the trick! Epic effort! Thanks for the update.

    Hi @creativepickle,

    Thanks for the fix, Nice Work.

    Plugin Author Andrew Rockwell

    (@rockwell15)

    @creativepickle Thanks for that fix. I’ve added it to the latest release

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Old posts and images being pulled in’ is closed to new replies.