WP and Gallery in same server but different domains

tripfoto

Joined: 2007-01-03
Posts: 20
Posted: Thu, 2007-11-15 18:26

Hello,
My WO is here http://www.tripluca.com and my gallery here http://www.tripfoto.com
They are in the same server under the same directory.
Is this ok or not?
The docs says "(They can be on different subdomains, but they must be on the same server.)"
so that would mean it is not possible, what do you think?

Luca

 
capt_kirk

Joined: 2006-01-24
Posts: 492
Posted: Thu, 2007-11-15 18:49

We really should have said different domains or subdomains. Your setup should work fine. The important thing is that they're physically on the same server.

Kirk
____________________________________
G2Image Documentation, G2Image Demo Page, My Family Website

 
tripfoto

Joined: 2007-01-03
Posts: 20
Posted: Sat, 2007-11-17 18:02

Hi Kirk,
Thanks for the reply.
I am still trying to get it right.

Wp is here /kunden/101631/trip/tripluca/ (domain www.tripluca.com)
G2 is here /kunden/101631/trip/tripfoto/ (domain www.trifoto.com)

So, in # WPG2 Paths, in Gallery2 URL:
http://www.tripfoto.com gives: file /kunden/101604_80331/trip/tripluca/embed.php does not exist
/kunden/101631/trip/tripfoto/ gives: file /kunden/101604_80331/trip/tripluca/kunden/101631/trip/tripfoto/embed.php does not exist
../kunden/101604_80331/trip/tripfoto/ gives: file /kunden/101604_80331/trip/tripluca/../kunden/101604_80331/trip/tripfoto/embed.php does not exist

so basically i am not able to point to that directory in the same server..I am sure there must be an easy way, do you happen to know it?
Thanks!
Luca

 
capt_kirk

Joined: 2006-01-24
Posts: 492
Posted: Sun, 2007-11-18 02:12

You should be able to manually enter /kunden/101631/trip/tripfoto/ in the "Gallery2 File Path:" on the WPG2 Paths tab. (Not the Gallery2 URL.) What happens when you do that?

Kirk
____________________________________
G2Image Documentation, G2Image Demo Page, My Family Website

 
tripfoto

Joined: 2007-01-03
Posts: 20
Posted: Sun, 2007-11-18 13:20

Hi Kirk,
I've done as you said and now under the WPG2 Paths tab I have :
WPG2 Paths Status: Valid

The field "Gallery2 URL:" does not show anymore.

But:
in any other tab I click I get "Options not available until WPG2 Plugin is Validated."
where can I validate it?

Thanks!

Luca

 
capt_kirk

Joined: 2006-01-24
Posts: 492
Posted: Sun, 2007-11-18 14:00

Hmm. It shouldn't do that... The Gallery2 URL "autovalidation" field should be gone, (but there should be a Gallery2 URL field in the manual paths section) since that page thinks it's validated, but the other pages should know it's validated. I'll take a look at the code. We probably didn't set the " "validated" variable correctly in the "Gallery2 File Path" validation algorithm.

I'm on my way out now, and probably won't get to look at it until late tonight or early tomorrow morning. Hopefully it's an easy one line fix, but I'll have to find it and test it out for a while.

Kirk
____________________________________
G2Image Documentation, G2Image Demo Page, My Family Website

 
ozgreg
ozgreg's picture

Joined: 2003-10-18
Posts: 1378
Posted: Sun, 2007-11-18 21:45

tripfoto,

Can you please provide a screen print of the issue, as the Gallery2 URL field does not get suppressed.

____________________________________
Wordpress / Gallery2 (WPG2) Plugin, , WPG2 Documentation, WPG2 Demo

 
tripfoto

Joined: 2007-01-03
Posts: 20
Posted: Mon, 2007-11-19 10:25

Kirk,
here it is:
Please note that right after inserting the paths, the # WPG2 Paths is blank. A refresh makes it work.
All other tabs show "Options not available until WPG2 Plugin is Validated."
Thanks
Luca

 
ozgreg
ozgreg's picture

Joined: 2003-10-18
Posts: 1378
Posted: Mon, 2007-11-19 10:59

Hiya Tripfoto,

Not sure what you mean WPG2 Paths is blank, WPG2 has no configuration item like that, if you mean all the paths are blank, then you have something preventing the WPG2 plugin from working as intended as this is not standard WPG2 behaviour.

In addition your Gallery2 File path is incorrect as WPG2 validation is complaining it cannot find the embed.php in the Gallery2 File path. This could be due to either permissions issues trying to access this file (account user permission issue etc) or the files are not where you believe they are located..

____________________________________
Wordpress / Gallery2 (WPG2) Plugin, , WPG2 Documentation, WPG2 Demo

 
tripfoto

