• I’ve WP_DEBUG enabled and getting the error_log filled with these:

    PHP Notice: Undefined index: page in \wp.mydomain.com\wp-content\plugins\ultimate-reviews\Main.php on line 258

    The culprit points to here:

    
    258: if (get_option("URP_Run_Tutorial") == "Yes" and $_GET['page'] == 'EWD-URP-Options') {
    	add_action( 'admin_enqueue_scripts', 'URP_Set_Pointers', 10, 1);
    }
    

    changing $_GET['page'] to @$_GET['page'] seems to workaround the issue.

    EDIT: Similarly applies to:
    PHP Notice: Undefined variable: Display_Tab in \wp.mydomain.com\wp-content\plugins\ultimate-reviews\html\OptionsPage.php on lines 153 to 159

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter alx359

    (@alx359)

    The PHP notices continue and they’re a lot. Please enable wp_debug and fix these. It gives the impression of sloppy coding, which ain’t good for a premium plugin (and also it’s messing with my own coding work.)

    BTW, the $Display_Tab issue seems affecting usability of the Options subtabs (Basic, Premium, etc). When saving stuff the form isn’t posting back to the proper subtab view.

    Plugin Contributor etoilewebdesign

    (@etoilewebdesign)

    Hi alx,

    Thanks for letting us know about these. We’re always working to eliminate notices like this. That being said, they are indeed just notices and not errors, and are only showing because you have debug mode enabled. They do not affect functionality. Once you go live and disable debug mode, you’ll see that the notices don’t show and that everything functions as it should.

    Thread Starter alx359

    (@alx359)

    If you read carefully the 2nd post, may notice the “notice” hides a bug…

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Undefined index: page’ is closed to new replies.