Undefined variable: date_filter_where_clause

17 years 6 months ago #21268 by nmvc15
Hi. I am a newbie and currently I have error notices when I log in.

I am using :
-CB 1.0.1
-CB Gallery RC 2

I have these errors on my page:

Notice: Undefined variable: date_filter_where_clause in ../mod_cbgallery.php on line 157

Notice: Undefined variable: date_filter_where_clause in ../mod_cbgallery.php on line 322

I read this post and sure enough, my the errors were fixed when I changed my php reporting level, but I would like to keep my error reporting level as it is, and if there is a workaround for this problem.

Thank you.

Please Log in to join the conversation.

17 years 6 months ago #21277 by nant
Please post an artifact on the forge (see sig) and I will post a fix.

Please Log in to join the conversation.

17 years 6 months ago #21336 by nmvc15
Man, you're quick! Thanks for the fix, Nick. Works like a charm.

Please Log in to join the conversation.

17 years 6 months ago #21346 by nant

Please Log in to join the conversation.

17 years 5 months ago #21760 by ScoobyDan
Replied by ScoobyDan on topic Re:Undefined variable: date_filter_where_clause
Hi,

I am also suffering from the same problem. Where can I get the fix from? I have checked the SourceForge page, but I can't see any fixes.

This plugin is great, but it looks horrible with these error messages :(

Edit: Hmmmm :unsure: - The error messages disappear when I reduce the error reporting to System Default. Is this still something to worry about, or can I now ignore the error? Sorry for the questions, but I'm new to Joomla :S

Post edited by: ScoobyDan, at: 2006/09/30 01:19

Please Log in to join the conversation.

17 years 5 months ago #21840 by nmvc15
ScoobyDan, this is the fix that Nick gave:

change line 135 of the mod_cbgallery.php file from:

break;

to

$date_filter_where_clause = "";
break;


Hope this helps.

Please Log in to join the conversation.

Moderators: beatnantkrileon
Time to create page: 0.336 seconds

Facebook Twitter LinkedIn