Joined: 2007-01-03
Posts: 20
Posted: Mon, 2007-11-19 22:45

Hi,
WPG2 Paths is blank = the tab in picture1, is blank right after inserting the path. Then a refresh makes appear the page as in picture1
The Gallery2 File path is correct..I will try to reinstall and let you know.
Thanks for your help!
Tripfoto

 
ozgreg
ozgreg's picture

Joined: 2003-10-18
Posts: 1378
Posted: Mon, 2007-11-19 23:01

Sorry to ask this, can you grab a screenshot of the blank path, I am quite curious on what is blank..

How did you go on the reinstall? I meant to ask before is the Gallery2 and Wordpress running on the same user account??

____________________________________
Wordpress / Gallery2 (WPG2) Plugin, , WPG2 Documentation, WPG2 Demo

 
tripfoto

Joined: 2007-01-03
Posts: 20
Posted: Sun, 2008-01-13 16:23

Sorry for the long delay, I gave up for a while.
Here is the screen shot of the WPG2 tab which is blank.
WPG2 is showing "WPG2 Paths Status: Valid".
Nothing works.

Luca

 
ozgreg
ozgreg's picture

Joined: 2003-10-18
Posts: 1378
Posted: Sun, 2008-01-13 21:49

Hiya Tripfoto,

Ok it seems you are now having a different issue from your original "blank" path, please have a read of this thread

____________________________________
Wordpress / Gallery2 (WPG2) Plugin, , WPG2 Documentation, WPG2 Demo

 
tripfoto

Joined: 2007-01-03
Posts: 20
Posted: Sun, 2008-01-13 23:13

mmmm...see http://www.tripluca.com/phpinfo.php
I have 50MB memory limit. Do you think I should increase?
I even deleted all files and reinstalled. Same.

 
ozgreg
ozgreg's picture

Joined: 2003-10-18
Posts: 1378
Posted: Mon, 2008-01-14 00:32

I doubt increasing the size will fix this. It looks like your Gallery2 installation is tripping over when being queried by WPG2. Can you please turn on Gallery2 Debugging and Attach the debug log.

____________________________________
Wordpress / Gallery2 (WPG2) Plugin, , WPG2 Documentation, WPG2 Demo

 
tripfoto

Joined: 2007-01-03
Posts: 20
Posted: Mon, 2008-01-14 22:48

Done! Here it is
Luca

Quote:
Debug Redirect
Not automatically redirecting you to the next page because we're in debug mode
Continue to the next page

file_exists(/kunden/101604_80331/trip/tripfotog2data/cache/module/_all/0/0/GalleryFactoryHelper_loadRegistry.inc)
file_exists(/kunden/101604_80331/trip/tripfoto/modules/rewrite/classes/parsers/modrewrite/ModRewriteUrlGenerator.class)
getParameter shortUrls for rewrite plugin
file_exists(/kunden/101604_80331/trip/tripfotog2data/cache/module/rewrite/0/0/0.inc)
getParameter session.lifetime for core plugin
file_exists(/kunden/101604_80331/trip/tripfotog2data/cache/module/core/0/0/0.inc)
getParameter session.inactivityTimeout for core plugin

(mysqlt): SET NAMES "utf8"

file_exists(/kunden/101604_80331/trip/tripfotog2data/cache/module/_all/0/0/GalleryStorage_describeMap.inc)

(mysqlt): SELECT g_userId, g_remoteIdentifier, g_creationTimestamp,
g_modificationTimestamp, g_data FROM g2_SessionMap WHERE
g_id='b58bf58ce3dfe9e6efb60005fd6d0c3e'

controller , view
Loading plugin core
Class not defined, trying to include it.
file_exists(/kunden/101604_80331/trip/tripfoto/modules/core/module.inc)
core plugin successfully instantiated
file_exists(/kunden/101604_80331/trip/tripfotog2data/versions.dat)
file(/kunden/101604_80331/trip/tripfotog2data/versions.dat, )
[1200350823] can't guarantee 5 -- extending!
file_exists(/kunden/101604_80331/trip/tripfotog2data/cache/entity/0/0/6.inc)
Loading plugin core
core plugin successfully instantiated
Check the version of the core plugin
file_exists(/kunden/101604_80331/trip/tripfotog2data/cache/module/_all/0/0/GalleryPluginHelper_fetchPluginStatus.inc)
The version of the core plugin is ok
file_exists(/kunden/101604_80331/trip/tripfoto/modules/core/ShowItem.inc)
getParameter acceleration for core plugin
getParameter id.anonymousUser for core plugin
getParameter id.anonymousUser for core plugin
getParameter id.adminGroup for core plugin

(mysqlt): SELECT g_userId FROM g2_UserGroupMap WHERE g_userId=6 AND
g_groupId=3 LIMIT 1

