WordPress.org

Ready to get started?Download WordPress

Forums

Q and A FAQ and Knowledge Base for WordPress
Notice: Undefined variable: qa_version in q-and-a (8 posts)

  1. Dylan Kuhn
    Member
    Posted 2 years ago #

    This notice shows up with WP_DEBUG on. Just need to declare $qa_version as a global in the qa_init() function to fix this.

    http://wordpress.org/extend/plugins/q-and-a/

  2. Dalton
    Member
    Plugin Author

    Posted 2 years ago #

    Thanks for the heads up, can't believe I missed this one...

  3. randykepple
    Member
    Posted 2 years ago #

    Is this being resolved with an update? I actually had this pop up on my blog this morning, seemingly out of nowhere.

    The error message showing is:

    Notice: Undefined variable: qa_version in /wp-content/plugins/q-and-a/q-and-a.php on line 188

    Notice: Undefined variable: qa_version in /wp-content/plugins/q-and-a/q-and-a.php on line 189

  4. Dalton
    Member
    Plugin Author

    Posted 2 years ago #

    What version are you using? This was fixed in the latest update.

  5. randykepple
    Member
    Posted 2 years ago #

    I'm using version 0.2.7...

    It seemingly happened overnight. Everything was working yesterday and this morning, the error message string was showing on the site. I've deactivated it for now.

  6. Dalton
    Member
    Plugin Author

    Posted 2 years ago #

    Just turn off WP_DEBUG, the error will go away.

  7. randykepple
    Member
    Posted 2 years ago #

    This is where things get tricky for me. I'm NOT a developer. :)

    Looked up WP_DEBUG and found this in the codex:

    The WP_DEBUG option, added in WordPress Version 2.3.1, controls the display of some errors and warnings. If this setting is absent from wp-config.php, then the value is assumed to be false.

    I checked my config file and it's not displaying, so from the information I just posted, I'm assuming the value to be false. Am I missing something?

  8. randykepple
    Member
    Posted 2 years ago #

    Dalton... I figured it out... added the debug code and set values to false and turned on the plugin and error messages went away...

    Thanks!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags