Failed to find block 'log_ecards Failed to find block 'log_ecards
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

Failed to find block 'log_ecards

Started by Vermeer, November 28, 2005, 08:50:06 PM

Previous topic - Next topic

0 Members and 3 Guests are viewing this topic.

Vermeer

Hi,
i get following message, when i click on an keyword on the search-page, but i habe nothing changed on the template:

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>





kegobeer

Do not send me a private message unless I ask for one.  Make your post public so everyone can benefit.

There are no stupid questions
But there are a LOT of inquisitive idiots

Vermeer

it's not public yet.
The problem only appears, when an unregistered user uses the search (unregistered users musn't send ecards... but at this place they only use the search... ??


Vermeer

Joachim Müller

little we could do if you refuse to post a link

Tranz

Did you follow the instructions to upgrade 1.3 theme to 1.4?

Vermeer

Quote from: TranzNDance on November 28, 2005, 11:48:42 PM
Did you follow the instructions to upgrade 1.3 theme to 1.4?
Yes i did - i hope i did, or do you think i have forgot something?

Sorry, but it's impossible to post the link, it's a version which isn't published until now.
The Link-Part is ...thumbnails.php?album=search&search=HEREISTHEKEYWORD

Vermeer

artistsinhawaii

Convert your theme.php file to theme.txt and post it here.   I suspect it has something to do with your menu structure.


Dennis
Learn and live ... In January of 2011, after a botched stent attempt, the doctors told me I needed a multiple bypass surgery or I could die.  I told them I needed new doctors.

Vermeer

#7
There is nothing in the theme.php - it's the same file as the file from "classic"

Vermeer

artistsinhawaii

Quote from: Vermeer on November 29, 2005, 09:05:11 AM
There is nothing in the theme.php - it's the same file as the filen from "classic"

Vermeer

Hmm.. velly interestmaking...

check to see if the following exists in your themes.inc.php file in the include folder:


Quote
                                <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>
<!-- BEGIN log_ecards -->
                                <td class="admin_menu"><a href="db_ecard.php" title="{DB_ECARD_TITLE}">{DB_ECARD_LNK}</a></td>
<!-- END log_ecards -->
                                <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>

Dennis
Learn and live ... In January of 2011, after a botched stent attempt, the doctors told me I needed a multiple bypass surgery or I could die.  I told them I needed new doctors.

Vermeer

Yes, these lines are in the file - but that doesn't matters:

Sorry, sorry, sorry. I have nothing changed, but from now on i can't reproduce the error !?! In other words: I don't have this error anymore!
You must beleve me: I have had this error until now exactly how i described it a few posts ago.

Sorry that i have stolen your time.

Vermeer

artistsinhawaii

That's fine vermeer,

Maybe it was an old file stuck in your browser cache that finally got cleared away. It's just good to know that everything is working for you.

Take care,

Dennis
Learn and live ... In January of 2011, after a botched stent attempt, the doctors told me I needed a multiple bypass surgery or I could die.  I told them I needed new doctors.

windyweather

#11
I see this topic is closed. But I have more data. If you'd like me to open a new one, I can do that.

I have been working with a local version of Coppermine to test things out and all has been fine. Started with 1.4.2. But suddenly when I came back to it, I got this error. Very frustrating until I entered .../coppermine/login.php and found that if I log in, all was well again.

So, the error only occurs when a user is logged out.

Since my gallery is only my LAN, i can't easily provide you access to the gallery. And I don't want to try and break my public gallery so you can see the bug. Apparently, I have flummexed the config parameters in such a way that logged out users can't function. Don't want to do that to my public gallery, of course.

So, I have backed up my database, and the source of the page that gives the error and zipped them up for your perusal.

BTW, I just upgraded - carefully - to 1.4.3 on this gallery, and did version check, and deleted all stale files, so this is a copesetic 1.4.3 install that fails.

If there's more that I can do, let me know. At this point since I have a backup of the database, and I know how to break back in with coppermine/login.php  I"m going to twiddle the config settings until I make it go away and I'll report on what I find.  Looks like something is amiss in config/ theme land. BTW, all themes are unmodified and the only plugin is my "unwanted meta" plugin, which does not modify configs or themes.

cheers,
ww

added after some testing:  I find that the problem is that user mode is messed up. Admin mode works fine, which is why I can log in as administrator. I have tried various combinations of default themes and user themes. The theme dropdown is enabled. Combinations of classic and igames don't work. On the other board, of course igames does work in usermode and admin mode. Oh, btw, I have rebooted the server and restarted Apache... no change. Apache/2.0.54 (Win32) PHP/4.4.0 Server at galepc Port 80 MySQL 4.1.14-nt

Nibbler

OK, solved it.

include/themes.inc.php

grab this bit of code

if ($CONFIG['log_ecards'] == 0) {
template_extract_block($template_gallery_admin_menu, 'log_ecards');
}

if (cpg_get_pending_approvals() == 0) {
template_extract_block($template_gallery_admin_menu, 'admin_approval');
}


and put it back after

        if (GALLERY_ADMIN_MODE) {

where it belongs.

MrBlaQ

This error occoured on my windows 2000 server when the c: ran out of HD space.  Simply freeing space solved the issue.  Note that the webroot for coppermine is is running for a different drive, I:

Nibbler, would you suggest I still use your code patch given this info?

Nibbler

You might as well. What this does is allow you to see the real error message that Coppermine is giving you instead of the log_ecards message.

lennox22

#15
Quote from: Nibbler on December 29, 2005, 12:34:09 AM
OK, solved it.

include/themes.inc.php

grab this bit of code

if ($CONFIG['log_ecards'] == 0) {
template_extract_block($template_gallery_admin_menu, 'log_ecards');
}

if (cpg_get_pending_approvals() == 0) {
template_extract_block($template_gallery_admin_menu, 'admin_approval');
}


and put it back after

        if (GALLERY_ADMIN_MODE) {

where it belongs.


Ok im having that same prob when i click on a pic in my gallery, i want to know EXACLTY where to put that code? i use that code u posted but i think im putting it in the wrong place.

i DID as u said and no luck, Is it possible you can place the entire correct code here for that file so i can just copy and paste it. Thanks

My link is: http://www.classimax.com/maxphotos/cpg143/displayimage.php?album=1&pos=0



lennox22

No luck !!!!

I replace the file with that and nothing changed, im using morpheous template, could that be the problem?.

http://www.classimax.com/maxphotos/cpg143/displayimage.php?album=random&cat=0&pos=-1

Joachim Müller

Morpheus is a cpg1.3.x theme, it hasn't been converted yet to cpg1.4.x, so unless you have made the necessary modifications by yourself, the issue mentioned in this thread doesn't apply to you. Test with one of the default themes that come with the package only. Keep in mind that this is not a support thread, but a bug/testing one, don't clutter it with individual support requests. Start a new thread on the proper board for your issue.