I've been struggling now for over 3 hours to understand what happened with the search on my soon to be announced new website. It's still under development at the moment and I tried to style the search.php file. Everything worked fine. Some minutes later I tried search again and i get the following error:
Quote:Fatal error: Call to a member function isDynamic() on a non-object in /customers/trojkolka.net/trojkolka.net/httpd.www/newzen/zp-core/template-functions.php on line 1672
I have no idea what happened or what broke... I use the zenpage plugin but I don't thik that causes the issue. My team is based on the zpfocus theme. You can have a look at my site here: http://trojkolka.net/newzen/page/search/Finland I also copy the code of which i suspect that the error might take place (because from that point it just doesn't show anything anymore on the site)
Here is the code snippit:
`
<?php if (getNumAlbums() > 0) { ?>
<?php echo getNumAlbums(); ?>
<?php echo 'found albums'; ?>
<div>
<?php $x=1; while (next_album()): $c++; ?>
<div class="<?php echo ($odd=$x%2) ? 'goleft' : 'goright'; ?> ind-item">
<a href="<?php echo htmlspecialchars(getAlbumLinkURL());?>" title="<?php echo 'View Album:' ?> <?php echo getBareAlbumTitle();?>"><?php printAlbumTitle(); ?>
<div class="front-date"><?php printAlbumDate(); ?>
<div class="front-image">
<?php echo getBareAlbumTitle();?>">
<?php printCustomAlbumThumbImage(getBareAlbumTitle(),120); ?>
<?php echo truncate_string(getAlbumDesc(), 200); ?>
<?php echo getBareAlbumTitle();?>">»
</div>
</div>
<?php $x++; endwhile; ?>
</div></div>
<?php } ?>
<?php if (getNumImages() > 0) { ?>
<?php if (getOption('use_colorbox_slideshow')) { ?>
<?php $x=0; while (next_image(true)): ?>
<a class="<?php echo ($x>=1) ? 'noshow' : 'slideshowlink'; ?>" rel="slideshow" href="<?php echo htmlspecialchars(getFullImageURL());?>" title="<?php echo getBareImageTitle();?>"><?php echo 'Play Slideshow'; ?></a>
<?php $x++; endwhile; ?>
<?php } ?>
<?php echo getNumImages(); ?> <?php echo 'found images'; ?>
[list]
<?php while (next_image(false)): $c++;?>
<?php if (isLandscape(true)) { ?>
...cut...
<?php } else { ?>
...cut...
<?php } ?>
</li>
<?php endwhile; ?>
[/list]
<?php } ?>
<?php printPageListWithNav( '<<','>>',false,'true','page-nav','',true,'5' ); ?>
<?php if ($c == 0) {
echo "Sorry, no matches. Try refining your search.";
} ?>
`