zpFocus: Albums not displayed in Search Results

Hello,
Using Zenphoto version 1.4.4.1 [596740f651] (Official build)
zpFocus_ v1.4.4
My search results page does not display the album thumbs or links to the album. A text block shows the number of results, but not albums.
Pages, News, Images all display.
In the options: album matches should be returned. The Zenpage theme search works like I need it to and I have tried to change the Zpfocus search.php without positive results.
This is the album portion of the template used in Zpfocus:
`
<?php if (getNumAlbums() != 0) { ?>

<?php } ?>
`
Any suggestions would be appreciated. Thank-you!
Renee

Comments

  • acrylian Administrator, Developer
    Please escape the code properly. We cannot read it this way. IF it works in Zenpage and not zpfocus something is not right in that theme. You really should put the name of 3rd party tools to hte topic title. See below the form... I have done that for you.

    As always: Errors somewhere?
  • Hello,
    No errors. I used the backtick characters for the code. I apologize if it didn't show up properly. Thank-you for changing the title.
    Renee
  • gjr Member
    Just tested on latest zpFocus version, and seems to be working fine for me. Make sure you are returning albums in the search options. Also make sure you are not unknowlingly searching 'within' instead of 'new'?
  • Hello,
    Using Zenphoto version 1.4.4.1 [596740f651] (Official build)
    zpFocus_ v1.4.4 (3-6-2013 update)(no customizations).
    I am returning albums in the search options. And searching New. Options: "And", Content, Description, Tags (partial) and Title.
    When I use the search bar with a single term or a tag from the tag suggest list, the search results page returns, for example: "Album Search Results(1)" in the blockhead and "Image Search Results(14)". The images display, but no albums. This particular example is suppose to return a subalbum, but I get the same results if it is a parent album. Pages or news work just fine.
    Could there be something stored in the database from an old version of Zpfocus causing this? Also, whenever I upgrade Zenphoto, I have the "admin menu" to work with on the included themes, but as soon as I activate Zpfocus it disappears. The call is in the template, but it does not show in the source code of the pages and obviously isn't there. This has been an issue through many upgrades.
    If it is an error in the database, what should I remove?
    Thank-you for your time! Renee
  • gjr Member
    Yes, the admin menu should work fine as well...

    I would completely delete the zpfocus folder on your server and reupload the most updated version (note - I am releasing an update probably tomorrow for all my themes, to include support for a new slideshow plugin).

    Also check your server logs for any errors or warnings.

    Do you have a link to demonstrate your issue? I cannot see your profile website....
  • Hello,
    I have deleted the folder many times on the server. No errors or warnings. I have used Zpfocus for years with the same database. I can provide a link, but at the moment I switched backed to the original zpFocus_ v1.4.4, with my customizations, because the 3-6-2013 version behaved the same. Do I include a link to my search page or site in a post?
  • gjr Member
    Just post your site link, you always should when reporting an issue.
  • acrylian Administrator, Developer
    @gjr: Question: Can you see the profiles of users as a "normal" forum user? If so it would be enough to attach the site there.
    ANd I am curious about the new slideshow plugin (I plan one for Cycle2 but too less time for all plans...).
  • gjr Member
    @acrylian: The only thing I can see in another user's profile are lists of recent entries and topics started, nothing else.

    info on the plugin:
    http://oswebcreations.com/news/new-slideshow-plugin-to-be-released-soon-

    :)
  • gjr Member
    Your Zenphoto version is out-of-date. Other than that, I have no idea. You've got a lot going on there in your customizations....
  • acrylian Administrator, Developer
    @gjr: Interesting plugin. Cycle2 (our slideshow uses Cycle1 currently) would be responsive as well. I guess I should subscribe to your rss...-)
    And thanks for the info about profiles. I thought all logged in could see those. Maybye we should reanable the link on the user name for loggedin users.
  • Hello,
    Zenphoto version 1.4.4.3s [27a8b787d6] (Official build)
    Zpfocus Version 1.4.4.3, 3/6/13
    I am still having the issue with albums not showing on the search results page.
    I have reinstalled zenphoto and zpfocus many times.
    Copied my original database to test. Deleted the zp_plugin_storage, zp_options, zp_menu, zp_captcha and zp_administrators tables. Run setup. No customizations to the theme except disabling the slideshow. The only plugins enabled are the default plugins and zenpage. I am returning albums in the search options. And searching New. Options: "And", Content, Description, Tags (partial) and Title.
    I have tried different things for about a week. I am totally lost as what the issue might be. I even tried an empty database in a subfolder. Still the same results. I thought it might be plugins or options. That is why I deleted the tables, but that didn't help either.
    I use Google Chrome as my browser. Cleared the cache.
    The only errors just happened today after I reinstalled everything.
    [14-Mar-2013 10:17:21] PHP Fatal error: require_once(): Failed opening required '/home6/advertk3/public_html/zp-core/global-definitions.php' (include_path='.:/usr/php/53/usr/lib64:/usr/php/53/usr/share/pear') in /home6/advertk3/public_html/index.php on line 4
    [14-Mar-2013 11:28:34] PHP Notice: unserialize(): Error at offset 65532 of 65535 bytes in /home6/advertk3/public_html/zp-core/class-search.php on line 1771
    [14-Mar-2013 11:28:34] PHP Warning: array_slice() expects parameter 1 to be array, boolean given in /home6/advertk3/public_html/zp-core/class-search.php on line 1515
    I would appreciate it if you could take a look www.advertisement-gallery.com/page/search/ or let me know if there is something else in the database that could be the problem.
    Thank-you! Renee
  • acrylian Administrator, Developer
    DId you enable album results actually? Are the albums published or protected?
    Does it happen only in zpFocus? If it does it gives the theme developer a clue.
  • Hello,
    "DId you enable album results actually?"
    If you talking about the search options all the Do not return matches are unchecked. All the albums are published and not protected. Yes it only happens in zpFocus.
  • acrylian Administrator, Developer
    Yes, I meant that. So we can say it is a zpFocus issue then, I guess.
  • @gjr
    I have put my customized site back online, but you can still see an example of my issue at www.advertisement-gallery.com/advertk3/zenphoto/page/search/
    Thank-you
  • gjr Member
    Like I said, I cannot reproduce your issue, it all works fine for me on my test site. Matching your source to the template file search.php, looks like your breakdown is somewhere here:

    `

    <?php $x=1; while (next_album()): $c++;
    if( $odd = $x%2 ) {
    $css = 'goleft';
    } else {
    $css = 'goright';
    } ?>
    ">
    `
  • Hello,
    Thank-you for taking a look. I have not changed anything in the search.php template. It is the file in the latest version of zpFocus. ?
Sign In or Register to comment.