forum.coppermine-gallery.net

Dev Board => cpg1.4 Testing/Bugs => cpg1.4 Testing/Bugs: FIXED/CLOSED => Topic started by: slamp on January 08, 2006, 09:03:48 pm

Title: viewlog.php -> template error
Post by: slamp on January 08, 2006, 09:03:48 pm
Hello,

if an anonymous user try to access directly viewlog.php it will get an error:
Code: [Select]
Template error
Failed to find block 'admin_approval'(#(<!-- BEGIN admin_approval -->)(.*?)(<!-- END admin_approval -->)#s) in :
[...]
Example: http://coppermine-gallery.net/demo/cpg14x/viewlog.php
Title: Re: viewlog.php -> template error
Post by: Tranz on January 08, 2006, 09:26:10 pm
Strange... my installation behaves correctly. It shows the critical error message:
You don't have permission to access this page.
Title: Re: viewlog.php -> template error
Post by: Joachim Müller on January 09, 2006, 08:51:19 am
did you upgrade or do a fresh install? If you upgraded, you'll need to update your custom theme as suggested.
Title: Re: viewlog.php -> template error
Post by: Tranz on January 09, 2006, 03:23:59 pm
The thing is that link goes to our demo, and the error occurs with the classic theme...
Title: Re: viewlog.php -> template error
Post by: slamp on January 09, 2006, 09:12:36 pm
The thing is that link goes to our demo, and the error occurs with the classic theme...
Exactly. In fact I found the problem on my gallery < http://daury.net/galerie/viewlog.php >, but as the problem occured on the demo gallery, I prefered to post the demo link.
Title: Re: viewlog.php -> template error
Post by: soro on February 14, 2006, 11:03:24 pm
Any news on this one? Same happens with direct hit on thumbnails.php, without parameters. Computer never logged in, no cookies set. Again, the link to your demo site:

http://coppermine-gallery.net/demo/cpg14x/thumbnails.php

Same error as on my site.  :-\
Title: Re: viewlog.php -> template error
Post by: Nibbler on February 14, 2006, 11:15:03 pm
Dupe of already fixed http://forum.coppermine-gallery.net/index.php?topic=24295.0 tagging as invalid.
Title: Re: viewlog.php -> template error
Post by: soro on February 15, 2006, 05:23:08 am
That solution prevents the text output of the Admin Menu table, it does not fix the Template error. At least if I've understood your fix correctly, Nibbler. Talking about the one with the additional code in themes.inc.php. I'm still getting:

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

and this time on the entire system, it seems.

Also, please note that this is not about failing to find block 'log_ecards'. I'm probably missing something, but I'm pretty sure I've extensively used search functions, and this seemed to be the thread most immediately relevant.

Sorry if I'm transgressing the etiquettes of this forum. Please disregard if you find it invalid.
Title: Re: viewlog.php -> template error
Post by: Nibbler on February 15, 2006, 11:41:35 am
Disable logging of ecards in config and you will get exactly the same error message as in that thread. The fix does not involve additional code, it involves moving code from one place to another.
Title: Re: viewlog.php -> template error
Post by: soro on February 15, 2006, 05:02:59 pm
Ok, that works. Many thanks for swift reaction, and sorry I didn't understand your fix at first.