Wordpress 2.3.2 and Gallery 2.3-svn

fryfrog

Joined: 2002-10-30
Posts: 3236
Posted: Tue, 2008-01-08 03:14

Hey guys, I was wondering how things were going with respect to Gallery 2.3-svn.

I've looked for you on IRC and such, but not much luck finding you. Any quick fixes?

My poor little site is depressed, here are some example errors. I'd be happy to tinker around and test, but I'm not sure where to start. It feels like to me that if it just threw a "/gallery2" in front of that tpl path it would work :/

Error (ERROR_BAD_PARAMETER) : Smarty error: The template ‘modules/imageframe/templates/containers/ImageFrame.tpl’ does not exist.

    * in modules/core/classes/GallerySmarty.class at line 76 (GalleryCoreApi::error)
    * in modules/core/classes/GalleryTemplate.class at line 401 (GallerySmarty::trigger_error)
    * in ??? at line 0 (GalleryTemplate::resourceGetTemplate)
    * in lib/smarty/Smarty.class.php at line 1562
    * in lib/smarty/Smarty.class.php at line 1417 (Smarty::_fetch_resource_info)
    * in lib/smarty/Smarty.class.php at line 1869 (Smarty::_compile_resource)
    * in modules/core/classes/GalleryTemplateAdapter.class at line 969 (Smarty::_smarty_include)
    * in /var/www/fryfrog.com/g2data/smarty/templates_c/%%1626963688/%%09^093^093C31C2%%wpg2imageblock.tpl.php at line 43 (GalleryTemplateAdapter::container)
    * in lib/smarty/Smarty.class.php at line 1265
    * in modules/core/classes/GallerySmarty.class at line 61 (Smarty::fetch)
    * in modules/core/classes/GalleryTemplate.class at line 186 (GallerySmarty::fetch)
    * in /var/www/fryfrog.com/htdocs/wordpress/wp-content/plugins/wpg2/wpg2embed.inc at line 1097 (GalleryTemplate::fetch)
    * in /var/www/fryfrog.com/htdocs/wordpress/wp-content/plugins/wpg2/wpg2embed.inc at line 602
    * in /var/www/fryfrog.com/htdocs/wordpress/wp-content/plugins/wpg2/wpg2embed.inc(946) : regexp code at line 1
    * in /var/www/fryfrog.com/htdocs/wordpress/wp-content/plugins/wpg2/wpg2embed.inc at line 946
    * in ??? at line 0
    * in /var/www/fryfrog.com/htdocs/wordpress/wp-includes/plugin.php at line 59
    * in /var/www/fryfrog.com/htdocs/wordpress/wp-includes/post-template.php at line 77
    * in /var/www/fryfrog.com/htdocs/wordpress/wp-content/themes/fryfrog/page.php at line 9
    * in /var/www/fryfrog.com/htdocs/wordpress/wp-includes/template-loader.php at line 33
    * in /var/www/fryfrog.com/htdocs/wordpress/wp-blog-header.php at line 21
    * in /var/www/fryfrog.com/htdocs/index.php at line 4

_________________________________
Support & Documentation || Donate to Gallery || My Website

 
ozgreg
ozgreg's picture

Joined: 2003-10-18
Posts: 1378
Posted: Tue, 2008-01-08 21:46

It would however I cannot find how I can set a second template path (I already set the first path but at a total lost how to set the second modules/imageframe/templates/containers/ImageFrame path to point to wpg2 template directory.

I been away on Holidays and thus not had a chance yet to find Valiant and chat with him about how I can do this..

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

 
pdoes

Joined: 2008-01-09
Posts: 9
Posted: Wed, 2008-01-09 23:02

I ran into the same problem, I solved it temporarily by copying "modules/imageframe/templates/containers/ImageFrame.tpl" from the Gallery2 directory to the base of the WPG2 directory. Now that I think of it I'm pretty sure you could also make a soft-link which would be a better temporarily solution.

 
ozgreg
ozgreg's picture

Joined: 2003-10-18
Posts: 1378
Posted: Wed, 2008-01-09 23:07

That is the solution we are also looking at for WPG2 3.03

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

 
digitaldonky
digitaldonky's picture

Joined: 2005-10-18
Posts: 59
Posted: Thu, 2008-01-10 02:17

I have the same Problem. But I don't understand your provided solution.
If you meant the following with "base of the wpg2" directory, it don't work for me.

Quote:
cp ~/gallery2/modules/imageframe/templates/containers/ImageFrame.tpl ~/wp-content/plugins/wpg2/

did I got you wrong?

 
pdoes

Joined: 2008-01-09
Posts: 9
Posted: Thu, 2008-01-10 20:58

It is :
cd ~/wp-content/plugins/wpg2/
mkdir -p modules/imageframe/templates/containers/
cd ~/gallery2/modules/imageframe/templates/containers/
cp ImageFrame.tpl ~/wp-content/plugins/wpg2/modules/imageframe/templates/containers/

or, and I just checked it if it works and it does.A better solution:
cd ~/wp-content/plugins/wpg2/
ln -s ../../../gallery2/modules/ modules

That way when the file ImageFrame.tpl changes during a svn update you don't have to copy it again :)

Sorry for the confusing.

 
digitaldonky
digitaldonky's picture

Joined: 2005-10-18
Posts: 59
Posted: Fri, 2008-01-11 00:34

The softlink is an easy solution.
Everything works now!

Thanks

 
toastmaster

Joined: 2003-05-01
Posts: 219
Posted: Thu, 2008-01-24 10:46

Thanks! That worked for me too - I had to put
ln -s ../../../../gallery2/modules/ modules
because gallery and wp are at the same "level".

 
tomtomgoo

Joined: 2008-01-06
Posts: 38
Posted: Sun, 2008-04-27 23:48

Thanks for the trick!
Same player with the 04-20-2008 nightly build and same good effect of the workaround ;-).

