cannot validate the Gallery2 to WPG2 Relative Path

leslienord

Joined: 2003-09-08
Posts: 40
Posted: Sat, 2008-05-03 15:34

Even after deactivating and re-activating WPG2 version 3.0.6, I still get this glaring red warning:

Validation Error: WPG2 plugin cannot validate the Gallery2 to WPG2 Relative Path /var/www/vhosts/mydomain.com/httpdocs/memories/../var/www/vhosts/mydomain.com/httpdocs/wp-content/plugins/wpg2/templates/wpg2imageblock.tpl

My WordPress version is 2.5.1 and my Gallery2 version is 2.2.4

Everything worked fine until I upgraded to this latest version. Do I need to make any permissions setting changes?

Thanks,
Leslie Kirk

Login or register to post comments
leslienord

Joined: 2003-09-08
Posts: 40
Posted: Sat, 2008-05-03 15:47

I forgot to mention - I verified the path ../var/www/vhosts/mydomain.com/httpdocs/wp-content/plugins/wpg2/templates/wpg2imageblock.tpl

is correct the wpg2imageblock.tpl is right there and I have manually tried to validate the path

../var/www/vhosts/mydomain.com/httpdocs/wp-content/plugins/wpg2 in the WPG2 Paths settings.

Leslie

Login or register to post comments
ozgreg
ozgreg's picture

Joined: 2003-10-18
Posts: 1022
Posted: Sat, 2008-05-03 23:02

Leslie,

No your document path is a little too broad, I was afraid this would be the case on certain hosting firms.. -> ../var/www/vhosts/mydomain.com/httpdocs/ is not required..

Try ../wp-content/plugins/wpg2

Remember this translates to .. move up one directory, and change to /wp-content/plugins/wpg2 which would indicate your Gallery2 is in a subdirectory of your Wordpress

or try ../wordpress/wp-content/plugins/wpg2

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

Login or register to post comments
DWRZ
DWRZ's picture

Joined: 2006-11-19
Posts: 9
Posted: Sat, 2008-05-03 23:37

I am getting the exact same issue. I've tried several alternative ways of typing in the path, but it hasn't resolved anything.

Is the Gallery 2 directory _supposed_ to be inside the Wordpress one?

Login or register to post comments
ozgreg
ozgreg's picture

Joined: 2003-10-18
Posts: 1022
Posted: Sun, 2008-05-04 00:18

No, it works either way.. (Gallery2 being inside or outside your Wordpress Directory)

inside your wordpress your path will be -> ../wp-content/plugins/wpg2
Outside your path will be ../directory/wp-content/plugins/wpg2

directory being the directory wordpress is in..

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

Login or register to post comments
leslienord

Joined: 2003-09-08
Posts: 40
Posted: Sun, 2008-05-04 01:01

Thank you! That got it going again. I used ../wp-content/plugins/wpg2 since my WP resides at the root level.

Leslie

Login or register to post comments
DWRZ
DWRZ's picture

Joined: 2006-11-19
Posts: 9
Posted: Sun, 2008-05-04 14:18

Never mind. I wasn't aware one had to add a ../ for every single folder away from the root (my gallery is within a "multimedia" folder which is within an "archival" folder).

Thanks,
dwrz

Login or register to post comments
ozgreg
ozgreg's picture

Joined: 2003-10-18
Posts: 1022
Posted: Sun, 2008-05-04 22:25

Glad you got it working :)

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

Login or register to post comments
DrUnKtAnK
DrUnKtAnK's picture

Joined: 2007-04-23
Posts: 5
Posted: Sat, 2008-05-10 02:29

I'm having a similar issue. I've had both running great for the last year, until I decided to upgrade wp to 2.5.1. I thought I deactivated WPG2 before I uploaded the new version...

My wordpress dir is crescibene.com/blog
Gallery 2 is in dir crescibene.com/images/gallery2

I know this is got to be simple but I can't resolve it...Any thoughts?

Wordpress 2.5.1 and Gallery2 3.0.6

Thanks in advance!!

AttachmentSize
gallery2-error.jpg136.38 KB
Login or register to post comments
ozgreg
ozgreg's picture

Joined: 2003-10-18
Posts: 1022
Posted: Fri, 2008-05-09 23:54

It will be ../../blog/wp-content/plugins/wpg2

.. = go up a directory so you have to go up two directories to return to / then you are sweet :)

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

Login or register to post comments
DrUnKtAnK
DrUnKtAnK's picture

Joined: 2007-04-23
Posts: 5
Posted: Sat, 2008-05-10 02:28

Worked like a charm. Thank you!

Login or register to post comments
ps_23

Joined: 2008-05-11
Posts: 1
Posted: Sun, 2008-05-11 16:35

Have a similar problem. I would solve it but do not really know if the problem is the path or something else, maybe restrictions...

My gallery and blog run on two different subdomains:

For the gallery2 File Path I put
/var/www/vhosts/<my domain>/subdomains/pictures/httpdocs/

For the Gallery2 to WPG2 Relative Path:
../../blog/httpdocs/wp-content/plugins/wpg2

while the file path is

/var/www/vhosts/<my domain>/subdomains/blog/httpdocs/wp-content/plugins/wpg2

I do not really get the failure that the path cannot be validated, but:

Fatal error: Class 'GalleryEmbed' not found in
/var/www/vhosts/<my domain>/subdomains/blog/httpdocs/wp-content/plugins/wpg2/wpg2embed.inc on line 42

Is it not possible two use the plugin over two subdomains, or what should I change?

Thanks in advance!

Login or register to post comments
ozgreg
ozgreg's picture

Joined: 2003-10-18
Posts: 1022
Posted: Tue, 2008-05-13 06:34

Sorry I must have missed this post before.. That error is a different issue.. Your Gallery2 File Path appears to be incorrect which is why it cannot find "Fatal error: Class 'GalleryEmbed'"

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

Login or register to post comments