ZPFocus cant log in

Hello,
i use ZenPhoto 1.4.8 and the zpfocus theme.
i can not login because there is no Name in the login form.
please have a look here:
http://kirchspiel-fkb-rengershausen.de

thanks
«134

Comments

  • Problem fixed:
    template-functions.php line 4243:
    $_password_showuser = NULL changed in
    $_password_showuser = true

    it works.
  • acrylian Administrator, Developer
    Glad you fixed it… But as always you should never ever modify core files, instead modify the theme where it calls the function. If this is a bug we welcome fixes on this unsupported theme on the unsupported repo on GitHub. You also can always login directly by visiting `yourwebsite.com/admin`.
  • Next problem:
    I cant open the Galerie.
    There is only a link to pages instead of the album.
    where can i fix it?
  • acrylian Administrator, Developer
    More info please. Note that this is not an supported theme. If it is the site linked above that seems to work as intended to me.
  • Yes, the link is the site,
    when you klick on Galerie there is only a white Site, no galerie is shown. if you klick on random album image on the left then the album is shown but there is no diashow.
    can we switch this conversation to the right Forum.
  • perhaps this is a database problem?
    what path must be in the database?
    /albums/albumname or
    albumname ?
  • acrylian Administrator, Developer
    Works for me: http://www.zenphoto.org/test/galerie.jpg.html

    Please review your error logs.
  • there are no entries in the error logs.
    what happend, when you klick on an album?
    get you the album?
  • acrylian Administrator, Developer
    No, white page. Permissions, wrong htaccess or a fatal php error. YOu did review the server php error log and not only the Zenphoto one? Also try a official theme and if it does not happen there it is a theme issue.
  • thanks a lot
    ill try
    nice sunday
  • its a theme issue.
  • acrylian Administrator, Developer
    Do you have any details? Then we maybe could fix it in the unsupported repo.
  • Unfortunately, no, I have the PHP version of 5.6 but gradually down to 5.3 lowered no change.
    seems to be a probelm with the gallery.php
  • acrylian Administrator, Developer
    No, of actually album.php since that is used on albums.
  • Verified times the functions.
    is as outdated
    getGalleryIndexURL
    classified
  • have a request to strato about the php errorlogs asked.
    maybe this helps
  • acrylian Administrator, Developer
    Ah, ok. Strato. I mean you can access it via their webhost backend.

    'getGalleryIndexURL` itself actually is not outdated but some parameters are.
  • Hello acrylian,
    Strao reports:
    PHP Parse error: syntax error, unexpected '}' in /htdocs/themes/zpfocus/album.php on line 65

    and here is the class thats make trouble ( or not)

    `


    <?php if ($useGslideshow){ ?>
    <?php printSlideShowLink(gettext('Slideshow')); ?>
    <?php } elseif ($zpfocus_use_colorbox_slideshow) {?>
    <?php $x=0;
    while (next_image(true)):
    if ($x>=1)
    $show='style="display:none;"';
    } else {
    $show=''
    This is Line 65---> } ?>

    <?php if (!isImageVideo()) { ?>
    rel="slideshow" href="<?php if ($zpfocus_cbtarget) { echo htmlspecialchars(getDefaultSizedImage()); } else { echo htmlspecialchars(getUnprotectedImageURL()); } ?>" title="<?php echo getBareImageTitle();?>"><?php echo gettext('Play Slideshow'); ?>
    <?php $x=$x+1; } ?>
    <?php endwhile; ?>
    <?php } ?>
    <?php echo gettext('Images in '); echo getBareAlbumTitle(); ?> (<?php echo getNumImages(); ?>)

    `
  • fretzl Administrator, Developer
    In `album.php` put a semi-colon after line 64 so it becomes:
    `$show='';`
  • Done, but thats not all.
    my dreamweaver says that there is a syntaxerror in line 62.

    } else {

    any ideas?
  • acrylian Administrator, Developer
    `if ($x>=1)` is missing a bracket behind it.
  • fretzl Administrator, Developer
    Some more...
    There's an orphaned PHP closing tag on line 108:
    `printPageListWithNav('« '.gettext('Prev'), gettext('Next').' »',false,'true','page-nav','',true,'5' ); ?>`

    Remove the "`?>`" at the end of the line.
    That finaly worked for me.
  • Hello acrylian,
    juhu now it works,
    there are more errors on the site,
    1)I rename all get...URL to get...LinkURL
    2) delete all php if ((getCommentCount()) > 0) {
    3) there is a single ?>

    there are also errors on gallery.php
    look 1)
    and there is
    Missing argument 1 for printAlbumThumbImage()in line 31 gallery.php but defined in zp-core/template-functions.php on line 1687

    no idea what that means, but it works

    thanks a lot for your help
  • hello fretzl,
    thanks got it
  • I´ll got to bed .

    New Problem
    when i klick on a album, the images fits to the site but when i then klick to another album, the images are wild over the screen.

    perhaps is this the problem:

    PHP Warning: require_once(zp-core/zp-extensions/print_album_menu.php): failed to open stream: Datei oder Verzeichnis nicht gefunden in /htdocs/themes/zpfocus/inc-header.php on line 94
    (line 94: <?php require_once(ZENFOLDER."/zp-extensions/print_album_menu.php"); ?> )
    15.09.2015 23:16:16 PHP Fatal error: require_once(): Failed opening required 'zp-core/zp-extensions/print_album_menu.php' (include_path='.:/opt/RZphp55/includes') in htdocs/themes/zpfocus/inc-header.php on line 94 ?????????????

    and where can i find the "include_path..opt/RZphp???????
    sh.....
    good night and sleep well
  • acrylian Administrator, Developer
    `"include_path..opt/RZphp` is a server internal path. Is the print_album_menu plugin in its place actually? That is an included plugin so it should be.
  • yes it is.
  • look like it runs fine:
    changed require_once(SERVERPATH . '/' . ZENFOLDER."/zp-extensions/print_album_menu.php"); ( inc-header.php)
    and

    i have delete the class "thumb-landscape" ,the class "thumb" and the class "thumb-portrait" (album.php)
  • Hello acrylian,
    Strato errorlogs says:
    PHP Fatal error: Call to undefined method Album::getLink() in htdocs/zp-core/zp-extensions/print_album_menu.php on line 289

    But all seems to run fine.

    Thanks for your help
  • acrylian Administrator, Developer
    The line is correct and indicates that somehow within the plugin there is no album object where one should be. Would think it might be some wrong context in the theme. Don't know.

    fretzl had just submitted some updates to the theme in the unsupported repository. Maybe he had covered that, too, Best you try those.
Sign In or Register to comment.