Tom

 
ozgreg
ozgreg's picture

Joined: 2003-10-18
Posts: 1378
Posted: Mon, 2008-04-28 01:18

BTW this has been resolved in 3.05, although I have not fully tested G2 2.3 SVN builds to see if it causes any other issues.. Any 2.3 specific functionality will be addressed in 3.10

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

 
jdoklovic

Joined: 2008-06-03
Posts: 4
Posted: Tue, 2008-06-03 20:48

I am using the latest gallery2 from svn and wpg2 v 3.0.6 and I'm getting this error.
I tried creating the symlink and it still didn't work.

I have gallery2 installed, and had it install an embedded copy in:
/${mywordpressinstall}/gallery2/

my specific error is:

Array ( [blocks] => specificItem [show] => [itemId] => 75 [exactSize] => 150 [itemFrame] => None [albumFrame] => None )

Choose a gallery to view below
Error (ERROR_BAD_PARAMETER) : Smarty error: The template ‘modules/imageframe/templates/containers/ImageFrame.tpl’ does not exist.

    * in modules/core/classes/GallerySmarty.class at line 76 (GalleryCoreApi::error)
    * in modules/core/classes/GalleryTemplate.class at line 436 (GallerySmarty::trigger_error)
    * in ??? at line 0 (GalleryTemplate::resourceGetTemplate)
    * in lib/smarty/Smarty.class.php at line 1559
    * in lib/smarty/Smarty.class.php at line 1414 (Smarty::_fetch_resource_info)
    * in lib/smarty/Smarty.class.php at line 1866 (Smarty::_compile_resource)
    * in modules/core/classes/GalleryTemplateAdapter.class at line 1020 (Smarty::_smarty_include)
    * in /var/www/chloe.sysbliss.com/g2data/smarty/templates_c/%%2923841549/%%F8^F83^F83143E6%%wpg2imageblock.tpl.php at line 43 (GalleryTemplateAdapter::container)
    * in lib/smarty/Smarty.class.php at line 1262
    * in modules/core/classes/GallerySmarty.class at line 61 (Smarty::fetch)
    * in modules/core/classes/GalleryTemplate.class at line 220 (GallerySmarty::fetch)
    * in /var/www/chloe.sysbliss.com/htdocs/wp-content/plugins/wpg2/wpg2embed.inc at line 1296 (GalleryTemplate::fetch)
    * in /var/www/chloe.sysbliss.com/htdocs/wp-content/plugins/wpg2/wpg2embed.inc at line 777
    * in /var/www/chloe.sysbliss.com/htdocs/wp-content/plugins/wpg2/wpg2embed.inc(1139) : regexp code at line 1
    * in /var/www/chloe.sysbliss.com/htdocs/wp-content/plugins/wpg2/wpg2embed.inc at line 1139
    * in ??? at line 0
    * in /var/www/chloe.sysbliss.com/htdocs/wp-includes/plugin.php at line 163
    * in /var/www/chloe.sysbliss.com/htdocs/wp-includes/post-template.php at line 79
    * in /var/www/chloe.sysbliss.com/htdocs/wp-content/themes/beautiful-day-2.0/page.php at line 16
    * in /var/www/chloe.sysbliss.com/htdocs/wp-includes/template-loader.php at line 34
    * in /var/www/chloe.sysbliss.com/htdocs/wp-blog-header.php at line 20
    * in /var/www/chloe.sysbliss.com/htdocs/index.php at line 4

Any suggestions?

 
ozgreg
ozgreg's picture

Joined: 2003-10-18
Posts: 1378
Posted: Tue, 2008-06-03 22:22

jdoklovic,

You do not need to create a symlink, WPG2 3.05+ is fully compatible with G2.3

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

 
jdoklovic

Joined: 2008-06-03
Posts: 4
Posted: Wed, 2008-06-04 13:39

I got it working, but I *did* have to create a symlink in ${wordpresshome}/gallery2/modules

 
maxio

Joined: 2008-07-29
Posts: 16
Posted: Mon, 2008-08-18 10:47

I've created two symlinks. One from gallery multisite folder and one from wpg2 folder and it still shows the same error.
My post is at: http://gallery.menalto.com/node/80419

 
ozgreg
ozgreg's picture

Joined: 2003-10-18
Posts: 1378
Posted: Tue, 2008-08-19 02:57

You do not need to create a symlink for a stand alone G2 install however I suspect a multi-install is a different matter. I am not sure if I can support Multi-installs support for this would be added in WPG2 3.1 when we move away from using the Imageblock function..

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