Plugin throwing Undefined Index errors.
-
Hi! Great plugin, I love it! I’m having an issue though, that is about to drive me crazy.. I get these messages for each like button:
Notice: Undefined index: disable_unique_ip in /Library/WebServer/Documents/hiker/wp-content/plugins/i-recommend-this/dot-irecommendthis.php on line 587 Notice: Undefined index: link_title_active in /Library/WebServer/Documents/hiker/wp-content/plugins/i-recommend-this/dot-irecommendthis.php on line 608
The problem seems to be in this line:
if( $options['disable_unique_ip'] != '0' ) {
I debugged a bit and found that $options[‘disable_unique_ip’] becomes null after the plugin calls this function:
$options = get_option( 'dot_irecommendthis_settings' );
,
before that,
$options['disable_unique_ip']
equals"0"
.I’m calling the plugin using the shortcode, like this:
do_shortcode('[dot_recommends id="'.$block["related_post_id"].'"]')
Thank you very much in advance for your help!
Viewing 9 replies - 1 through 9 (of 9 total)
Viewing 9 replies - 1 through 9 (of 9 total)
- The topic ‘Plugin throwing Undefined Index errors.’ is closed to new replies.