Support » Plugins and Hacks » Fix for PHP Notice in your Plugin

Fix for PHP Notice in your Plugin

  • railszilla



    your plugin has an undefinded variable ($theOptions)

    please update your plugin at line 248 as follow:

                * Retrieves the options from the database.
                * @param mixed $optionsName
                function getAdminOptions( $optionsName ) {
                    $savedOptions = get_option( $optionsName );
                    $theOptions = array();
                    if ( !empty( $savedOptions ) ) {
                        foreach ( $savedOptions as $key => $option ) {
                            $theOptions[$key] = $option;
                    update_option( $optionsName, $theOptions );
                    return $theOptions;

    [Please post code & markup between backticks or use the code button. Your posted code may now have been permanently damaged by the forum’s parser.]

    Please see the line 255 which you have to add
    best regards


  • The topic ‘Fix for PHP Notice in your Plugin’ is closed to new replies.