I'm using latest nightly G2 build and latest Mambo integration component.
Having issues with paths.
When I start component config I put in full server path of:
/home/thebar/public_html/gallery2/ - Works fine
Putting in relative path of:
home/thebar/public_html/gallery2/ - No error given but my gallery homepage fails to show any images
Now put in what I expect:
../gallery2/ - FATAL ERROR:You made a error in the relative Path
BUT my thumbnails now work fine.
What's going on here?
Secondly - my Mambo install is in /bar directory on my server.
The albums all link to server.com/index.php.. and not server.com/bar/index.php
How do I fix this?
Cheers
Posts: 32509
facts:
- your mambo is installed in /home/thebar/public_html/bar/
- your G2 is installed in /home/thebar/public_html/gallery2/
- you don't use any virtual host or something like that. i.e. you access your mambo with hostname.com/bar/
correct?
then your realtive path should be just "../gallery2/" without the qutation marks.
embedPath is just /bar/ (if there's such an option)
Posts: 20
Yep all those facts are correct - which is why I assumed the relative path was "../gallery". But the component complains about that being wrong- although it does make the gallery work so is not an issue in itself (just a little strange).
There's no embedPath option in the component but I have attempted to change it in the DB. I've seen that setting in config files around too - which does the system use- the DB or config files or both?
I've changed it in the DB to '/bar/' and in the <mambo>/Administrator/Components/com_gallery/config.php but still no joy.
Incidently it was set to '/b/' before I changed it- something wrong there I'm thinking.
Anywhere else I need to change?
Posts: 430
Bottesford,
database isn't used, config file you have to change.
At the moment the component complains if gallery2 isn't installed in this manner:
/mambo/gallery2
it only shows a warning you can ignore it, i'm programming the component to do better next version ;)
i think you have to adjust the userfuncs.php for your setup, because i forget to put in a change in the last relaise, sorry for that, but he gallery2 and the components are still beta.
you have to adjust the "config" function where a extra path is set and itemid is added.
good luck,
Michiel
Posts: 20
Ah got it working!
I changed the config file to include bar/ path it then did this:
server.com/bar/bar/index.php...
I then removed my change and it fixed it all! Almost like it was ignoring the embedPath until I changed something which made it 'refresh' somehow. Odd but cheers for the help anyway!
Posts: 430
lol, caching on or not?
Posts: 20
No caching no- well not to my knowledge anyway! It works so I'm happy!