Advanced search  

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Pages: [1]   Go Down

Author Topic: SQL Error / Template Error?  (Read 4781 times)

0 Members and 1 Guest are viewing this topic.

duffbuffvick

  • Coppermine newbie
  • Offline Offline
  • Posts: 7
SQL Error / Template Error?
« on: June 19, 2007, 07:57:34 am »

I'm having problems with my Coppermine gallery 1.4.x. No files were altered, the database username/hostname/password is all in place, and nothing was even touched (except images added, which were working fine too).

All of a sudden, I get various errors, sometimes different when I go on to the URL. It either gives:

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

        <tr>
                <td class="tableb" align="center">
                        <font size="3"><b>{MESSAGE}</b></font>


                        <br /><br />
                </td>
        </tr>


Or a Critical Database error. I know there is a sticky for the block error, but it isn't helping since I can't find BLOCK_ID in the theme and template I am currently using. I don't know if it is a server problem because other galleries on the same server seem to be working fine. I downloaded the template/theme and then re-uploaded it then it gave me a Critical Database error.

Here is the URL if anyone wants to see the problem live: http://hduffworld.com/gallery

Could someone please explain to me how to fix this problem?
Logged

Sami

  • VIP
  • Coppermine addict
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 3686
  • BMossavari
    • My Project
Re: SQL Error / Template Error?
« Reply #1 on: June 19, 2007, 08:34:40 am »

First of all you should enable debug mode
Logged
‍I don't answer to PM with support question
Please post your issue to related board

duffbuffvick

  • Coppermine newbie
  • Offline Offline
  • Posts: 7
Re: SQL Error / Template Error?
« Reply #2 on: June 19, 2007, 09:28:26 am »

^ I can't do that since, I can't even view the gallery. I go to the URL and just get the template error. I don't see anything else. I'm sorry for being a total newbie, but is there a way to enable debug mode without logging in as an admin then? Because, I can't even view the gallery.
Logged

Sami

  • VIP
  • Coppermine addict
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 3686
  • BMossavari
    • My Project
Re: SQL Error / Template Error?
« Reply #3 on: June 19, 2007, 10:13:44 am »

here is a tutorial Manually enabling debug_mode
http://coppermine-gallery.net/tutorial/debug_mode.php
Logged
‍I don't answer to PM with support question
Please post your issue to related board

duffbuffvick

  • Coppermine newbie
  • Offline Offline
  • Posts: 7
Re: SQL Error / Template Error?
« Reply #4 on: June 19, 2007, 08:18:11 pm »

Okay, so I repaired all the tables in the database and now the gallery is working fine, except when I log in as an administrator, it still gives me the same "template error" (though I can't find anything wrong with the template).
Logged

Sami

  • VIP
  • Coppermine addict
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 3686
  • BMossavari
    • My Project
Re: SQL Error / Template Error?
« Reply #5 on: June 19, 2007, 09:39:54 pm »

Check theme-upgrade doc since you have custom theme and you said (by PM) that you've upgraded from very old version
Logged
‍I don't answer to PM with support question
Please post your issue to related board

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: SQL Error / Template Error?
« Reply #6 on: June 27, 2007, 09:46:08 am »

...and don't PM devs/supporters in the future, but post publicly! >:(
Logged
Pages: [1]   Go Up
 

Page created in 0.022 seconds with 20 queries.