getParameter id.rootAlbum for core plugin
file_exists(/kunden/101604_80331/trip/tripfotog2data/cache/entity/0/0/7.inc)
file_exists(/kunden/101604_80331/trip/tripfoto/modules/multilang/module.inc)

(mysqlt): SELECT g_language, g_title, g_summary, g_description FROM
g2_MultiLangItemMap WHERE g_itemId=7

Loading plugin matrix
Class not defined, trying to include it.
file_exists(/kunden/101604_80331/trip/tripfoto/themes/matrix/theme.inc)
matrix plugin successfully instantiated
Check the version of the matrix plugin
file_exists(/kunden/101604_80331/trip/tripfotog2data/cache/theme/_all/0/0/GalleryPluginHelper_fetchPluginStatus.inc)
The version of the matrix plugin is ok
file_exists(/kunden/101604_80331/trip/tripfotog2data/cache/theme/matrix/0/0/0.inc)
file_exists(/kunden/101604_80331/trip/tripfotog2data/cache/theme/matrix/0/0/7.inc)
getParameter modrewrite.galleryLocation for rewrite plugin
file_exists(/kunden/101604_80331/trip/tripfoto/modules/core/classes/../../../themes/local/matrix)
getParameter modrewrite.galleryLocation for rewrite plugin
getParameter misc.markup for core plugin
file_exists(/kunden/101604_80331/trip/tripfoto/modules/comment/Preloads.inc)
file_exists(/kunden/101604_80331/trip/tripfoto/modules/comment/Preloads.inc)
file_exists(/kunden/101604_80331/trip/tripfoto/modules/rating/Preloads.inc)
file_exists(/kunden/101604_80331/trip/tripfoto/modules/imageblock/Preloads.inc)
file_exists(/kunden/101604_80331/trip/tripfotog2data/cache/module/imageblock/0/0/0.inc)
file_exists(/kunden/101604_80331/trip/tripfoto/modules/imageframe/classes/ImageFrameImpl.class)
Loading plugin imageframe
Class not defined, trying to include it.
file_exists(/kunden/101604_80331/trip/tripfoto/modules/imageframe/module.inc)
imageframe plugin successfully instantiated
Check the version of the imageframe plugin
The version of the imageframe plugin is ok
file_exists(/kunden/101604_80331/trip/tripfoto/modules/core/classes/../../../modules/imageframe/local/frames)
is_dir(/kunden/101604_80331/trip/tripfoto/modules/imageframe/classes/../frames/flicking)
file_exists(/kunden/101604_80331/trip/tripfoto/modules/imageframe/classes/../frames/flicking/frame.inc)
realpath(/kunden/101604_80331/trip/tripfoto/modules/core/classes/../../..)
Binding text domain: modules_imageframe ->
/kunden/101604_80331/trip/tripfoto/modules/imageframe/locale
file_exists(/kunden/101604_80331/trip/tripfoto/modules/albumselect/Preloads.inc)
file_exists(/kunden/101604_80331/trip/tripfoto/modules/core/Preloads.inc)
file_exists(/kunden/101604_80331/trip/tripfoto/modules/core/Preloads.inc)
file_exists(/kunden/101604_80331/trip/tripfoto/modules/icons/classes/IconsImpl.class)
getParameter iconpack for icons plugin
file_exists(/kunden/101604_80331/trip/tripfotog2data/cache/module/icons/0/0/0.inc)
file_exists(/kunden/101604_80331/trip/tripfoto/modules/colorpack/classes/ColorPackImpl.class)
file_exists(/kunden/101604_80331/trip/tripfoto/modules/rating/classes/RatingSortOrder.class)

(mysqlt):
SELECT
g2_Group.g_id,
g2_Group.g_groupName
FROM
g2_UserGroupMap, g2_Group
WHERE
g2_Group.g_id = g2_UserGroupMap.g_groupId
AND
g2_UserGroupMap.g_userId = 6
ORDER BY
g2_Group.g_groupName
LIMIT 2147483647

(mysqlt): SELECT g_module, g_permission, g_description, g_bits, g_flags
FROM g2_PermissionSetMap

