Forums

Simple Facebook Connect
Error in sfc-media.php (8 posts)

  1. grange85
    Member
    Posted 4 months ago #

    Just noticed this error is turning up on individual posts that have videocontent it doesn't show up on pages of posts - just individual posts.
    Warning: array_merge() [function.array-merge]: Argument #2 is not an array in /f2/grange85/public/wp/wp-content/plugins/simple-facebook-connect/sfc-media.php on line 22
    You can see the error in all its glory here http://www.fullofwishes.co.uk/2011/11/07/extracurricular-naomi-yang-video-maker/

    I'm not sure if it's related to the recent upgrade from 3.3 to 3.3.1

    Any help appreciated

    http://wordpress.org/extend/plugins/simple-facebook-connect/

  2. Otto
    Tech Ninja
    Posted 4 months ago #

    Why do you have display_errors enabled on a live site?

    Warnings are just warnings. Turn off display_errors.

    Next version will remove the warning, but seriously, never enable display_errors on a live site. That's crazy.

  3. grange85
    Member
    Posted 4 months ago #

    So it's a known error? Thanks for this.

  4. ChrisStoneman
    Member
    Posted 3 months ago #

    I also have this error. I've not amended any display_errors settings.

    How do I switch them off?

  5. kolorowestudio
    Member
    Posted 2 months ago #

    http://php.net/manual/en/function.error-reporting.php

    <?php
    
    // Turn off all error reporting
    error_reporting(0);
    
    // Report simple running errors
    error_reporting(E_ERROR | E_WARNING | E_PARSE);
    
    // Reporting E_NOTICE can be good too (to report uninitialized
    // variables or catch variable name misspellings ...)
    error_reporting(E_ERROR | E_WARNING | E_PARSE | E_NOTICE);
    
    // Report all errors except E_NOTICE
    // This is the default value set in php.ini
    error_reporting(E_ALL ^ E_NOTICE);
    
    // Report all PHP errors (see changelog)
    error_reporting(E_ALL);
    
    // Report all PHP errors
    error_reporting(-1);
    
    // Same as error_reporting(E_ALL);
    ini_set('error_reporting', E_ALL);
    
    ?>
  6. Stu Pidaso
    Member
    Posted 2 months ago #

    Thanks for the link kolorowestudio but I am confused as to where to find this. I am having the same issue as well.

  7. ChrisStoneman
    Member
    Posted 2 months ago #

    Thanks Kolorowestudio, but your solution confused me a little.

    This thread has solved my problems

    http://wordpress.org/support/topic/hide-php-error-message?replies=5

  8. Stu Pidaso
    Member
    Posted 2 months ago #

    Thanks! That did the trick.

Reply

You must log in to post.

About this Plugin

About this Topic