• I am trying to get this new plugin to work and I am sure I have a stupid error somewhere. Now this plugin doesn’t do everything I would like it to but it seems to be at least trying to match the rest of my blog.

    The plugin is here:

    https://www.lazyboy.dk/wordpress/?page_id=14

    And this is my error:

    Warning: main(topbanner.php): failed to open stream: No such file or directory in /home/tekwh0re/public_html/wp/lazy-index.php on line 16

    Warning: main(): Failed opening ‘topbanner.php’ for inclusion (include_path=’.:/usr/lib/php:/usr/local/lib/php’) in /home/tekwh0re/public_html/wp/lazy-index.php on line 16

    I just know I did something stupid.

    https://www.lazyboy.dk

Viewing 15 replies - 1 through 15 (of 25 total)
  • Moderator James Huff

    (@macmanx)

    It looks like the file topbanner.php does not exist, but it’s not part of Lazy Image. Is it part of your theme? You may want to contact the plugin developer.

    Thread Starter Tek

    (@tek)

    It’s part of my theme. plugin was made for kubrick but it seems like it is easy to switch save for my terrible php skills. Its working… save for THAT.

    This is what I have:

    <?php
    /* Don't remove this line. */
    require('./wp-blog-header.php');
    ?>

    <?php get_header(); ?>

    <?php // get the nav etc ?>
    <?php include "topbanner.php"; ?>

    This last line
    <?php include "topbanner.php"; ?>
    I’d try in this way:
    <?php include ('topbanner.php'); ?>

    Thread Starter Tek

    (@tek)

    Nope.

    It must be a path that isn’t right somewhere. =(

    <?php load_template( TEMPLATEPATH . '/topbanner.php'); ?>
    wouldn’t work would it? TEMPLATEPATH as is and doesn’t need messing around with. It works with custom templates, but not sure if it’s relevant here. Maybe?

    Thread Starter Tek

    (@tek)

    Nope.

    So odd… Its pulling the footer up just fine!

    Thread Starter Tek

    (@tek)

    I got this to work- but by NOT using some includes because they just weren’t working for me.

    I am pleased!

    If this guy can add some more features, save for a bit of tweaking with the gallery’s index file- I have a gallery that now intergrates smoothly with the look of my site.

    BRAVO!!

    FINALLY!

    The gallery seems to work fine, but I have the following warnings on my Dashboard:

    Warning: Cannot modify header information – headers already sent by (output started at /home/site/public_html/wp-content/plugins/lazy-gallery.php:248) in /home/site/public_html/wp-admin/admin.php on line 6

    Warning: Cannot modify header information – headers already sent by (output started at /home/site/public_html/wp-content/plugins/lazy-gallery.php:248) in /home/site/public_html/wp-admin/admin.php on line 7

    Warning: Cannot modify header information – headers already sent by (output started at /home/site/public_html/wp-content/plugins/lazy-gallery.php:248) in /home/site/public_html/wp-admin/admin.php on line 8

    Warning: Cannot modify header information – headers already sent by (output started at /home/site/public_html/wp-content/plugins/lazy-gallery.php:248) in /home/site/public_html/wp-admin/admin.php on line 9

    Please advise.

    Moderator James Huff

    (@macmanx)

    that was it. thanks!

    Not sure if this is hijacking the thread/topic … apologies if so …

    I have this plug-in set up and it appears to be sort of working … I put two images in the gallery folder. When I navigate to my lazy-index.php file, I get two small gray boxes instead of thumbnails. When I click on one of those, instead of the images, I get:

    Warning: imagesx(): supplied argument is not a valid Image resource in /usr/home/b/bowie-capo/www/htdocs/wp-content/plugins/lazy-gallery.php on line 165

    Warning: imagesy(): supplied argument is not a valid Image resource in /usr/home/b/bowie-capo/www/htdocs/wp-content/plugins/lazy-gallery.php on line 166

    Warning: imagedestroy(): supplied argument is not a valid Image resource in /usr/home/b/bowie-capo/www/htdocs/wp-content/plugins/lazy-gallery.php on line 167

    The offending code is …

    $xsize = (imagesx($img));
    $ysize = (imagesy($img));
    imagedestroy($img);

    I thought it was a problem with the image files … I reloaded them, but same result … any ideas??

    Thread Starter Tek

    (@tek)

    Curious.

    In you gallery install did you make then folder to put the images in or did you just install into the root of the gallery folder?

    I set the gallery to wp-images … which is at the root … So .. to be specific, the blog is at
    https://balancecapoeira.com/index.php

    and the gallery index is at

    https://balancecapoeira.com/wp-gallery/lazy-index.php

    In lazy-gallery.php (in plugins) Ihave …
    $gallery_address = ‘/wp-gallery/’;

    Seems that’s how it should be … one thing I realized, I didn’t try removing the trailing ‘/’ .. but that’s the way the example was.

    <i>Seems that’s how it should be … one thing I realized, I didn’t try removing the trailing ‘/’ .. but that’s the way the example was.</i>

    Nope … that doesn’t work ?? not even a gray box to be seen.

    Moderator James Huff

    (@macmanx)

    Make sure that you’re using the latest version (v0.4): https://www.lazyboy.dk/wordpress/?page_id=14

Viewing 15 replies - 1 through 15 (of 25 total)
  • The topic ‘Lazy Gallery’ is closed to new replies.