Forums

Q and A - FAQ Plugin
Notice: Undefined variable: qa_version in q-and-a (8 posts)

  1. Dylan Kuhn
    Member
    Posted 3 months 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 Rooney
    Member
    Posted 3 months ago #

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

  3. randykepple
    Member
    Posted 2 months 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 Rooney
    Member
    Posted 2 months ago #

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

  5. randykepple
    Member
    Posted 2 months 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 Rooney
    Member
    Posted 2 months ago #

    Just turn off WP_DEBUG, the error will go away.

  7. randykepple
    Member
    Posted 2 months 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 months 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!

Reply

You must log in to post.

About this Plugin

About this Topic

Tags