• ErrorException: Warning: stristr() expects parameter 1 to be string, array given started to occur in my WordPress insntance at 2021/08/16.

    ErrorException: Warning: stristr() expects parameter 1 to be string, array given
    #16 /wp-content/plugins/custom-facebook-feed/inc/CFF_Utils.php(505): CustomFacebookFeed\CFF_Utils::stripos
    #15 /wp-content/plugins/custom-facebook-feed/inc/CFF_Shortcode_Display.php(351): CustomFacebookFeed\CFF_Shortcode_Display::check_show_section
    #14 /wp-content/plugins/custom-facebook-feed/inc/CFF_Shortcode.php(384): CustomFacebookFeed\CFF_Shortcode::display_cff
    #13 /wp-includes/shortcodes.php(343): do_shortcode_tag
    #12 [internal](0): preg_replace_callback
    #11 /wp-includes/shortcodes.php(218): do_shortcode
    #10 /wp-includes/class-wp-hook.php(292): WP_Hook::apply_filters
    #9 /wp-includes/plugin.php(212): apply_filters
    #8 /wp-includes/post-template.php(253): the_content
    #7 /wp-content/themes/mytheme/template-parts/content-page.php(26): require
    #6 /wp-includes/template.php(732): load_template
    #5 /wp-includes/template.php(676): locate_template
    #4 /wp-includes/general-template.php(204): get_template_part
    #3 /wp-content/themes/mytheme/page.php(25): include
    #2 /wp-includes/template-loader.php(106): require_once
    #1 /wp-blog-header.php(19): require
    #0 /index.php(17): null

    The parameter haystack value (from Sentry):

    [
    [Filtered], 
    text, 
    desc, 
    sharedlinks, 
    Callable date [mixed format; mixed [timestamp]], 
    eventtitle, 
    eventdetails, 
    likebox, 
    ]

    I guess the latest version 4.0 caused this error. What can I do for this?

Viewing 7 replies - 1 through 7 (of 7 total)
  • Thread Starter Goto Hayato

    (@gh640)

    And an existing feed was broken at the same day. The following message is displayed in the front page now.

    No source found for this feed. It looks like you may have removed the account this feed was using to display posts. Go to this page, switch to the settings tab and click the sources menu item to manage sources for this feed.

    Please enter the Page ID of the Facebook feed you’d like to display. You can do this in either the Custom Facebook Feed plugin settings or in the shortcode itself. For example, [custom-facebook-feed id=YOUR_PAGE_ID_HERE].

    I’m not sure this is related with the error.

    Plugin Support Smash Balloon Joel

    (@joelsmashballoon)

    Hey @gh640,

    Thank you for reaching out to us for assistance. We are unable to replicate the issue so for us to dig into this, could you let us know a link to the page in question as well as the current shortcode you are using, and how it is being implemented?

    It may also be beneficial for you to send us the plugin’s System Info found by clicking the Help button in the top right of the settings menu. Then it can be sent to us along with a support request on our website, here.

    Best regards.

    Thread Starter Goto Hayato

    (@gh640)

    Hi @joelsmashballoon,

    Thank you for your swift reply.

    The page is https://mamas-fukui.com/ . The current shortcode which worked before is [custom-facebook-feed]. It was embedded into the page via the block editor (shortcode block).

    Seeing the manual page for v4 (https://smashballoon.com/doc/setting-up-the-free-custom-facebook-feed-wordpress-plugin-4-0/), I noticed that the shortcode format is [custom-facebook-feed feed=1] in v4. It’s different from the shortcode used in the site. Did I miss any upgrade task?

    Thanks,

    Thread Starter Goto Hayato

    (@gh640)

    I removed the widget from the page temporarily.

    Plugin Support Smash Balloon Joel

    (@joelsmashballoon)

    Hey @gh640,

    Apologies for the delay in getting back to you here. Yes, in version 4.0 and above you will now be using a specific feed id. Under Facebook Feed > All Feeds you can create a new feed and click the ‘Embed‘ button in the top right. This will give you the correct shortcode to use. In the case of the first feed, this will be feed=1 as in your example.

    If you attempt this new feed system and shortcode, do you still encounter the error?

    Best regards.

    Hi! I have the same issue, Warning: stristr() expects parameter 1 to be string, array given in /var/www/fjellvetrinaren/fjellvetrinaren.no/wp-content/plugins/custom-facebook-feed/inc/CFF_Utils.php on line 505

    I am totally new to Html, and i do not know how to fix this for my boss, who is pretty upset about it since our support is lacking the competence, could i possibly get an understandable little “manual” on how to fix this on our page? -thank you on beforehand

    (she wants to make a new page if its not possible to fix the issue)

    Plugin Support Smash Balloon Joel

    (@joelsmashballoon)

    Hey @annse,

    Thank you for reaching out to us for assistance. We are happy to assist you to get this working for you. It would be best for you to reach out to us using our support form here (select the free plugin in the dropdown), where you can provide the System Info found by going to the Help page (click the Help button in the top right of the settings page of the plugin). This will help us in troubleshooting and getting you set up right.

    There, a Technical Support Representative will get back to you as soon as possible.

    Best regards.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘ErrorException: Warning: stristr() expects parameter 1 to be string, array given’ is closed to new replies.