Firstly, apologies if this is in wrong section, and 2nd, if this has been answered before. I just cant find the "right" answer.
So I have:
Joomla 1.0.13
Gallery 2.2.3
G2 bridge 2.0.14
JoomlaLib
Firstly, am I supposed to configure JoomlaLib at all to get the G2 bridge to work properly?
URL rewrite is disabled in the gallery.
Now, in G2 bridge, under settings, I run the wizzard, and in step 1, the URL to gallery 2 is correct, so I click next.
In step 2, the URL to gallery 2 is still correct, while the server path has embed.php at the end, which I gather from reading this forum could be the problem.
So, this is the thing - I dont know how to get past this or fix it, because when I click save, nothing actually does save, and a message comes up saying I need to configure settings first.
TIA
Posts: 5
I have the same trouble. Is there another way to enter the gallery 2 path? I have run wizzard a couple times and the path it determines is written without slashes between files and so it says that Gallery 2 Bridge is not configured.
Thanks T
Posts: 3
I had the same problem.. I was poking around in the backend and noticed that the permissions of the the g2 component were wrong for my server..
Otherwise just enter the settings manually. For a standard unix/joomla setup
G2 Path = /home/username/public_html/g2directory/embed.php
G2 Url = http://www.somesite.xxx/g2directory/
Login url = /index.php?option=com_login (standard Joomla login)
Posts: 5
Thanks freefallnz . . . i entered it manually (it's running on xampplite)and it works great.
T
Posts: 3
I entered the details manually as suggested, and the configuration worked!
But I registered a "test" user on my main Joomla site, activated it, logged in, and then went the G2 component >user management and "sync'd" the new user, which was successful. Then I went to my gallery and thought that the new "test" user would already be logged in, but it wasnt so I logged in using the new "test" details and got the error message "Your login information is incorrect. Please try again.".
What to do?
Posts: 3
There is a problem with Joomla 1.0.13 and G2Bridge that prevents direct login to Gallery2. The change was with Joomla passwords between Joomla 1.0.12 and Joomla 1.0.13. It seems that you are a new user and started with 1.0.13 so I understand the confusion.
Here's something I posted in another Forum:
Joomla 1.0.13 handles passwords differently than previous versions, a security update. There is a simple work around... Use your browser cache... Log into your Gallery 2 Embedded Site as admin (or a user with admin rights). Go to Site Admin. Open a new browser window or tab and Gallery2 directly. For example www.mydomain.com/gallery2/main.php and click Site Admin again and you will be logged into your Gallery outside the Joomla embedded site. Works with IE6 and Firefox not sure about IE7 but would guess it to work also.
But in your case I'm guessing that you need to make a Joomla menu item to your embedded Gallery2, something like http://www.yoursite.com/index.php?option=com_gallery2&Itemid=28 (the itemid is likely different).
Hope that helps.
:cheers:
Dale
Posts: 3
This was the fix! Yes, the item id was different of course, but its a done deal! So exciting!
Thanks so much!
Posts: 3
Happy that I could help.
Now if we can just work out the Joomla 1.0.13 password problem.
:cheers:
Dale
Posts: 8
I wonder how I figure out the itemID,
I just don't seem to get it work. It worked, but when I added a new template it stopped working.
Posts: 13
hi freefallinz,
I have installed Gallery 2 like a component with the normal procedure from Joomla backend.
I'm not able to find the g2directory.
Into "Component" folder there is com_gallery2 but there isn't embed.php file.
Can you suggest me the way to find the right URL and Path of G2?
Have I use ftp program to upload the folder gallery2 that I downloaded into a specific folder?
Thank you
Walter Ego
Posts: 2
Friends & Fellow G2Bridge users,
I think I have obtained a solution.
I asked a friend to look at the problem and he looked at the code in the file http://www.example.com/gallery/embed.php (or whichever directory your embed.php file is in). After a lot of poking around, he discovered that the process used by the 'wizard' performs a 'security check' to ensure that the embeded gallery2 application is on the same server as your Joomla installation.
When 'embed.php' calls for the security check, because of your configuration it reports/returns values for both the IP addresses of both your external IP address and your virtual IP address which are actually different so the 'security check' fails
& returns the error message that I am (and probably you are) receiving.:eek:
The Solution:cool:
He edited the ../gallery2/embed.php file as follows.
Near the end of this file is the line below which appears in bold : -
$remotehost = !empty($remotehost) ? gethostbyname($remotehost) : ''; $localhost = GalleryUtilities::getServerVar('HTTP_HOST'); $localhost = !empty($localhost) ? gethostbyname($localhost) : '127.0.0.1'; if ((!empty($remotehost) && $remotehost == $localhost)) { if (defined('GALLERY_CONFIG_DIR')) { /* GALLERY_CONFIG_DIR is multisite-aware */ header('X-G2-EMBED-PATH: ' . GALLERY_CONFIG_DIR . '/embed.php'); } else { /* Fallback if G2 isn't installed yet */ header('X-G2-EMBED-PATH: ' . __FILE__ ); } } } } ?>Change it to : -
if (TRUE || (!empty($remotehost) && $remotehost == $localhost)) {Then run the 'wizard'. It will successfully go to 'Stage 2'. Complete the 'wizard' then change the ../gallery2/embed.php file back to it's original state.
The other plugins should now also work.
I hope this helps.