Drupal gallery pages img src pointing to internal URL
|
ak10
Joined: 2009-09-09
Posts: 4 |
Posted: Wed, 2009-09-09 01:19
|
|
I installed Gallery2 and Drupal 6 using Fantastico on my Hostgator server, installed and configured the Drupal integration module. Everything seems to be going fine so far, no errors and Gallery2 works fine. The problem is that all the IMG tags displayed in the drupal site point to the internal path "/public_html/gallery2/main.php......" instead of "/gallery2/main.php.....". I removed the /public_html/ temporarily in my browser using Webbug and the image appeared. Where can I fix this in the code or is there a setting in the Drupal module to override the path to the images? I can't currently use URL rewriting because the domain name is not transferred until the site is done. Is there a setting somewhere or a simple line of additional code I could use to set the path to be the public one? Thanks! |
|
| Login or register to post comments |

Posts: 9283
edit config.php, near the end of the file is where you can remove/change/specify a domain name that G2 uses.
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here
Posts: 4
Thank you for that! I am on the right path, however I tried every URI and URL I could think of and almost everything made it worse. One time I got it to display the CSS formatting for g2 inside the drupal page (inexplicably), but that broke the gallery2 site. I got it to take away the /public_html/ but it still always points to the wrong place with an extra / in front of the correct image location and again errors and problems. I'm thinking of trying something more simple, after playing around with gallery2 I think it might be massive overkill for what I want to use it for. Thanks again!
Posts: 4
I fixed it. The problem was with using the temporary domain name and the unreasonably complicated path, which is causing no ends of trouble with other things as well. I ended up directly editing the mySQL database (bad idea maybe, but I was desperate) until I found something that seemed to work, then did a reinstall of G2 and the module once I figured out how the server was interpreting the URL. Thank you for pointing me in the right direction though!