White Screen After Most Recent Ajax Search Pro Update

Home Forums Product Support Forums Ajax Search Pro for WordPress Support White Screen After Most Recent Ajax Search Pro Update

This topic contains 7 replies, has 2 voices, and was last updated by

 
Participant
3 years, 2 months ago.

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #19727

    Participant

    Hi Ernest,

    Since the recent Ajax Search update, we seem to be getting these errors (which, bizarrely seem to come from RPP). We get white screen when we go to appearance-customize and these errors appear

    [02-Nov-2018 18:32:35 UTC] PHP Warning: array_diff(): Argument #1 is not an array in /home/newsoutheastasia/public_html/wp-content/plugins/related-posts-pro/includes/related_content.class.php on line 1159
    [02-Nov-2018 18:32:35 UTC] PHP Warning: array_merge(): Argument #1 is not an array in /home/newsoutheastasia/public_html/wp-content/plugins/related-posts-pro/includes/related_content.class.php on line 1159
    [02-Nov-2018 18:32:35 UTC] PHP Warning: count(): Parameter must be an array or an object that implements Countable in /home/newsoutheastasia/public_html/wp-content/plugins/related-posts-pro/includes/related_content.class.php on line 1168

    Any idea what could be going on?

    Thanks in advance for your help

    #19729

    Hi!

    Not sure, those does not seem to be related to the search. I have checked the code part, but it is not shared within the two plugins. These should not cause a white screen either, as those are only warning messages, not fatal error reports.

    Anyways, I have quick-fixed these issues on a test server. Can you please try replacing one of the files:

    1. Open up the wp-content/plugins/related-posts-pro/includes/related_content.class.php file on your server
    2. Replace it’s content with this
    3. Save the file

    The error reports should go away.

    Best,
    Ernest Marcinko

    If you like my products, don't forget to rate them on codecanyon :)


    #19731

    Participant

    Hi Ernest,

    Thank you very much for that. I have made that change. I’m afraid I’ve found more issues re RPP errors, on product pages. These are showing

    Warning array_diff(): Argument #1 is not an array 2

    wp-content/plugins/related-posts-pro/includes/related_content.class.php:437

    Plugin: related-posts-pro
    Warning array_merge(): Argument #2 is not an array 1

    wp-content/plugins/related-posts-pro/includes/related_content.class.php:437

    Plugin: related-posts-pro
    Warning array_merge(): Argument #1 is not an array 1

    wp-content/plugins/related-posts-pro/includes/related_content.class.php:437

    Plugin: related-posts-pro
    Warning count(): Parameter must be an array or an object that implements Countable 1

    wp-content/plugins/related-posts-pro/includes/related_content.class.php:446

    Plugin: related-posts-pro

    When I open them up, they look like this

    Warning array_diff(): Argument #1 is not an array 2

    wc_get_template_part()
    wp-content/themes/flatsome/woocommerce/single-product.php:38
    load_template(‘wp-content/themes/flatsome/woocommerce/content-single-product.php’)
    wp-content/plugins/woocommerce/includes/wc-core-functions.php:178
    wc_get_template_part()
    wp-content/themes/flatsome/woocommerce/content-single-product.php:39
    load_template(‘wp-content/themes/flatsome/woocommerce/single-product/layouts/product-no-sidebar.php’)
    wp-content/plugins/woocommerce/includes/wc-core-functions.php:178
    do_action(‘woocommerce_after_single_product_summary’)
    wp-content/themes/flatsome/woocommerce/single-product/layouts/product-no-sidebar.php:67
    woocommerce_output_product_data_tabs()
    wp-includes/class-wp-hook.php:286
    wc_get_template()
    wp-content/plugins/woocommerce/includes/wc-template-functions.php:1418
    woocommerce_product_description_tab()
    wp-content/themes/flatsome/woocommerce/single-product/tabs/tabs.php:62
    wc_get_template()
    wp-content/plugins/woocommerce/includes/wc-template-functions.php:1622
    the_content()
    wp-content/plugins/woocommerce/templates/single-product/tabs/description.php:33
    apply_filters(‘the_content’)
    wp-includes/post-template.php:240
    wpdreams_rpp_add_below_content()
    wp-includes/class-wp-hook.php:286
    do_shortcode()
    wp-content/plugins/related-posts-pro/includes/hooks.php:246
    preg_replace_callback()
    wp-includes/shortcodes.php:197
    do_shortcode_tag()
    Unknown location
    rppShortcodeContainer->wpdreams_rpp_shortcode()
    wp-includes/shortcodes.php:319
    wpdreams_related_content->getRelatedPosts()
    wp-content/plugins/related-posts-pro/includes/shortcodes.php:163
    wpdreams_related_content->simpleRelated()
    wp-content/plugins/related-posts-pro/includes/related_content.class.php:119
    array_diff()
    wp-content/plugins/related-posts-pro/includes/related_content.class.php:437
    wp-content/plugins/related-posts-pro/includes/related_content.class.php:437

    Warning array_merge(): Argument #2 is not an array 1

    wc_get_template_part()
    wp-content/themes/flatsome/woocommerce/single-product.php:38
    load_template(‘wp-content/themes/flatsome/woocommerce/content-single-product.php’)
    wp-content/plugins/woocommerce/includes/wc-core-functions.php:178
    wc_get_template_part()
    wp-content/themes/flatsome/woocommerce/content-single-product.php:39
    load_template(‘wp-content/themes/flatsome/woocommerce/single-product/layouts/product-no-sidebar.php’)
    wp-content/plugins/woocommerce/includes/wc-core-functions.php:178
    do_action(‘woocommerce_after_single_product_summary’)
    wp-content/themes/flatsome/woocommerce/single-product/layouts/product-no-sidebar.php:67
    woocommerce_output_product_data_tabs()
    wp-includes/class-wp-hook.php:286
    wc_get_template()
    wp-content/plugins/woocommerce/includes/wc-template-functions.php:1418
    woocommerce_product_description_tab()
    wp-content/themes/flatsome/woocommerce/single-product/tabs/tabs.php:62
    wc_get_template()
    wp-content/plugins/woocommerce/includes/wc-template-functions.php:1622
    the_content()
    wp-content/plugins/woocommerce/templates/single-product/tabs/description.php:33
    apply_filters(‘the_content’)
    wp-includes/post-template.php:240
    wpdreams_rpp_add_below_content()
    wp-includes/class-wp-hook.php:286
    do_shortcode()
    wp-content/plugins/related-posts-pro/includes/hooks.php:246
    preg_replace_callback()
    wp-includes/shortcodes.php:197
    do_shortcode_tag()
    Unknown location
    rppShortcodeContainer->wpdreams_rpp_shortcode()
    wp-includes/shortcodes.php:319
    wpdreams_related_content->getRelatedPosts()
    wp-content/plugins/related-posts-pro/includes/shortcodes.php:163
    wpdreams_related_content->simpleRelated()
    wp-content/plugins/related-posts-pro/includes/related_content.class.php:119
    array_merge()
    wp-content/plugins/related-posts-pro/includes/related_content.class.php:437
    wp-content/plugins/related-posts-pro/includes/related_content.class.php:437

    Warning array_merge(): Argument #1 is not an array 1

    wc_get_template_part()
    wp-content/themes/flatsome/woocommerce/single-product.php:38
    load_template(‘wp-content/themes/flatsome/woocommerce/content-single-product.php’)
    wp-content/plugins/woocommerce/includes/wc-core-functions.php:178
    wc_get_template_part()
    wp-content/themes/flatsome/woocommerce/content-single-product.php:39
    load_template(‘wp-content/themes/flatsome/woocommerce/single-product/layouts/product-no-sidebar.php’)
    wp-content/plugins/woocommerce/includes/wc-core-functions.php:178
    do_action(‘woocommerce_after_single_product_summary’)
    wp-content/themes/flatsome/woocommerce/single-product/layouts/product-no-sidebar.php:67
    woocommerce_output_product_data_tabs()
    wp-includes/class-wp-hook.php:286
    wc_get_template()
    wp-content/plugins/woocommerce/includes/wc-template-functions.php:1418
    woocommerce_product_description_tab()
    wp-content/themes/flatsome/woocommerce/single-product/tabs/tabs.php:62
    wc_get_template()
    wp-content/plugins/woocommerce/includes/wc-template-functions.php:1622
    the_content()
    wp-content/plugins/woocommerce/templates/single-product/tabs/description.php:33
    apply_filters(‘the_content’)
    wp-includes/post-template.php:240
    wpdreams_rpp_add_below_content()
    wp-includes/class-wp-hook.php:286
    do_shortcode()
    wp-content/plugins/related-posts-pro/includes/hooks.php:246
    preg_replace_callback()
    wp-includes/shortcodes.php:197
    do_shortcode_tag()
    Unknown location
    rppShortcodeContainer->wpdreams_rpp_shortcode()
    wp-includes/shortcodes.php:319
    wpdreams_related_content->getRelatedPosts()
    wp-content/plugins/related-posts-pro/includes/shortcodes.php:163
    wpdreams_related_content->simpleRelated()
    wp-content/plugins/related-posts-pro/includes/related_content.class.php:119
    array_merge()
    wp-content/plugins/related-posts-pro/includes/related_content.class.php:437
    wp-content/plugins/related-posts-pro/includes/related_content.class.php:437

    Warning count(): Parameter must be an array or an object that implements Countable 1

    wc_get_template_part()
    wp-content/themes/flatsome/woocommerce/single-product.php:38
    load_template(‘wp-content/themes/flatsome/woocommerce/content-single-product.php’)
    wp-content/plugins/woocommerce/includes/wc-core-functions.php:178
    wc_get_template_part()
    wp-content/themes/flatsome/woocommerce/content-single-product.php:39
    load_template(‘wp-content/themes/flatsome/woocommerce/single-product/layouts/product-no-sidebar.php’)
    wp-content/plugins/woocommerce/includes/wc-core-functions.php:178
    do_action(‘woocommerce_after_single_product_summary’)
    wp-content/themes/flatsome/woocommerce/single-product/layouts/product-no-sidebar.php:67
    woocommerce_output_product_data_tabs()
    wp-includes/class-wp-hook.php:286
    wc_get_template()
    wp-content/plugins/woocommerce/includes/wc-template-functions.php:1418
    woocommerce_product_description_tab()
    wp-content/themes/flatsome/woocommerce/single-product/tabs/tabs.php:62
    wc_get_template()
    wp-content/plugins/woocommerce/includes/wc-template-functions.php:1622
    the_content()
    wp-content/plugins/woocommerce/templates/single-product/tabs/description.php:33
    apply_filters(‘the_content’)
    wp-includes/post-template.php:240
    wpdreams_rpp_add_below_content()
    wp-includes/class-wp-hook.php:286
    do_shortcode()
    wp-content/plugins/related-posts-pro/includes/hooks.php:246
    preg_replace_callback()
    wp-includes/shortcodes.php:197
    do_shortcode_tag()
    Unknown location
    rppShortcodeContainer->wpdreams_rpp_shortcode()
    wp-includes/shortcodes.php:319
    wpdreams_related_content->getRelatedPosts()
    wp-content/plugins/related-posts-pro/includes/shortcodes.php:163
    wpdreams_related_content->simpleRelated()
    wp-content/plugins/related-posts-pro/includes/related_content.class.php:119
    wp-content/plugins/related-posts-pro/includes/related_content.class.php:446

    Plugin: related-posts-pro
    Notice Undefined variable: custom_content 12

    #19765

    Hi!

    Thank you for reporting these as well.

    I have made another patch of these notices. Please replace the same file with this. Let me know if you still get any errors.

    Best,
    Ernest Marcinko

    If you like my products, don't forget to rate them on codecanyon :)


    #19789

    Participant

    Thanks again Ernest!

    That seems to have done it!

    #19977

    Participant

    Hi again Ernest,

    Sorry to bother you again. I’m afraid the messages have come back.
    These are on product pages where the second instance of the plugin is showing. On normal posts, everything’s fine. The errors now read

    Warning array_diff(): Argument #1 is not an array 3

    wc_get_template_part()
    wp-content/themes/flatsome/woocommerce/single-product.php:38
    load_template(‘wp-content/themes/flatsome/woocommerce/content-single-product.php’)
    wp-content/plugins/woocommerce/includes/wc-core-functions.php:178
    wc_get_template_part()
    wp-content/themes/flatsome/woocommerce/content-single-product.php:39
    load_template(‘wp-content/themes/flatsome/woocommerce/single-product/layouts/product-no-sidebar.php’)
    wp-content/plugins/woocommerce/includes/wc-core-functions.php:178
    do_action(‘woocommerce_after_single_product_summary’)
    wp-content/themes/flatsome/woocommerce/single-product/layouts/product-no-sidebar.php:67
    woocommerce_output_product_data_tabs()
    wp-includes/class-wp-hook.php:286
    wc_get_template()
    wp-content/plugins/woocommerce/includes/wc-template-functions.php:1418
    woocommerce_product_description_tab()
    wp-content/themes/flatsome/woocommerce/single-product/tabs/tabs.php:62
    wc_get_template()
    wp-content/plugins/woocommerce/includes/wc-template-functions.php:1622
    the_content()
    wp-content/plugins/woocommerce/templates/single-product/tabs/description.php:33
    apply_filters(‘the_content’)
    wp-includes/post-template.php:240
    wpdreams_rpp_add_below_content()
    wp-includes/class-wp-hook.php:286
    do_shortcode()
    wp-content/plugins/related-posts-pro/includes/hooks.php:246
    preg_replace_callback()
    wp-includes/shortcodes.php:197
    do_shortcode_tag()
    Unknown location
    rppShortcodeContainer->wpdreams_rpp_shortcode()
    wp-includes/shortcodes.php:319
    wpdreams_related_content->getRelatedPosts()
    wp-content/plugins/related-posts-pro/includes/shortcodes.php:163
    wpdreams_related_content->simpleRelated()
    wp-content/plugins/related-posts-pro/includes/related_content.class.php:119
    array_diff()
    wp-content/plugins/related-posts-pro/includes/related_content.class.php:437
    wp-content/plugins/related-posts-pro/includes/related_content.class.php:437

    Plugin: related-posts-pro
    Warning array_merge(): Argument #2 is not an array 1

    wc_get_template_part()
    wp-content/themes/flatsome/woocommerce/single-product.php:38
    load_template(‘wp-content/themes/flatsome/woocommerce/content-single-product.php’)
    wp-content/plugins/woocommerce/includes/wc-core-functions.php:178
    wc_get_template_part()
    wp-content/themes/flatsome/woocommerce/content-single-product.php:39
    load_template(‘wp-content/themes/flatsome/woocommerce/single-product/layouts/product-no-sidebar.php’)
    wp-content/plugins/woocommerce/includes/wc-core-functions.php:178
    do_action(‘woocommerce_after_single_product_summary’)
    wp-content/themes/flatsome/woocommerce/single-product/layouts/product-no-sidebar.php:67
    woocommerce_output_product_data_tabs()
    wp-includes/class-wp-hook.php:286
    wc_get_template()
    wp-content/plugins/woocommerce/includes/wc-template-functions.php:1418
    woocommerce_product_description_tab()
    wp-content/themes/flatsome/woocommerce/single-product/tabs/tabs.php:62
    wc_get_template()
    wp-content/plugins/woocommerce/includes/wc-template-functions.php:1622
    the_content()
    wp-content/plugins/woocommerce/templates/single-product/tabs/description.php:33
    apply_filters(‘the_content’)
    wp-includes/post-template.php:240
    wpdreams_rpp_add_below_content()
    wp-includes/class-wp-hook.php:286
    do_shortcode()
    wp-content/plugins/related-posts-pro/includes/hooks.php:246
    preg_replace_callback()
    wp-includes/shortcodes.php:197
    do_shortcode_tag()
    Unknown location
    rppShortcodeContainer->wpdreams_rpp_shortcode()
    wp-includes/shortcodes.php:319
    wpdreams_related_content->getRelatedPosts()
    wp-content/plugins/related-posts-pro/includes/shortcodes.php:163
    wpdreams_related_content->simpleRelated()
    wp-content/plugins/related-posts-pro/includes/related_content.class.php:119
    array_merge()
    wp-content/plugins/related-posts-pro/includes/related_content.class.php:437
    wp-content/plugins/related-posts-pro/includes/related_content.class.php:437

    Plugin: related-posts-pro
    Warning array_merge(): Argument #1 is not an array 2

    wc_get_template_part()
    wp-content/themes/flatsome/woocommerce/single-product.php:38
    load_template(‘wp-content/themes/flatsome/woocommerce/content-single-product.php’)
    wp-content/plugins/woocommerce/includes/wc-core-functions.php:178
    wc_get_template_part()
    wp-content/themes/flatsome/woocommerce/content-single-product.php:39
    load_template(‘wp-content/themes/flatsome/woocommerce/single-product/layouts/product-no-sidebar.php’)
    wp-content/plugins/woocommerce/includes/wc-core-functions.php:178
    do_action(‘woocommerce_after_single_product_summary’)
    wp-content/themes/flatsome/woocommerce/single-product/layouts/product-no-sidebar.php:67
    woocommerce_output_product_data_tabs()
    wp-includes/class-wp-hook.php:286
    wc_get_template()
    wp-content/plugins/woocommerce/includes/wc-template-functions.php:1418
    woocommerce_product_description_tab()
    wp-content/themes/flatsome/woocommerce/single-product/tabs/tabs.php:62
    wc_get_template()
    wp-content/plugins/woocommerce/includes/wc-template-functions.php:1622
    the_content()
    wp-content/plugins/woocommerce/templates/single-product/tabs/description.php:33
    apply_filters(‘the_content’)
    wp-includes/post-template.php:240
    wpdreams_rpp_add_below_content()
    wp-includes/class-wp-hook.php:286
    do_shortcode()
    wp-content/plugins/related-posts-pro/includes/hooks.php:246
    preg_replace_callback()
    wp-includes/shortcodes.php:197
    do_shortcode_tag()
    Unknown location
    rppShortcodeContainer->wpdreams_rpp_shortcode()
    wp-includes/shortcodes.php:319
    wpdreams_related_content->getRelatedPosts()
    wp-content/plugins/related-posts-pro/includes/shortcodes.php:163
    wpdreams_related_content->simpleRelated()
    wp-content/plugins/related-posts-pro/includes/related_content.class.php:119
    array_merge()
    wp-content/plugins/related-posts-pro/includes/related_content.class.php:437
    wp-content/plugins/related-posts-pro/includes/related_content.class.php:437

    Plugin: related-posts-pro
    Warning count(): Parameter must be an array or an object that implements Countable 1

    wc_get_template_part()
    wp-content/themes/flatsome/woocommerce/single-product.php:38
    load_template(‘wp-content/themes/flatsome/woocommerce/content-single-product.php’)
    wp-content/plugins/woocommerce/includes/wc-core-functions.php:178
    wc_get_template_part()
    wp-content/themes/flatsome/woocommerce/content-single-product.php:39
    load_template(‘wp-content/themes/flatsome/woocommerce/single-product/layouts/product-no-sidebar.php’)
    wp-content/plugins/woocommerce/includes/wc-core-functions.php:178
    do_action(‘woocommerce_after_single_product_summary’)
    wp-content/themes/flatsome/woocommerce/single-product/layouts/product-no-sidebar.php:67
    woocommerce_output_product_data_tabs()
    wp-includes/class-wp-hook.php:286
    wc_get_template()
    wp-content/plugins/woocommerce/includes/wc-template-functions.php:1418
    woocommerce_product_description_tab()
    wp-content/themes/flatsome/woocommerce/single-product/tabs/tabs.php:62
    wc_get_template()
    wp-content/plugins/woocommerce/includes/wc-template-functions.php:1622
    the_content()
    wp-content/plugins/woocommerce/templates/single-product/tabs/description.php:33
    apply_filters(‘the_content’)
    wp-includes/post-template.php:240
    wpdreams_rpp_add_below_content()
    wp-includes/class-wp-hook.php:286
    do_shortcode()
    wp-content/plugins/related-posts-pro/includes/hooks.php:246
    preg_replace_callback()
    wp-includes/shortcodes.php:197
    do_shortcode_tag()
    Unknown location
    rppShortcodeContainer->wpdreams_rpp_shortcode()
    wp-includes/shortcodes.php:319
    wpdreams_related_content->getRelatedPosts()
    wp-content/plugins/related-posts-pro/includes/shortcodes.php:163
    wpdreams_related_content->simpleRelated()
    wp-content/plugins/related-posts-pro/includes/related_content.class.php:119
    wp-content/plugins/related-posts-pro/includes/related_content.class.php:446

    Plugin: related-posts-pro

    #19987

    Hi,

    These seem like the exact same errors as before, from the original file. Can you please make sure, that the file is replaced with this code, as I earlier suggested? Thank you!

    Best,
    Ernest Marcinko

    If you like my products, don't forget to rate them on codecanyon :)


    #20010

    Participant

    Hi Ernest,

    Sorry! I don’t know what could have happened there. I asked my hosts to swap that code. I’m sure they had done, because the error disappeared for a while. I’ll ask them to do it again.

    Thanks!

Viewing 8 posts - 1 through 8 (of 8 total)

You must be logged in to reply to this topic.