WPIntell

Source evidence

Undefined index

WP Related Posts and Products (WRI) · support · 2015-07-27T08:16:00+00:00

complaintsentiment
mediumseverity
0.81relevance
1replies
Evidence linked to opportunitycommercial context

Proof Health

Open evidence

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

4 / 32 rows with source links

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

0 build-decision rows missing links

0 rows here require auditable proof before promotion.

28 rows with no attached evidence

0 rows have source counts but still need direct links.

Conversation

support
dooza unresolved
Hi there, Using the current version of plugin and WordPress, I am getting the following error in my logs: Undefined index: wri_used_posttypes in /home/aclighti/public_html/test/wp-content/plugins/wp-related-items/wri.php on line 406 Any ideas? Cheers, Steve https://wordpress.org/plugins/wp-related-items/ Hi Steve! Please check if you set at least one post type in “Post types used by WRI” checkbox group on General settings tab of the plugin. I think the main reason of the problem can be that there is not any post type selected there. I suppose if “Post types used by WRI” checkbox are set, this problem does not occur. However this setting causes a problem in the plugin, what we will fix in the following version. It can be done manually by changing 406 line of wri.php: original line: if ( is_array( $wri_general_settings['wri_used_posttypes'] ) ) { new, fixed line: if ( isset( $wri_general_settings['wri_used_posttypes'] ) && is_array( $wri_general_settings['wri_used_posttypes'] ) ) { You can do this modification since the next release issued. Cheers, Peter

Comments

1 shown
WebshopLogic 2015-07-28T06:04:00+00:00

Hi Steve! Please check if you set at least one post type in “Post types used by WRI” checkbox group on General settings tab of the plugin. I think the main reason of the problem can be that there is not any post type selected there. I suppose if “Post types used by WRI” checkbox are set, this problem does not occur. However this setting causes a problem in the plugin, what we will fix in the following version. It can be done manually by changing 406 line of wri.php: original line: if ( is_array( $wri_general_settings['wri_used_posttypes'] ) ) { new, fixed line: if ( isset( $wri_general_settings['wri_used_posttypes'] ) && is_array( $wri_general_settings['wri_used_posttypes'] ) ) { You can do this modification since the next release issued. Cheers, Peter