Linking / Embedding Gallery2 with phpgedview

matthewc100
matthewc100's picture

Joined: 2008-07-07
Posts: 3
Posted: Mon, 2009-05-11 04:37

I'm trying to get phpgedview to use the Gallery2 directory. Since Gallery2 is already installed, I want to just make a reference from phpgedview to the Gallery2 system. I found this almost helpful link about embedding Gallery2 in other systems but I can't seem to get it to work.

I get the following error:

Quote:
ERROR 8: Use of undefined constant hermes - assumed 'hermes'
0 Error occurred on line 31 of file embed.php in function include_once
1 called from line 48 of file pgv.php in function include_once
2 called from line 32 of file gallery2_random_media.php in function include_once
3 called from line 90 of file index.php

ERROR 8: Use of undefined constant bosweb - assumed 'bosweb'
0 Error occurred on line 31 of file embed.php in function include_once
1 called from line 48 of file pgv.php in function include_once
2 called from line 32 of file gallery2_random_media.php in function include_once
3 called from line 90 of file index.php

ERROR 2: Division by zero
0 Error occurred on line 31 of file embed.php in function include_once
1 called from line 48 of file pgv.php in function include_once
2 called from line 32 of file gallery2_random_media.php in function include_once
3 called from line 90 of file index.php

Warning: Division by zero in /hermes/bosweb/web136/b1369/sl.coblentz/public_html/family/modules/gallery2/embed.php on line 31

<more warnings removed>

Warning: require_once(/modules/core/classes/GalleryDataCache.class) [function.require-once]: failed to open stream: No such file or directory in /hermes/bosweb/web136/b1369/sl.coblentz/public_html/family/modules/gallery2/embed.php on line 31

Fatal error: require_once() [function.require]: Failed opening required '/modules/core/classes/GalleryDataCache.class' (include_path='.:/hermes/bosweb/web136/b1369/sl.coblentz/public_html/family/includes:/hermes/bosweb/web136/b1369/sl.coblentz/public_html/family:.:/usr/local/lib/php-5.2.4/lib/php') in /hermes/bosweb/web136/b1369/sl.coblentz/public_html/family/modules/gallery2/embed.php on line 31

and I have embed.php looking like this:

Quote:
/* Define G2_EMBED = 1 to remember to generate correct URLs and return the HTML, etc. */
require_once(dirname(hermes/bosweb/web136/b1369/sl.coblentz/public_html/joomla/gallery2) . '/modules/core/classes/GalleryDataCache.class');
GalleryDataCache::put('G2_EMBED', 1, true);
require(dirname(hermes/bosweb/web136/b1369/sl.coblentz/public_html/joomla/gallery2) . '/main.php');
require(dirname(hermes/bosweb/web136/b1369/sl.coblentz/public_html/joomla/gallery2) . '/modules/core/classes/GalleryEmbed.class');

I have toyed with this directory path I don't know how many times but I don't seem to be getting very far.

Suggestions?