zenphoto forums » General Zenphoto Discussion

Upgraded to 1.4.2, images won't show unless logged in

(8 posts)
  • Started 1 year ago by memphis2k
  • Latest reply from acrylian
  1. memphis2k

    Junior
    Joined: Mar '11
    Posts: 6

    Hello,

    After upgrading from 1.4.2 from 1.4.0.3, I noticed that my images were coming up right. In Gallery, I just get the default image placeholder. And in Albums, I don't get anything to show up at all.

    Here is an example of the image links:

    SIGNED IN:
    http://adjenz.com/funnypics/cache/34%20Reasons%20Not%20To%20Post%20Your%20Picture%20On%20The%20Web/34_w228_h155_cw228_ch155_thumb.jpg

    LOGGED OUT:
    http://adjenz.com/funnypics/cache/34%20Reasons%20Not%20To%20Post%20Your%20Picture%20On%20The%20Web/_{zp-core}_{images}_imageDefault_w228_h155_cw228_ch155_thumb.png

    I tried it across all browsers, same effect.

    [code]

    <div id="alt-galleries">
    <ul class="alt-galleries">
    <?php $lastcolnum=3;$listall=''; ?>
    <?php $x=1; while (next_album($listall)): $lastcol="";
    if ($x==$lastcolnum) {$lastcol="id='lastcol'"; $x=0;} ?>
    <li class="alt-gallery" <?php echo $lastcol; ?>>
    " title="<?php echo gettext('View album:'); ?> <?php echo getBareAlbumTitle();?>">
    <?php printCustomAlbumThumbImage(getBareAlbumTitle(),NULL,228,155,228,155); ?>
    <span class="album-gallery-bottom"><?php if (getNumAlbums() >= 1) { echo getNumAlbums() . " Sub-Albums "; }?><?php if (getNumImages() >= 1) { echo getNumImages() . " Images"; }?></span>

    <h4>" title="<?php echo getBareAlbumTitle().' ('.getAlbumDate().')'; ?>"><?php echo getBareAlbumTitle(); ?></h4>

    <?php $x++; endwhile; ?>

    </div>
    [/code]

    Posted 1 year ago #
  2. memphis2k

    Junior
    Joined: Mar '11
    Posts: 6

    Sorry about the first post

    Hello,

    I upgraded to 1.4.2 from 1.4.0.2 and now my images aren't showing on gallery & albums. Just the default image from ZenPhoto. When I'm logged into ZenPhoto, this is fine, but when I'm logged out, no images display. Tried this on all browsers.

    Below is the image link off the Gallery page when I'm:

    LOGGED IN:

    http://adjenz.com/funnypics/cache/34%20Reasons%20Not%20To%20Post%20Your%20Picture%20On%20The%20Web/34_w228_h155_cw228_ch155_thumb.jpg

    LOGGED OUT:

    http://adjenz.com/funnypics/cache/34%20Reasons%20Not%20To%20Post%20Your%20Picture%20On%20The%20Web/_{zp-core}_{images}_imageDefault_w228_h155_cw228_ch155_thumb.png

    Here is the code on my Gallery Page

    <div id="alt-galleries">
    				<ul class="alt-galleries">
    					<?php $lastcolnum=3;$listall=''; ?>
    					<?php $x=1; while (next_album($listall)): $lastcol="";
    					if ($x==$lastcolnum) {$lastcol="id='lastcol'"; $x=0;} ?>
    					<li class="alt-gallery" <?php echo $lastcol; ?>>
    						<a href="<?php echo htmlspecialchars(getAlbumLinkURL()); ?>" title="<?php echo gettext('View album:'); ?> <?php echo getBareAlbumTitle();?>">
    							<?php printCustomAlbumThumbImage(getBareAlbumTitle(),NULL,228,155,228,155); ?>
    							<span class="album-gallery-bottom"><?php if (getNumAlbums() >= 1) { echo getNumAlbums() . " Sub-Albums    "; }?><?php if (getNumImages() >= 1) { echo getNumImages() . " Images"; }?></span>
    						</a>
    						<h4><a href="<?php echo htmlspecialchars(getAlbumLinkURL());?>" title="<?php echo getBareAlbumTitle().' ('.getAlbumDate().')'; ?>"><?php echo getBareAlbumTitle(); ?></a></h4>
    					</li>
    					<?php $x++; endwhile; ?>
    				</ul>
    			</div>

    Thanks
    ~Aaron

    Any ideas?

    Posted 1 year ago #
  3. memphis2k

    Junior
    Joined: Mar '11
    Posts: 6

    Sorry about the first two posts

    Hello,

    I upgraded to 1.4.2 from 1.4.0.2 and now my images aren't showing on gallery & albums. Just the default image from ZenPhoto. When I'm logged into ZenPhoto, this is fine, but when I'm logged out, no images display. Tried this on all browsers.

    Below is the image link off the Gallery page when I'm:

    LOGGED IN:
    http://adjenz.com/funnypics/cache/34%20Reasons%20Not%20To%20Post%20Your%20Picture%20On%20The%20Web/34_w228_h155_cw228_ch155_thumb.jpg

    http://adjenz.com/funnypics/cache/34%20Reasons%20Not%20To%20Post%20Your%20Picture%20On%20The%20Web/_{zp-core}_{images}_imageDefault_w228_h155_cw228_ch155_thumb.png

    Thanks
    ~Aaron

    Any ideas?

    Posted 1 year ago #
  4. Zenphoto development team
    sbillard

    Chief Developer
    Joined: May '07
    Posts: 9,767

    Your content appears to be unpublished.

    Don't forget to read the Forum rules and usage resources
    Posted 1 year ago #
  5. memphis2k

    Junior
    Joined: Mar '11
    Posts: 6

    Thanks sbillard,

    I'm still messing around with it.

    http://adjenz.com/funnypics/

    Do you have any idea why ZenPhoto would add (logged out):
    _{zp-core}_{images}_imageDefault_

    instead of
    "34" (the name of the file)
    (logged in)??

    Posted 1 year ago #
  6. Zenphoto development team
    sbillard

    Chief Developer
    Joined: May '07
    Posts: 9,767

    IF there are no published images in an album there is no candidate for an album thumb. (We do not show unpublished images to not-logged in viewers) The cach link you quote is the Question Mark image you see on the site when you are not logged in.

    Don't forget to read the Forum rules and usage resources
    Posted 1 year ago #
  7. memphis2k

    Junior
    Joined: Mar '11
    Posts: 6

    All of my images/albums were published. Ok, I created several TEST ZP installs and came to the conclusion that version 1.4.1.6 and older work fine, but 1.4.2 breaks when I use the printCustomAlbumThumbImage. I had clean DB's, created a single folder and one picture in the Albums folder. I used my same custom theme.

    I'm just going to skip 1.4.2 for now. If you need anything else from me, I'll check back later.

    Thanks. I love ZenPhoto and have been using it for years. It's nice how I have it going hand and hand with WordPress.

    Posted 1 year ago #
  8. Zenphoto development team
    acrylian

    Developer
    Joined: Jul '07
    Posts: 13,353

    Did setup report anything? What is your server configuration? Are there errors in your server error log?

    Don't forget to read the Forum rules and usage resources
    Posted 1 year ago #

RSS feed for this topic

Reply

You must log in to post.