WordPress.org

Ready to get started?Download WordPress

Forums

Picasna
Width & Height Not Set (5 posts)

  1. zymotik
    Member
    Posted 3 years ago #

    I have installed the latest version from your site. It converts my link to a gallery, but it doesn't appear. After closer inspection, I see that the flash <object> tag is there but the height & width are set to "". It may be because the 'settings' option does not appear on the plug-in's page so I can't set these values? An issue with WP 3.1 I guess.

    Thanks for an good plug-in, I'm sure its great when it works!

    Cheers,

    Ian

  2. zymotik
    Member
    Posted 3 years ago #

    Hope this helps, from the post the link is on:

    Notice: Use of undefined constant PICASNA_MAXSIZE - assumed 'PICASNA_MAXSIZE' in \wp-content\plugins\picasna\picasna-functions.php on line 6

    Notice: Use of undefined constant PICASNA_THUMBSIZE - assumed 'PICASNA_THUMBSIZE' in \wp-content\plugins\picasna\picasna-functions.php on line 14

    Notice: Use of undefined constant PICASNA_COVERSIZE - assumed 'PICASNA_COVERSIZE' in \wp-content\plugins\picasna\picasna-functions.php on line 22

    Notice: Use of undefined constant PICASNA_COLOR - assumed 'PICASNA_COLOR' in \wp-content\plugins\picasna\picasna-functions.php on line 31

    Notice: Use of undefined constant PICASNA_COVERTITLE - assumed 'PICASNA_COVERTITLE' in \wp-content\plugins\picasna\picasna-functions.php on line 38

    Notice: Use of undefined constant PICASNA_BADGETYPE - assumed 'PICASNA_BADGETYPE' in \wp-content\plugins\picasna\picasna-functions.php on line 45

    Notice: Use of undefined constant PICASNA_UPDATE - assumed 'PICASNA_UPDATE' in \wp-content\plugins\picasna\picasna-functions.php on line 53

    Notice: Use of undefined constant PICASNA_CACHETIME - assumed 'PICASNA_CACHETIME' in \wp-content\plugins\picasna\picasna-functions.php on line 143

    Notice: Undefined offset: 1 in \wp-content\plugins\picasna\picasna-functions.php on line 275

    Notice: Undefined variable: noUpdate in \wp-content\plugins\picasna\picasna-functions.php on line 154

    Notice: Undefined variable: albumcover in \wp-content\plugins\picasna\picasna-functions.php on line 165

    Notice: Undefined variable: coverwidth in \wp-content\plugins\picasna\picasna-functions.php on line 167

    Notice: Undefined variable: coverheight in \wp-content\plugins\picasna\picasna-functions.php on line 167

    Notice: Undefined variable: coverwidth in \wp-content\plugins\picasna\picasna-functions.php on line 167

    Notice: Undefined variable: coverheight in \wp-content\plugins\picasna\picasna-functions.php on line 167

    Notice: Undefined variable: coverwidth in \wp-content\plugins\picasna\picasna-functions.php on line 167

    Notice: Undefined variable: coverheight in \wp-content\plugins\picasna\picasna-functions.php on line 167

  3. zymotik
    Member
    Posted 3 years ago #

    Fixed most of the undefined constants by adding single quotes to the defined function in the picasna-functions.php file, ie:

    if (!defined(PICASNA_MAXSIZE)){

    with:

    if (!defined('PICASNA_MAXSIZE')){

  4. zymotik
    Member
    Posted 3 years ago #

    Added missing script to top of picasna-function.php:

    if (!defined('PICASNA_CACHETIME')){
    $picasna_cachetime = (int) get_option( PICASNA_OPTION . 'cachtime' );
    define('PICASNA_CACHETIME', $picasna_cachetime);
    }

  5. zymotik
    Member
    Posted 3 years ago #

    Added to line 170 of picasna-functions.php:

    if ($coverwidth == 0) {$coverwidth =144;}
    if ($coverheight == 0) {$coverheight =144;}

    Fixed/Botched for now.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags