Zenphoto 1.1 Bug Hunt

24

Comments

  • Jordi-kun:
    good work. Thanks.

    dwn:
    I have reproduced your problem. I will add a ticket.
  • jordi-kun, good patch. added to the latest svn
  • jordi-kun:
    atif311

    I have made some changes to the ticket 101 implementation. The way it works now is to place some changes in the zp-config file. (New example released with the changes.)

    `//location of album folder. Usually these are left null.

    // change 'album_folder' to rename the album folder inside the zenphotos installation

    // change 'external_album_folder' to locate your album folder outside the zenphoto folders

    $conf['album_folder'] = '/albums/';

    $conf['external_album_folder'] = null;`

    change the first $conf to rename the internal folder
    change the second to point to an external folder.

    external overrides internal.
  • works good! thanks sbillard.

    One thing i noticed is the toggle() javascript function. it seems that in internet explorer doesn't work, note that i use firefox ^^'

    this seems to fix it, working in both firefox and IE6, don't know why though:
    `// if(xState=='none') xState = 'table';

    if(xState=='none') xState = '';`
  • jordi-kun, what file and where?
  • oh, sorry.. it's in `scripts-common.js`
  • fixed it on my end, its up in the svn
  • Hello,

    First of all I would like to thank you all for your great work!!
    I'm having some issue with my gallery,

    Since I've updated to the newest nightly build, I'm able to upload pictures, I see the thumbnail but in the sort album page, when I click on the image, I get the image processing error. And on my gallery, I can also see the thumbnail but not real size picture will load. I checked the permission on my album folder and cache folder and everything seems to be ok.

    I'm running zenphoto on an Windows XP box with IIS.

    Would this be a bug or is it something in my configuration that is wrong?

    Thank you

    you can see my web site here

    www.mattgalarneau.com/zenphoto
  • Seems to be working today. What did you do?
  • I loaded the new build from oct 8 and also added a value under this field in the option menu :

    Image size: Default image display width.

    It's only when there isn't any value that I get the error message,
  • Was this field empty originally? It should have had a value set in the zp-config.php file circa line 95.
  • Hello

    I'm trying the last nightly build, and have got some strange lines on the header and the footer (sorry I'm not a web-developer) see picture here
    I remove the line 2 in the "admin.php" file: `session_start();`.
    Now it's ok, but I would like to know if it's ok like that or if I must keep that line.

    thank you
  • session_start() is a PHP function, so this error should not occur. Can you find out what version of PHP you are running? I'm not really sure what the consequence of running admin without a session would be.
  • trisweb Administrator
    The session_start error is because PHP can't write to the temp directory for session files. This is a server configuration error - either give the web server user permission to access that directory, or change the directory to one the server can write to in `php.ini`

    A warning message for this situation would be good - not sure if that's possible though.

    Update: Actually for you if you just create the directory `/blogderedrag/sessions` and do `chmod 777 sessions` on the folder, it should work.
  • just a small issue... when i upgraded the database (upgrade.php), the "administrate" link does not open the admin page but the gallery.
  • regarding the last post... there is a missing backslash:

    `administrate.`
  • Got it put in the svn jordi-kun
  • Update: Actually for you if you just create the directory /blogderedrag/sessions and do chmod 777 sessions on the folder, it should work.
    Thank you very much, it works with it ;-)
  • Sorry the hosting company deleted a table from the database... never mind.
  • I am going to keep this one short because I think a lot of my problems are stemming from my pathing issue specified below.

    This is the Oct 13th Nightly Build

    zen/setup.php
    Line 150

    Says
    ` echo "

    We're all set to create the database tables: $tbl_albums, $tbl_images, and $tbl_comments` Should say ` echo "<p>We're all set to create the database tables: <code>$tbl_albums, $tbl_images, $tbl_comments, and $tbl_options` Notice tbl_options zen/admin.php When Default, Effervescence_Simpleviewer, and Sterile, theme is selected I get a blank page. If I set php display_errors=ON I receive this error message when viewing the gallery Warning: require_once(D:\Website\beta.chilifrei.net\zpcommunity/D:\Website\beta.chilifrei.net\zpcommunity\zen/admin-functions.php) [function.require-once]: failed to open stream: Invalid argument in D:\Website\beta.chilifrei.net\zpcommunity\themes\default\themeoptions.php on line 26 Fatal error: require_once() [function.require]: Failed opening required 'D:\Website\beta.chilifrei.net\zpcommunity/D:\Website\beta.chilifrei.net\zpcommunity\zen/admin-functions.php' (include_path='.;C:\php5\pear') in D:\Website\beta.chilifrei.net\zpcommunity\themes\default\themeoptions.php on line 26 zen/admin.php Spam filter drop down list lists off all files in /zen folder instead of /zen/plugins/spamfilters General Something seems wrong with pathing. When I hit submit on the admin options page it takes me to http://beta.chilifrei.net/zpcommunity/D:%5CWebsite%5Cbeta.chilifrei.net%5Czpcommunity%5Czen/admin.php?page=options Images do not show up. An example is the image source for the album thumbnail points to http://beta.chilifrei.net/zpcommunity/D:%5CWebsite%5Cbeta.chilifrei.net%5Czpcommunity%5Czen/i.php?a=Autorama%2FAutoRama+2005&i=DSC00414.JPG&s=thumb Not totally sure where that is going wrong here but other errors like sajax not initiating, Admin Toolbox toggle on some themes, images not showing up anywhere, even static one on admin login page, and submit buttons not working is all stemming from this one problem. As you can see it takes me to a redirect to my local path.

  • @Chilifrei64
    I had something similar with the paths... try changing the zp-locator.php to a relative path instead of absolute:

    that is, change the `D:/Website/beta.chilifrei.net/zpcommunity/zen` to `zen`
  • zp-locator.php should have had a relative pat. What was in it?
  • whenever I run the upgrade.php, I get the zp-locator to absolute path, in my case, `D:/htdocs/zenphoto_test/zen` (note that they are backslashes, may that be the issue?)
  • yeah.. that was it.. mine showed absolute and not relative. and that worked for atleast showing the gallery. Precaching the images and admin page submitting still didnt work.

    When did zp-locator.php make its debut in zenphoto.. how long have I missed that?
  • zp-locator.php is recent, it was an attempt to allow the zen folder to be arbitrarily named.

    Guess you guys are running Windows servers. (the \, missed that one!) We have decided not to make the zen folder dynamic, Tris thinks it is too much risk. Instead it will become named zp-core. This will require that you pay attention to .htaccess file.
  • Quick Question?

    Where is the date taken from that shows on the album thumbnail taken from. My are all incorect and I can't seem to find where to modify it. If I edit the album and chnage the dates, it as no effect on anything.

    Thank you !
  • It is got from the first image in the album. It comes from one of: the EXIF date or the file 'creation' date. The latter would most likely be the date you uploaded the file.

    You modify the date in the Admin album edit tab. Are you sure you saved the change? Changing the date works for me.
  • I have entered the date and save properly, when I look in the edit screen the dat changes but on the album it still says : Date Taken: October 31st, 2006 even if I set the date to 2007-10-11... weird
  • I'm not sure if it's a "regional settings" issue but all the album dates are wrongly displayed in the index page.

    It looks like the myts_date() function does not parse correctly the date string. I had to change this to make it work in my computer:
    `$month = substr($mytimestamp,5,2);

    $day = substr($mytimestamp,8,2);

    $year = substr($mytimestamp,0,4);

    $hour = substr($mytimestamp,11,2);

    $min = substr($mytimestamp,14,2);

    $sec = substr($mytimestamp,17,2);`

    Do you guys get the date displayed properly?
  • I have a fix for this, it will be in the next SVN
Sign In or Register to comment.