Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Jeff Starr

    (@specialk)

    What exactly is the warning, and when is it triggered (so I can reproduce the error before changing any code – currently not seeing anything with the new admin option either enabled or disabled while surfing around the site). Thanks.

    Thread Starter danielkun

    (@danielkun)

    Shows up everywhere in admin after the update:

    Notice: Undefined index: admin_area in /Users/xxx/wp-content/plugins/ga-google-analytics/ga-google-analytics.php on line 107

    Try using a clean database, maybe that will help reproduce it.

    Call Stack
    # Time Memory Function Location
    1 0.0003 276608 {main}( ) ../index.php:0
    2 0.0006 335168 require_once( ‘/Users/xxx/wp-admin/admin.php’ ) ../index.php:10
    3 0.0008 350456 require_once( ‘/Users/xxx/wp-load.php’ ) ../admin.php:31
    4 0.0009 360456 require_once( ‘/Users/xxx/wp-config.php’ ) ../wp-load.php:29
    5 0.0013 441104 require_once( ‘/Users/xxx/wp-settings.php’ ) ../wp-config.php:84
    6 0.1030 15833816 include_once( ‘/Users/xxx/wp-content/plugins/ga-google-analytics/ga-google-analytics.php’ ) ../wp-settings.php:215

    Plugin Author Jeff Starr

    (@specialk)

    Oh, that is a “Notice”, not a “Warning”. Also, it only happens one time, when the new option is added to the database. After that, it the Notice disappears, FYI.

    Thread Starter danielkun

    (@danielkun)

    Alright ??
    It may still be a good idea to add an isset() check to avoid Notices directly after enabling the plugin. Doesn’t give a good first impression ??

    Thanks for the fast response.

    Plugin Author Jeff Starr

    (@specialk)

    Lol, yeah right ??

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘PHP Typo in 20150314’ is closed to new replies.