realpath(/kunden/101604_80331/trip/tripfoto/modules/core/classes/../../..)
Binding text domain: modules_cart ->
/kunden/101604_80331/trip/tripfoto/modules/cart/locale
realpath(/kunden/101604_80331/trip/tripfoto/modules/core/classes/../../..)
Binding text domain: modules_comment ->
/kunden/101604_80331/trip/tripfoto/modules/comment/locale
realpath(/kunden/101604_80331/trip/tripfoto/modules/core/classes/../../..)
Binding text domain: modules_core ->
/kunden/101604_80331/trip/tripfoto/modules/core/locale
realpath(/kunden/101604_80331/trip/tripfoto/modules/core/classes/../../..)
Binding text domain: modules_digibug ->
/kunden/101604_80331/trip/tripfoto/modules/digibug/locale
realpath(/kunden/101604_80331/trip/tripfoto/modules/core/classes/../../..)
Binding text domain: modules_ecard ->
/kunden/101604_80331/trip/tripfoto/modules/ecard/locale
realpath(/kunden/101604_80331/trip/tripfoto/modules/core/classes/../../..)
Binding text domain: modules_fotokasten ->
/kunden/101604_80331/trip/tripfoto/modules/fotokasten/locale
realpath(/kunden/101604_80331/trip/tripfoto/modules/core/classes/../../..)
Binding text domain: modules_photoaccess ->
/kunden/101604_80331/trip/tripfoto/modules/photoaccess/locale
realpath(/kunden/101604_80331/trip/tripfoto/modules/core/classes/../../..)
Binding text domain: modules_rating ->
/kunden/101604_80331/trip/tripfoto/modules/rating/locale
realpath(/kunden/101604_80331/trip/tripfoto/modules/core/classes/../../..)
Binding text domain: modules_shutterfly ->
/kunden/101604_80331/trip/tripfoto/modules/shutterfly/locale

(mysqlt):
SELECT DISTINCT
g2_AccessMap.g_accessListId
FROM
g2_AccessMap
WHERE
g2_AccessMap.g_userOrGroupId IN (6,4,2,3)
AND
g2_AccessMap.g_permission & 1 = 1

(mysqlt):
SELECT
g2_ChildEntity.g_id, g2_RatingCacheMap.g_averageRating,
g2_RatingCacheMap.g_voteCount
FROM
g2_ChildEntity LEFT JOIN g2_RatingCacheMap ON g2_ChildEntity.g_id =
g2_RatingCacheMap.g_itemId INNER JOIN g2_Item ON g2_ChildEntity.g_id =
g2_Item.g_id INNER JOIN g2_AccessSubscriberMap ON g2_ChildEntity.g_id =
g2_AccessSubscriberMap.g_itemId
WHERE
g2_ChildEntity.g_parentId = 7 AND g2_AccessSubscriberMap.g_accessListId
IN
(8,9,10,11,13,14,16,17,19,26,28,95,162,163,169,171,173,401,402,403,404,405,406,1411,1589,6508,7647,7648,7650,7651)
ORDER BY g2_RatingCacheMap.g_averageRating DESC,
g2_RatingCacheMap.g_voteCount DESC, g2_ChildEntity.g_id LIMIT 2147483647

getParameter id.rootAlbum for core plugin
Loading plugin core
core plugin successfully instantiated
Check the version of the core plugin
The version of the core plugin is ok

 
ozgreg
ozgreg's picture

Joined: 2003-10-18
Posts: 1378
Posted: Tue, 2008-01-15 01:19

This is the debug log you get when trying to view the WPG2 Validation?
____________________________________
Wordpress / Gallery2 (WPG2) Plugin, , WPG2 Documentation, WPG2 Demo

 
tripfoto

Joined: 2007-01-03
Posts: 20
Posted: Tue, 2008-01-15 10:39

no, this is what I see in the G2 installation under www.tripfoto.com
No debug messages in WP, I just tried again.
Luca

 
ozgreg
ozgreg's picture

Joined: 2003-10-18
Posts: 1378
Posted: Tue, 2008-01-15 21:51

So the WPG2 validation screen generates no debug log, what debug setting are you using??

____________________________________
Wordpress / Gallery2 (WPG2) Plugin, , WPG2 Documentation, WPG2 Demo

 
tripfoto

Joined: 2007-01-03
Posts: 20
Posted: Tue, 2008-01-15 22:14

I enabled Gallert Debuggin as in here
http://codex.gallery2.org/Gallery2:FAQ#How_to_set.2Fuse_Gallery_in_debug_mode.3F
by changing to
$gallery->setDebug('buffered');
in config.php in tripfoto

 
ozgreg
ozgreg's picture

Joined: 2003-10-18
Posts: 1378
Posted: Tue, 2008-01-15 22:18

You should get a G2 Debug log when the WPG2 validates. The fact you are not getting a log also raises the possibility that the PHP script is dying because something in your hosting environment is preventing it from running prior to the G2 validation tests, guessing here but it could be failing at step when it programmatically tries to check if the G2 files exists.

Do you get any errors in your error_log?

____________________________________
Wordpress / Gallery2 (WPG2) Plugin, , WPG2 Documentation, WPG2 Demo

 
tripfoto

Joined: 2007-01-03
Posts: 20
Posted: Sun, 2008-12-14 22:33

I am back!
Upgraded to wp 2.7, and gave it a new try!
Almost there...almost
See the screenshot.
Any idea?
Luca