WPIntell

Source evidence

PHP fatal error issue

Affiliates for WooCommerce – Affiliate Program, Referral Tracking & Commissions · support · 2026-07-01T09:39:00+00:00

mixedsentiment
highseverity
0.88relevance
3replies
Evidence linked to opportunitycommercial context

Proof Health

Open evidence

Commercial opportunities need traceable source links before they are treated as build-worthy.

7 / 33 rows with source links

21.2% of this page's analysis has direct source links.

0 build-decision rows missing links

0 rows here require auditable proof before promotion.

26 rows with no attached evidence

0 rows have source counts but still need direct links.

Conversation

support
ehsan82 resolved
Hello, I put affiliate dashboard shortcode on a page. While trying to open it with elementor for editing it is giving error 500 for elementor and I need to enable safe mode to edit the page. While i was trying to access the page directly from admin dashboard it doesn’t load. I have got some error log data from my site backend. I am sharing the code with you. [01-Jul-2026 05:45:27 UTC] PHP Fatal error: Uncaught TypeError: in_array(): Argument #2 ($haystack) must be of type array, string given in /home/ajoofy-cst/htdocs/cst.ajoofy.com/wp-content/plugins/affiliates-for-woocommerce/helper/affiliate/affiliate-helper.php:302 Stack trace: #0 /home/ajoofy-cst/htdocs/cst.ajoofy.com/wp-content/plugins/affiliates-for-woocommerce/helper/affiliate/affiliate-helper.php(302): in_array() #1 /home/ajoofy-cst/htdocs/cst.ajoofy.com/wp-content/plugins/affiliates-for-woocommerce/templates/shortcodes/affiliate-dashboard.php(83): DDWCAffiliates\Helper\Affiliate\DDWCAF_Affiliate_Helper->ddwcaf_is_user_allowed_for_affiliate() #2 /home/ajoofy-cst/htdocs/cst.ajoofy.com/wp-content/plugins/affiliates-for-woocommerce/includes/front/front-functions.php(185): require(‘…’) #3 /home/ajoofy-cst/htdocs/cst.ajoofy.com/wp-includes/shortcodes.php(434): DDWCAffiliates\Includes\Front\DDWCAF_Front_Functions->ddwcaf_get_affiliate_dashboard_shortcode_shortcode_content() #4 [internal function]: do_shortcode_tag() #5 /home/ajoofy-cst/htdocs/cst.ajoofy.com/wp-includes/shortcodes.php(273): preg_replace_callback() #6 /home/ajoofy-cst/htdocs/cst.ajoofy.com/wp-includes/class-wp-hook.php(341): do_shortcode() #7 /home/ajoofy-cst/htdocs/cst.ajoofy.com/wp-includes/plugin.php(205): WP_Hook->apply_filters() #8 /home/ajoofy-cst/htdocs/cst.ajoofy.com/wp-includes/post-template.php(256): apply_filters() #9 /home/ajoofy-cst/htdocs/cst.ajoofy.com/wp-content/themes/besa/page.php(33): the_content() #10 /home/ajoofy-cst/htdocs/cst.ajoofy.com/wp-includes/template-loader.php(132): include(‘…’) #11 /home/ajoofy-cst/htdocs/cst.ajoofy.com/wp-blog-header.php(19): require_once(‘…’) #12 /home/ajoofy-cst/htdocs/cst.ajoofy.com/index.php(17): require(‘…’) #13 {main} thrown in /home/ajoofy-cst/htdocs/cst.ajoofy.com/wp-content/plugins/affiliates-for-woocommerce/helper/affiliate/affiliate-helper.php on line 302 Hi @ehsan82 I hope you are doing well… You must have not selected user roles from this config so please add user roles and you will not face any issues – https://prnt.sc/ZvVqy1VUCPYF Thanks & Regards Hi @yashkapoor Yes! The issue is resolved. Thanks with best regards Hi @ehsan82 Thanks for the confirmation and hoping to receive your valuable review for our plugin. Thanks

Comments

3 shown
Yash Kapoor 2026-07-01T09:45:00+00:00

Hi @ehsan82 I hope you are doing well… You must have not selected user roles from this config so please add user roles and you will not face any issues – https://prnt.sc/ZvVqy1VUCPYF Thanks & Regards

ehsan82 2026-07-01T10:05:00+00:00

Hi @yashkapoor Yes! The issue is resolved. Thanks with best regards

Yash Kapoor 2026-07-01T10:06:00+00:00

Hi @ehsan82 Thanks for the confirmation and hoping to receive your valuable review for our plugin. Thanks