Advanced search  

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

Pages: [1]   Go Down

Author Topic: Database error messages error  (Read 3815 times)

0 Members and 1 Guest are viewing this topic.

Nibbler

  • Guest
Database error messages error
« on: January 04, 2005, 04:38:45 am »

If I trigger a db error, all I am getting is a template error :

Code: [Select]
Template error
Failed to find block 'logout'(#(<!-- BEGIN logout -->)(.*?)(<!-- END logout -->)#s) in :

                        <!-- BEGIN register -->
        <a href="{REGISTER_TGT}" title="{REGISTER_TITLE}">{REGISTER_LNK}</a> ::
  <!-- END register -->  <!-- BEGIN faq -->
        <a href="{FAQ_TGT}" title="{FAQ_TITLE}">{FAQ_LNK}</a> ::
  <!-- END faq -->  <!-- BEGIN login -->
        <a href="{LOGIN_TGT}" title="{LOGIN_TITLE}">{LOGIN_LNK}</a>
  <!-- END login -->  

Anyone else experiencing this ?

Hmm, It may be plugin related....
« Last Edit: February 24, 2005, 10:49:06 pm by donnoman »
Logged

Casper

  • VIP
  • Coppermine addict
  • ***
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 5231
Re: Database error messages error
« Reply #1 on: January 05, 2005, 06:25:10 pm »

yes, I'm also getting it, in a bridged install (smf)
Logged
It has been a long time now since I did my little bit here, and have done no coding or any other such stuff since. I'm back to being a noob here

Nibbler

  • Guest
Re: Database error messages error
« Reply #2 on: January 13, 2005, 08:35:15 pm »

Here's my analysis:

cpg_db_error() calls cpg_die() which calls pageheader() which calls theme_main_menu('sys_menu') which attempts to template_extract_block() a whole load of things from $template_sys_menu which are not there as they have already been extracted during the original call to pageheader, causing the error.

If you comment out pageheader($lang_cpg_die[$msg_code]); in cpg_die() then you will get the db error message although the page will of course look all wrong.

Suggestions for a fix welcome :)
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Database error messages error
« Reply #3 on: February 18, 2005, 08:47:50 am »

afaik this has been addressed in a thread in the dev board as well (off limits for "regular" users).
@donnoman: has this issue been fixed?

Joachim
Logged

donnoman

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 1615
  • From donovanbray.com
    • Donovan Bray
Re: Database error messages error
« Reply #4 on: February 24, 2005, 10:48:36 pm »

yes this was addressed with a fix from omnideveloper.

He made it so that both 'sys_menu' and 'sub_menu' are statics, and are returned if you call pageheader a second time.
Logged
Pages: [1]   Go Up
 

Page created in 0.02 seconds with 18 queries.