WordPress.org

Forums

The Support Forums will be in read-only mode for a scheduled maintenance window on 01 September 2016 14:00 UTC - 20:00 UTC. More information.

Social Discussions
PHP warning invalid argument supplied foreach (2 posts)

  1. jnui
    Member
    Posted 4 years ago #

    I am seeing PHP warnings in the error log

    PHP Warning:  Invalid argument supplied for foreach() in /home/sites/mysite.co.uk/public_html/wp-content/plugins/social-discussions/social-discussions.php on line 335

    line 335 looks like it just inserts the post id

    $post_data_custom = get_post_custom( $post->ID );
    	foreach($post_data_custom as $key=>$val) {

    so how can i fix this?

    http://wordpress.org/extend/plugins/social-discussions/

  2. lokeshjainajay
    Member
    Posted 4 years ago #

    Hi jnui,

    let me know if you are still facing this problem. because this is working fine with me.

    thanks

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Social Discussions
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

Tags