[SOLVED] Path Issues

Bottesford

Joined: 2005-06-29
Posts: 20
Posted: Thu, 2005-06-30 20:22

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

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Thu, 2005-06-30 20:34

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)

 
Bottesford

Joined: 2005-06-29
Posts: 20
Posted: Thu, 2005-06-30 20:52

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?

 
michiel_1981

Joined: 2005-05-19
Posts: 430
Posted: Thu, 2005-06-30 20:58

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

 
Bottesford

Joined: 2005-06-29
Posts: 20
Posted: Thu, 2005-06-30 21:07

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!

 
michiel_1981

Joined: 2005-05-19
Posts: 430
Posted: Thu, 2005-06-30 21:18

lol, caching on or not?

 
Bottesford

Joined: 2005-06-29
Posts: 20
Posted: Thu, 2005-06-30 22:08

No caching no- well not to my knowledge anyway! It works so I'm happy!