WordPress.org

Forums

I Recommend This
[resolved] Plugin throwing Undefined Index errors. (10 posts)

  1. sebabornia
    Member
    Posted 1 year ago #

    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!

    http://wordpress.org/plugins/i-recommend-this/

  2. Harish Chouhan
    Member
    Plugin Author

    Posted 1 year ago #

    Hi @sebabornia,

    can you please share the website link if its live.

  3. sebabornia
    Member
    Posted 1 year ago #

    Harish,

    Thanks for the quick response! I appreciate it. Here's the page: http://demo.explora.com.uy/hiker/

    Regards,
    Sebstian

  4. Harish Chouhan
    Member
    Plugin Author

    Posted 1 year ago #

    Hi Sebstian. Yup just saw the errors what you mentioned. I can't promise a timeline, but give me a few days to test the plugin on a fresh WP install so I can then try to fix the errors.

    Thanks for sharing some inputs about the error, this probably will save some time in fixing it.

    P.S. Awesome theme.

  5. sebabornia
    Member
    Posted 1 year ago #

    Ok cool!

    Thanks for the kind words! If you ever need to use it just let me know and I'll get you a free copy :)

    Cheers!

  6. sebabornia
    Member
    Posted 1 year ago #

    Hi!

    Did you get a chance to look into this?

    Thanks!

  7. Harish Chouhan
    Member
    Plugin Author

    Posted 1 year ago #

    Hi @sebabornia,

    Am afraid I have not yet fixed it. I am trying to update the code with sanitization and other improvements, but in case I am unable to, I will try to at least fix the code within next 8 days and release an update.

  8. sebabornia
    Member
    Posted 1 year ago #

    Cool.. Thanks, I appreciate it a lot!

  9. Harish Chouhan
    Member
    Plugin Author

    Posted 1 year ago #

    Hi @sebabornia.

    I have finally managed to fix the issue. Over next 2 months will look into enhancing the speed of the plugin and also increasing its security. This plugin is used on 2 high traffic sites Flat Trendz & One Page Mania so it helps me collect stats and test when active with caching plugin. Which is a little bit of issue if a high traffic site is hosted on cheap hosting with caching on.

    Let me know if you run across any other issues.

  10. sebabornia
    Member
    Posted 1 year ago #

    Awesome! Thank you so much for maintaining this great plugin so actively :)

    Have a nice day!

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • I Recommend This
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

Tags

No tags yet.