Lightbox Plus Colorbox
Fix for PHP Notice in your Plugin (2 posts)

  1. railszilla
    Posted 3 years ago #


    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


  2. railszilla
    Posted 3 years ago #

    and to fix another error:

    please put in line 203

    $lightboxPlusOptions = array();

    otherwise you will get an undefined variable

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic