Error (ERROR_BAD_PARAMETER) :

meatman

Joined: 2005-09-20
Posts: 7
Posted: Tue, 2005-09-20 17:22

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

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Tue, 2005-09-20 17:36

looks to me like a template error / wpg2 theme error.
already tried /lib/support/ -> delete caches ?

 
meatman

Joined: 2005-09-20
Posts: 7
Posted: Tue, 2005-09-20 17:41

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

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Tue, 2005-09-20 17:46

browse to http://yourGallery2Url/lib/support/

 
meatman

Joined: 2005-09-20
Posts: 7
Posted: Tue, 2005-09-20 18:21

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?

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Tue, 2005-09-20 19:58

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.

 
meatman

Joined: 2005-09-20
Posts: 7
Posted: Wed, 2005-09-21 00:21

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?

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Wed, 2005-09-21 00:23

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.

 
meatman

Joined: 2005-09-20
Posts: 7
Posted: Wed, 2005-09-21 00:30

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

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Wed, 2005-09-21 00:40

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);

 
meatman

Joined: 2005-09-20
Posts: 7
Posted: Wed, 2005-09-21 00:45

Ok so I threw error.html in my gallery2 folder and I resaved debug to false. I hope I'm helping...

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Wed, 2005-09-21 09:07

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 :(

 
meatman

Joined: 2005-09-20
Posts: 7
Posted: Fri, 2005-09-23 08:05

How can I debug this in 'ssh access etc'? Is there an idiot guide somewhere? I really appreciate the help Valiant.

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Fri, 2005-09-23 10:56

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.