• I have been receiving an ‘e is undefined’ error with a red x for PHP snippets on several of my client sites. It doesn’t seem to interfere with the running of the snippet. This is mostly annoying since ‘e is undefined’ is generally a JavaScript error. I should not be seeing this error in a PHP snippet.

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Shea Bunge

    (@bungeshea)

    Can you provide a screenshot of this error showing up?

    Thread Starter Victor Font

    (@vfontj)

    Sure! Here it is…

    Snippits Error Image

    • This reply was modified 3 years, 7 months ago by Victor Font.
    Thread Starter Victor Font

    (@vfontj)

    I found the PHP error that caused the “e is undefined”. If you look at line 8 in the image, the code has an extra semi-colon. The code reads:

    global $wpdb;, $user_ID;

    It should be:

    global $wpdb, $user_ID;

    For some reason, the syntax checker doesn’t know how to process this error.

    Plugin Author Shea Bunge

    (@bungeshea)

    If the syntax will cause a fatal error in PHP, do you think it’s necessary to add support for it to the linter?

    I tried the code out myself and couldn’t see the ‘e is undefined’ message, so it may have been fixed in the latest version of the linter we use.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘e is undefined’ is closed to new replies.