coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 permissions => Topic started by: OutOfSync on February 13, 2006, 08:19:49 PM

Title: Template error message for Member Created Albums
Post by: OutOfSync on February 13, 2006, 08:19:49 PM
I have permissions set to allow registered users to create their own albums.  In the listing of categories and albums, there is an link named ''Member Galleries'' with the description ''This category contains albums that belong to Coppermine users'' with 2 albums being shown.  When the link is clicked however, this message appears:


Template error
Failed to find block 'log_ecards'(#(<!-- BEGIN log_ecards -->)(.*?)(<!-- END log_ecards -->)#s) in :

                <div align="center">
                <table cellpadding="0" cellspacing="1">
                        <tr>

                                <td class="admin_menu"><a href="admin.php" title="{ADMIN_TITLE}">{ADMIN_LNK}</a></td>
                                <td class="admin_menu"><a href="catmgr.php" title="{CATEGORIES_TITLE}">{CATEGORIES_LNK}</a></td>
                                <td class="admin_menu"><a href="albmgr.php{CATL}" title="{ALBUMS_TITLE}">{ALBUMS_LNK}</a></td>
                                <td class="admin_menu"><a href="groupmgr.php" title="{GROUPS_TITLE}">{GROUPS_LNK}</a></td>
                                <td class="admin_menu"><a href="usermgr.php" title="{USERS_TITLE}">{USERS_LNK}</a></td>
                                <td class="admin_menu"><a href="banning.php" title="{BAN_TITLE}">{BAN_LNK}</a></td>
                                <td class="admin_menu"><a href="reviewcom.php" title="{COMMENTS_TITLE}">{COMMENTS_LNK}</a></td>

                                <td class="admin_menu"><a href="picmgr.php" title="{PICTURES_TITLE}">{PICTURES_LNK}</a></td>
                                <td class="admin_menu"><a href="searchnew.php" title="{SEARCHNEW_TITLE}">{SEARCHNEW_LNK}</a></td>
                                <td class="admin_menu"><a href="util.php" title="{UTIL_TITLE}">{UTIL_LNK}</a></td>
                                <td class="admin_menu"><a href="profile.php?op=edit_profile" title="{MY_PROF_TITLE}">{MY_PROF_LNK}</a></td>
<!-- BEGIN documentation -->
                                <td class="admin_menu"><a href="{DOCUMENTATION_HREF}" title="{DOCUMENTATION_TITLE}" target="cpg_documentation">{DOCUMENTATION_LNK}</a></td>
<!-- END documentation -->
                        </tr>
                </table>
                </div>

What have I set wrong?  Many thanks!
Title: Re: Template error message for Member Created Albums
Post by: Joachim Müller on February 13, 2006, 08:22:15 PM
Blind guess: you have performed an upgrade, but didn't bother to read the theme upgrade guide?
Title: Re: Template error message for Member Created Albums
Post by: Nibbler on February 13, 2006, 08:24:52 PM
http://forum.coppermine-gallery.net/index.php?topic=24295.msg118141#msg118141
Title: Re: Template error message for Member Created Albums
Post by: OutOfSync on February 13, 2006, 08:32:35 PM
ok...be easy on me as I'm quite new at this  ;D

I used the default "rain drop" theme and do not allow users to change themes. I'll read that other posting and hopefully (fingers crossed) it will make sense to me.
Title: Re: Template error message for Member Created Albums
Post by: OutOfSync on February 13, 2006, 09:00:20 PM
ok, that suggested fix didn't work.  So I changed Themes to "Classic" and now when I click that link I get a "There was an error while processing a database query" message
Title: Re: Template error message for Member Created Albums
Post by: Nibbler on February 13, 2006, 09:04:42 PM
Enable debug mode and post the mysql error message you receive.
Title: Re: Template error message for Member Created Albums
Post by: OutOfSync on February 13, 2006, 09:14:39 PM
thanks

While executing query "SELECT ID_MEMBER as user_id,memberName as user_name,COUNT(DISTINCT a.aid) as alb_count,COUNT(DISTINCT pid) as pic_count,MAX(pid) as thumb_pid, MAX(galleryicon) as gallery_pid FROM cpg_albums AS a INNER JOIN `south49_smf1`.smf_members as u on u.ID_MEMBER+10000=a.category LEFT JOIN cpg_pictures AS p ON p.aid = a.aid WHERE ((isnull(approved) or approved='YES') AND category > 10000)  GROUP BY category ORDER BY category LIMIT 0, 24 " on 0

mySQL error:


below that it indicates the file as: functions.inc.php - Line: 248
Title: Re: Template error message for Member Created Albums
Post by: Nibbler on February 13, 2006, 09:26:00 PM
What version of Coppermine are you running ? Make sure you are up to date.
Title: Re: Template error message for Member Created Albums
Post by: OutOfSync on February 13, 2006, 09:34:54 PM
Coppermine 1.4.2 
Title: Re: Template error message for Member Created Albums
Post by: Nibbler on February 13, 2006, 09:40:13 PM
There you go then, update to 1.4.3
Title: Re: Template error message for Member Created Albums
Post by: OutOfSync on February 13, 2006, 10:54:08 PM
Now I wanna be sedated... :o
Thanks for the help...that worked...sorry to have bothered!