Upgraded to 1.0b from 0.9b but the all the images and css style files are not loaded. What I'm getting is a barebone html file with text and empty image placeholders. The respective albums show up on the page, but without images and styling.
All links are broken e.g link to album is shown as
`http://index.php/?album=2005-12-06``
Same goes for all links (portion of source of loaded webpage)
``
[img]//zen/i.php?a=2005-12-06&i=IMG_6237.JPG&s=thumb[/img]
2005-12-06 `
Edited config.php as instructed, not using mod_rewrite. Admin page loads fine. Images in admin pages load fine.
Help!!!~~
I have the same problem... I do not know what the ultimate fix would be, but I did the following to get it to work for now.
in config.php I changed
$conf['mod_rewrite'] = true;
to
$conf['mod_rewrite'] = false;
I also added the following:
define('SERVERPATH', '[full path]/zenphoto');
define('WEBPATH', '/zenphoto');
define('SERVERCACHE', SERVERPATH . "/cache");
define('WEBCACHE', WEBPATH . "/cache");
and then in in my zenphoto directory, I renamed the .htaccess so that it no longer works.
now it at least works.
-Jamie
I to ran into the same problem. I did what legobuff did and this worked for me.
http://beta.chilifrei.net/zenphoto1
Just a few things...
when logged in as admin and viewing the gallery.. you get script errors in IE.. not in firefox..
Really everything else works great.. My first install with .9 on IIS was troublesome.... this install was quick and clean.. the problem listed above was the only problem and it was easily fixed.. so far everything else works
Great job!!!
I'm having the same problem, and already changed mod_rewrite to false.
But where exactly do I put in this?
define('SERVERPATH', '[full path]/zenphoto');
define('WEBPATH', '/zenphoto');
define('SERVERCACHE', SERVERPATH . "/cache");
define('WEBCACHE', WEBPATH . "/cache");
In config.php too?
for me, I put it in the config.php right under where I set mod rewrite to false. Not sure if it makes to much of a difference "where you put it, as long as you dont tie it in with the actual code they got in there.
In config.php change the following line:
$conf['mod_rewrite'] = true;
to:
$conf['mod_rewrite'] = false;
Then, ANYWHERE in your config.php, copy and past the following:
`define('SERVERPATH', '[full path]/zenphoto');
define('WEBPATH', '/zenphoto');
define('SERVERCACHE', SERVERPATH . "/cache");
define('WEBCACHE', WEBPATH . "/cache");`
Where the above says, '[full path]/zenphoto' change this to the full path to the directory where you placed zenphoto. For example, my line would look something like:
define('SERVERPATH', '/home/www/gamedudex/public_html/zp');
Edit the next line to reference the [i][b]Web path[/b][/i] to the zenphoto directory. So continuing the example from above this would look something like the following for me:
define('WEBPATH', '/zp');
because the URL to the gallery would be http://www.gamedudex.com/zp
5)The next line would point to your cache directory (which should be inside your zenphoto directory), so if you have [i]not[/i] moved the location of your cache folder, you can leave the last two lines alone. If you [i]have[/i] moved them, make sure you change the last two lines to reflect those changes.
Sounds like the path resolution changes were not too good... sorry about that.
The fix GameDudeX posted should indeed work to set the paths manually, but that means you have to know what they are.
I'll definitely look into this problem before the final release.
Thanks GameDudeX, now the gallery and album pages show up, but the individual photo pages are broken links. =/ And I'm not sure the URL is wrong, either, for instance http://aneesah.pixelled.com/gallery/index.php?album=photos&image=blown.jpg is the address for an image in the photos album, but I get the broken image icon.
Regular links on the page are now being tranformed from (example) friends.php :
http://www.thekhans.me.uk/friends/gallery/Shimla+Pinks/origami.php
Which subsequently yields 'image not found' error. Oddly enough, the source code reveals that the link is indeed friends.php - so I'm not sure why the browsers are loading another address.
Saj
make sure the albums directory and cache directory are chmod 777
ya they are
edi: created new post for my problem
http://www.zenphoto.org/support/topic.php?id=233
I think there is a much easy way of fixing this issue that GameDudeX's solution and it allows you to keep MOD_REWRITE switched on.
I have posted this a few times already and it seemed to help people so I will post it again:
Keep the config.php file standard then edit the zen/functions.php file as follows