Ufaq widget
-
Hi. I’m trying to use the ufaq widget to display select faqs on my front page. The faqs appear but there are errors output for those faqs not selected.
Please see http://wp.mdcee.org for an example of what I’m referring to.
My ufaq widget has a single FAQ Id in the faq Id list field.
-
After doing a little debugging, I found the issue in the file content/plugins/ultimate-faqs/Shortcodes/SelectFAQ.php
The problem occurs in the code that is looking at the Social media content stuff.
if(in_array(“Facebook”, $Socialmedia)) {$ReturnString .= EWD_UFAQ_Add_Social_Media_Buttons(“Facebook”, $FAQ_Permalink, $faq->post_title);}
if(in_array(“Google”, $Socialmedia)) {$ReturnString .= EWD_UFAQ_Add_Social_Media_Buttons(“Google”, $FAQ_Permalink, $faq->post_title);}
if(in_array(“Twitter”, $Socialmedia)) {$ReturnString .= EWD_UFAQ_Add_Social_Media_Buttons(“Twitter”, $FAQ_Permalink, $faq->post_title);}
if(in_array(“Linkedin”, $Socialmedia)) {$ReturnString .= EWD_UFAQ_Add_Social_Media_Buttons(“Linkedin”, $FAQ_Permalink, $faq->post_title);}
if(in_array(“Pinterest”, $Socialmedia)) {$ReturnString .= EWD_UFAQ_Add_Social_Media_Buttons(“Pinterest”, $FAQ_Permalink, $faq->post_title);}
if(in_array(“Email”, $Socialmedia)) {$ReturnString .= EWD_UFAQ_Add_Social_Media_Buttons(“Email
Right now, I’m not using this part of Ultimate-FAQ so I have commented it out which is allowing the widget to work.
Hi kpoindexter,
Would it be possible for you to copy and paste the errors that have been displayed? It would give us a hint on what is going on. 🙂
Regards,
Sure- Here’s a copy of the errors that were displaying. As I said in a previous comment, I searched SelectFAQ.php for reference to in_array and found that these errors seem to be related to the code that deals with social media links.
Warning: in_array() expects parameter 2 to be array, null given in /home/kpoindexter0625k/public_html/wp/wp-content/plugins/ultimate-faqs/Shortcodes/SelectFAQ.php on line 97
Warning: in_array() expects parameter 2 to be array, null given in /home/kpoindexter0625k/public_html/wp/wp-content/plugins/ultimate-faqs/Shortcodes/SelectFAQ.php on line 98
Warning: in_array() expects parameter 2 to be array, null given in /home/kpoindexter0625k/public_html/wp/wp-content/plugins/ultimate-faqs/Shortcodes/SelectFAQ.php on line 99
Warning: in_array() expects parameter 2 to be array, null given in /home/kpoindexter0625k/public_html/wp/wp-content/plugins/ultimate-faqs/Shortcodes/SelectFAQ.php on line 100
Warning: in_array() expects parameter 2 to be array, null given in /home/kpoindexter0625k/public_html/wp/wp-content/plugins/ultimate-faqs/Shortcodes/SelectFAQ.php on line 101
Warning: in_array() expects parameter 2 to be array, null given in /home/kpoindexter0625k/public_html/wp/wp-content/plugins/ultimate-faqs/Shortcodes/SelectFAQ.php on line 96
Warning: in_array() expects parameter 2 to be array, null given in /home/kpoindexter0625k/public_html/wp/wp-content/plugins/ultimate-faqs/Shortcodes/SelectFAQ.php on line 97
Warning: in_array() expects parameter 2 to be array, null given in /home/kpoindexter0625k/public_html/wp/wp-content/plugins/ultimate-faqs/Shortcodes/SelectFAQ.php on line 98
Warning: in_array() expects parameter 2 to be array, null given in /home/kpoindexter0625k/public_html/wp/wp-content/plugins/ultimate-faqs/Shortcodes/SelectFAQ.php on line 99
Warning: in_array() expects parameter 2 to be array, null given in /home/kpoindexter0625k/public_html/wp/wp-content/plugins/ultimate-faqs/Shortcodes/SelectFAQ.php on line 100
Warning: in_array() expects parameter 2 to be array, null given in /home/kpoindexter0625k/public_html/wp/wp-content/plugins/ultimate-faqs/Shortcodes/SelectFAQ.php on line 101
Warning: in_array() expects parameter 2 to be array, null given in /home/kpoindexter0625k/public_html/wp/wp-content/plugins/ultimate-faqs/Shortcodes/SelectFAQ.php on line 96
Warning: in_array() expects parameter 2 to be array, null given in /home/kpoindexter0625k/public_html/wp/wp-content/plugins/ultimate-faqs/Shortcodes/SelectFAQ.php on line 97
Warning: in_array() expects parameter 2 to be array, null given in /home/kpoindexter0625k/public_html/wp/wp-content/plugins/ultimate-faqs/Shortcodes/SelectFAQ.php on line 98
Warning: in_array() expects parameter 2 to be array, null given in /home/kpoindexter0625k/public_html/wp/wp-content/plugins/ultimate-faqs/Shortcodes/SelectFAQ.php on line 99
Warning: in_array() expects parameter 2 to be array, null given in /home/kpoindexter0625k/public_html/wp/wp-content/plugins/ultimate-faqs/Shortcodes/SelectFAQ.php on line 100
Warning: in_array() expects parameter 2 to be array, null given in /home/kpoindexter0625k/public_html/wp/wp-content/plugins/ultimate-faqs/Shortcodes/SelectFAQ.php on line 101
Hi kpoindexter!,
Thank you for sharing the information! We will fix and update the plugin this afternoon so that you do not have these warnings anymore. Your FAQs should display properly afterwards. 😀
Regards,
Thank you so much.
The topic ‘Ufaq widget’ is closed to new replies.