I'm new to this whole thing so go easy Anyway, I had successfully installed WPG2 with the clean theme and all was well until I gave my Aunt the admin/password to upload photos in a certain album. The first few worked, actually all the photos worked, but now when you go to the album <http://www.greenbeanbake.com/wp-gallery2.php?g2_view=core.ShowItem&g2_itemId=242> it gives this error:
Error Detail -
Error (ERROR_BAD_PARAMETER) :
* in modules/core/classes/GallerySmarty.class at line 108 (gallerystatus::error)
* in lib/smarty/Smarty.class.php at line 1584 (gallerysmarty::trigger_error)
* in lib/smarty/Smarty.class.php at line 1410 (gallerysmarty::_fetch_resource_info)
* in lib/smarty/Smarty.class.php at line 1859 (gallerysmarty::_compile_resource)
* in modules/core/classes/GalleryTemplateAdapter.class at line 606 (gallerysmarty::_smarty_include)
* in /home/greenbea/public_html/albums/smarty/templates_c/%%6321077/%%03^030^03043218%%album.tpl.php at line 17 (gallerytemplateadapter::theme)
* in lib/smarty/Smarty.class.php at line 1861
* in modules/core/classes/GalleryTemplateAdapter.class at line 606 (gallerysmarty::_smarty_include)
* in /home/greenbea/public_html/albums/smarty/templates_c/%%6321077/%%7B^7B4^7B4BCE65%%theme.tpl.php at line 43 (gallerytemplateadapter::theme)
* in lib/smarty/Smarty.class.php at line 1258
* in modules/core/classes/GallerySmarty.class at line 90 (smarty::fetch)
* in modules/core/classes/GalleryTemplate.class at line 206 (gallerysmarty::fetch)
* in main.php at line 309 (gallerytemplate::fetch)
* in main.php at line 87
* in modules/core/classes/GalleryEmbed.class at line 153
* in /home/greenbea/public_html/wp-gallery2.php at line 55 (galleryembed::handlerequest)
I noticed that if I login to the gallery2 side of things(not through the blog) that the album is viewable, but still the same error at the bottom. I've searched the WPG2 Forums and It was suggested that I now go here for help. I have no idea what to do and I'm not very fluent in php, so any help would be appreciated! I hope this makes sense...
Thx, Meatman
Posts: 32509
looks to me like a template error / wpg2 theme error.
already tried /lib/support/ -> delete caches ?
Posts: 7
Sorry Valiant, I don't mean to sound like a jackass, but I really don't know what you mean ' /lib/support/ -> delete caches ?' Where do I find this? Thx in advance, M
Posts: 32509
browse to http://yourGallery2Url/lib/support/
Posts: 7
No luck Valiant. All the other albums work fine. It's just the one album (The Gardina's) so far. <http://www.greenbeanbake.com> Any other ideas?
Posts: 32509
do you see more details when activating immediate debug mode?
please copy the output of the specific album page (not the smarty debug output) and link to it. i guess you don't want to keep it in immediate debug mode, since it screws up the look of your g2.
Posts: 7
Sorry Valiant, The whole job thing always gets in the way Anyway, I appreciate the help, however I don't know how to activate debug mode. And I don't know where the output of the specific album page is. I go to the gallery part of my blog <http://greenbeanbake.com/wp-gallery2.php>, click on the album 'The Gardina's' I get the Error that you saw earlier. I'm not exactly savy. What am I not seeing? Am I looking right at what you need?
Posts: 32509
open config.php in a texteditor, change setDebug(false) to setDebug('immediate'); save the file.
i see the error, but with debug on, we'll see much more.
Posts: 7
Alright debug is on and the whole thing is Fud Up! What exactly am I looking for? If I click on the album I see a whole lotta craziness
Posts: 32509
just make a copy of the page with the error (this specific album) and save it as error.html or so somewhere on the server ,then you can change the debug mode back to setDebug(false);
Posts: 7
Ok so I threw error.html in my gallery2 folder and I resaved debug to false. I hope I'm helping...
Posts: 32509
the debug output contains no details about the error, not good.
i have no idea what went wrong there. someone has to debug this in detail (ssh access etc) but i don't have the time for it
Posts: 7
How can I debug this in 'ssh access etc'? Is there an idiot guide somewhere? I really appreciate the help Valiant.
Posts: 32509
we don't have a guide on how to debug G2.
g2 is written in php, which is a programming language. so if you don't find a guide on how to debug a php application, you need to find a guide on how to debug a program. (google.com)
most often, we don't use a "debugger" to debug g2, since good graphical php debuggers (an application) are expensive.
so at least i use often just print and exit statements to find out what code line is reached and where the error is produced.
g2 has a lot of files and we jump around in the files and include other files etc. so it's definitely not easy / or a short task to debug it as a g2 newbie.