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 DaveN 4 years, 6 months ago.
- AuthorPosts
- November 2, 2018 at 7:54 pm #19727
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 1168Any idea what could be going on?
Thanks in advance for your help
November 3, 2018 at 12:57 pm #19729Hi!
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 fileThe error reports should go away.
Best,
Ernest Marcinko
If you like my products, don't forget to rate them on codecanyon :)
November 3, 2018 at 1:07 pm #19731Hi 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 1wp-content/plugins/related-posts-pro/includes/related_content.class.php:437
Plugin: related-posts-pro
Warning array_merge(): Argument #1 is not an array 1wp-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 1wp-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:437Warning 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:437Warning 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:437Warning 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:446Plugin: related-posts-pro
Notice Undefined variable: custom_content 12November 5, 2018 at 1:57 pm #19765Hi!
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 :)
November 5, 2018 at 5:11 pm #19789Thanks again Ernest!
That seems to have done it!
November 16, 2018 at 4:19 pm #19977Hi 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 readWarning 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:437Plugin: related-posts-pro
Warning array_merge(): Argument #2 is not an array 1wc_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:437Plugin: related-posts-pro
Warning array_merge(): Argument #1 is not an array 2wc_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:437Plugin: related-posts-pro
Warning count(): Parameter must be an array or an object that implements Countable 1wc_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:446Plugin: related-posts-pro
November 19, 2018 at 10:57 am #19987Hi,
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 :)
November 20, 2018 at 3:12 pm #20010Hi 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!
- AuthorPosts
You must be logged in to reply to this topic.