Conversation
supportHi 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
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