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 _________________________________ |
|
Posts: 1378
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
Posts: 9
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.
Posts: 1378
That is the solution we are also looking at for WPG2 3.03
___________________________________
Wordpress / Gallery2 (WPG2) Plugin, , WPG2 Documentation, WPG2 Demo
Posts: 59
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.
did I got you wrong?
Posts: 9
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.
Posts: 59
The softlink is an easy solution.
Everything works now!
Thanks
Posts: 219
Thanks! That worked for me too - I had to put
ln -s ../../../../gallery2/modules/ modules
because gallery and wp are at the same "level".
Posts: 38
Thanks for the trick!
Same player with the 04-20-2008 nightly build and same good effect of the workaround ;-).
Tom
Posts: 1378
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
Posts: 4
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:
Any suggestions?
Posts: 1378
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
Posts: 4
I got it working, but I *did* have to create a symlink in ${wordpresshome}/gallery2/modules
Posts: 16
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
Posts: 1378
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