• Resolved violacase

    (@violacase)


    Theme TwentyFourteen with active DEBUG says:
    Notice: Undefined variable: genericon_rotate in /path/to/genericons.php on line 116

    TIP: It’s a silly little bug. Better test your plugins fully with debugger before publishing.

Viewing 6 replies - 16 through 21 (of 21 total)
  • Thread Starter violacase

    (@violacase)

    Gee…
    I’ll reproduce the bug:

    In your plugin comment line 112 $genericon_rotate = 'genericon-rotate-normal';

    Now you have an undefined var.

    Create a post with this single line in the content area:
    [genericon icon=flag]

    View the post. Voilá.

    I end this conversation: have better things to do.

    Plugin Author Ipstenu (Mika Epstein)

    (@ipstenu)

    🏳️‍🌈 Advisor and Activist

    Where does the error display?

    I did that and did not get an error in the WP debug bar, debug output, or debulg log. Hence my confusion. That’s why I keep asking where 🙂

    Thread Starter violacase

    (@violacase)

    OK.
    With júst WP_DEBUG true:

    Look at this page on a test site

    Plugin Author Ipstenu (Mika Epstein)

    (@ipstenu)

    🏳️‍🌈 Advisor and Activist

    Thank you. I still can’t reproduce that, but I’m gonna keep trying since it implies an outlier issue with code in general I need to be aware of.

    Thread Starter violacase

    (@violacase)

    My last words Mika.

    It’s very simple to reproduce, but please follow the steps I describe.

    Step 1. Read this.
    Step 2. Be sure that in the file wp-config.php (in the root of your site) this line exists:
    define('WP_DEBUG', true);
    Step 3. Follow the steps I mentioned earlier. E.g.:

    In your plugin comment or DELETE line 112 $genericon_rotate = ‘genericon-rotate-normal’;

    (Now you have an undefined var)

    Create a post with this single line in the content area:
    [genericon icon=flag]

    Save and view the post. You’ll see WordPress echoes the bug notice.

    It that doesn’t give you the solution I’m helpless and you have to seek for others who would like to help you.

    Plugin Author Ipstenu (Mika Epstein)

    (@ipstenu)

    🏳️‍🌈 Advisor and Activist

    Yeah, I did all that. That’s why I’m confiused too! 😀

Viewing 6 replies - 16 through 21 (of 21 total)

The topic ‘Debugger notice’ is closed to new replies.