viewlog.php -> template error viewlog.php -> template error
 

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

viewlog.php -> template error

Started by slamp, January 08, 2006, 09:03:48 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

slamp

Hello,

if an anonymous user try to access directly viewlog.php it will get an error:
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

Tranz

Strange... my installation behaves correctly. It shows the critical error message:
You don't have permission to access this page.

Joachim Müller

did you upgrade or do a fresh install? If you upgraded, you'll need to update your custom theme as suggested.

Tranz

The thing is that link goes to our demo, and the error occurs with the classic theme...

slamp

Quote from: TranzNDance 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...
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.

soro

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.  :-\


soro

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

QuoteTemplate 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.

Nibbler

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.

soro

Ok, that works. Many thanks for swift reaction, and sorry I didn't understand your fix at first.