Hello.
I have installed Drupal 4.7RC1 and the latest stable gallery and your latest (cvs) module version
You can see the results here:
http://d.pschneider.info/gallery
But I can not click on the albums because the picture-links are wrong.
I was looking in the sourcecode, but there are to many functions and I have no clue about drupal and gallery and how they work.
Can somebody help me and solve the problem??
Thanks
Phil
| Comment | File | Size | Author |
|---|---|---|---|
| #14 | gallery2-boelkstoff-2.jpg | 27.74 KB | boelkstoff |
| #13 | gallery2-boelkstoff-1.jpg | 76.28 KB | boelkstoff |
Comments
Comment #1
kiz_0987 commentedIt seems to be a URL rewrite problem. Go to G2 Site Admin -> URL rewrite and check the paths. Do this within Drupal. You can also check the .htaccess file in your DRUPAL site to see if Gallery2 has put URL rewrite rules in there (it should). You will know if it has if anything with gallery is in it.
Comment #2
boelkstoff commentedHello.
Thanks for your help.
Below you can find my .htaccess.
As we can see there is nothing that has anything todo with gallery.
The links that are created are like:
http://d.pschneider.info/v/sabine/
http://d.pschneider.info/v/album
So there should be a rule for "v", but I dont know how and to wich file.
Can you or somebody else help me?
Thank you very much
Comment #3
kiz_0987 commentedGo to G2 Site Admin -> URL rewrite and check the paths. Do this within Drupal.
Comment #4
boelkstoff commentedHello.
Well actually I am starting to get confused.
This nice module is generating the content of my album root link, as the link above shows.
It is showing the picture of the root album corrently but generating wrong links, or it seems that way.
If I edit my -htaccess to use the generated links, I will end up in gallery2.
But I want to see gallery2 INSIDE Drupal.
The code below is code of my htacess which is in my gallery2 folder.
But to which php file of drupal or this plugin should these rules go, because /gallery2/mail.php is a gallery2 file.
Here are my directory struture:
root - drupal
root/gallery2 -gallery2 standalone
In my Drupal setting of the gallery module I have the following Directory settings:
URI of Gallery2:: /gallery2/
Location of Gallery2: /home/www/web2_103/html/zps/drupal/gallery2/
Embed URI: /index.php?q=gallery
Please help me, we are almost at the finish line :-)
Thank you very much.
Comment #5
boelkstoff commentedIn case you need my htaccess of my gallery2 setup:
Comment #6
kiz_0987 commentedIf you go to Site Admin -> URL Rewrite within Drupal and save the settings from there it will add them into your DRUPAL .htaccess file for you (if the path is correct). The gallery.module is supposed to do this automatically for you but for some reason is not. You do not need (and should not) copy anything from your Gallery2 .htaccess file.
See http://codex.gallery2.org/index.php/Gallery2:Modules:rewrite#URL_Rewrite... for a detailed description.
Comment #7
boelkstoff commentedWell thanks, but this doesnt seem to help, because this is for embeded installation of gallery2.
I have just installed a normal standalone installion, was that wrong?
Can you post your htaccess and maybe I can copy yours, I know I shouldn't, but if it works....
Thanks
Comment #8
michelleIf you're using stand alone Gallery and not embedding it into Drupal, then you don't need this module and problems with the install would be better asked on the Gallery site.
Michelle
Comment #9
kiz_0987 commentedEr, I do not understand. You are trying to embed Gallery2 into Drupal, no? If so, then my info should be correct. Please try it and see.
Comment #10
boelkstoff commentedFor me as Amateur it looks like something with this module, because:
this module is calling the gallery2 api to get the content.
There somehow the links are not getting correct, or a htaccess entry to a module file is missing.
Please help me to get another happy user.
Comment #11
boelkstoff commentedHello.
Now I am totally confused:
I have installed gallery2 as a standalone version into this dir:
/gallery2
http://d.pschneider.info/gallery2
Then I have installed drupal in the root:
/
http://d.pschneider.info
Now I thought I use this module to combine both, so that I can see my pictures within drupal website?
Is that correct or not?
Sorry for my stupid questions but I am very confused.
What do I need to do?
Comment #12
kiz_0987 commentedboelkstoff, you are very close to having this module working. As far as I can see the only thing you have to do is to correctly configure the path to your Drupal .htaccess file and click save -- all in the Site Admin -> URL Rewrite. I have mentioned how this can be done in above posts. Please try it and see if it works.
Comment #13
boelkstoff commentedHello.
Well you mean the link above to the rewrite rule.
The problem is, that I don't have these options in my gallery2 version.
Look at the screenshots below!
What am I doing again and still wrong?
Please go on with helping!
Thank you very very much
Comment #14
boelkstoff commentedsecond image
Comment #15
kiz_0987 commentedYou seem to have accessed the URL rewrite options via the standalone Gallery2 instead of the embedded Gallery2, so you do not see the embedded options. Go to the Gallery via Drupal and then to Site Admin. There is also a handy link in the gallery.module settings page: "Links to Gallery2 Site Admin sections most relevant to Drupal (advanced)"
Comment #16
boelkstoff commentedok thanks.
it is still not working, but we get closer very much.
I found it now, thanks, and put in some data.
have to test more and will write here again, but now I have to go to get some sleep and a clean head.
Thanks
Comment #17
boelkstoff commentedNew day, some problem.
After I almost couldn't sleep last night, I started fresh today.
I installed drupal4.7rc1 and gallery2.1 in a seperate folder, which can be access thru:
http://www.pschneider.info
Drupal standalone works. w/o mod_rewrite
Gallery2 standalone works. w/o mod_rewrite
Now I installed the module and both worked together withOUT mod_rewrite.
I actived mod_rewrite in drupal and it still worked.
After activating mod_rewrite in gallery2 and the module I end up with the same error as before.
So PLEASE people help me, what am I doing wrong AGAIN??
Thank you for your help
Phil
Comment #18
boelkstoff commentedI found out that there were two problems:
1. pictures are not showing
2. links a "wrong"
the link http://www.pschneider.info/v/sabine/ is telling page not found, but when I look at the rewrite rule and use
http://www.pschneider.info/index.php?q=gallery&g2_view=core.ShowItem&g2_...
then the page is displayed (again with no pictures).
What am I doing wrong?
Comment #19
kiz_0987 commentedI don't mean to be overly repetitive here, but what have you done regarding URL rewrite paths etc through G2 Site Admin (embedded)? Can you please describe your directory structure for G2 and Drupal and provide the paths set for URL rewrite in the Site Admin page.
Comment #20
boelkstoff commentedI can and I will, and I will also thank you:
I have setup to point www.pschneider.info to my drupal folder (/home/www/web2_103/html/drupal)
So when you call www.pschneider.info you will endup in the drupal, this is a setting in my webhoster software confixx.
www.pschneider.info == /home/www/web2_103/html/drupal
www.pschneider.info/testfile.txt == /home/www/web2_103/html/drupal/testfile.txt
So I have installed drupal into my "root" directory.
There is a subfolder gallery2 where I have installed gallery2.
In the Embedded Setup I have the following
Htaccess path: /home/www/web2_103/html/drupal/gallery2
public path: /
@kiz_0987
Thank you very much. ICQ: 30314971
Comment #21
boelkstoff commentedlittle solutions for displying picture:
When I put "/gallery2/" as Public path in the Embedded Setup I can SEE the pictures, but links still dont work.
Comment #22
kiz_0987 commentedOK, your htaccess path is wrong - it should be for your DRUPAL htaccess file. So the correct values are:
Htaccess path: /home/www/web2_103/html/drupal/
public path: / (not /gallery2/)
Try it and see. You can also check your Drupal .htaccess file to see if Gallery2 correctly added its info there.
Comment #23
boelkstoff commentedYES YES YES
THANK YOU THANK YOU THANK YOU THANK YOU THANK YOU THANK YOU THANK YOU THANK YOU THANK YOU
Its working now!
Thank you very much.
It was hard (for me) to find out.
But maybe some of the developer can write it to the module description, so that other user dont get into the same problem, if they are so stupid as I.
THANK YOU THANK YOU THANK YOU THANK YOU
Comment #24
kiz_0987 commentedYou're welcome. It's supposed to be automatic, but did not seem to work in your case for some reason. I will look into it. Good luck with your Gallery.
Comment #25
kiz_0987 commented