forum.coppermine-gallery.net

Support => cpg1.4.x Support => Older/other versions => cpg1.4 upgrading => Topic started by: duffbuffvick on June 19, 2007, 07:57:34 am

Title: SQL Error / Template Error?
Post by: duffbuffvick 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?
Title: Re: SQL Error / Template Error?
Post by: Sami on June 19, 2007, 08:34:40 am
First of all you should enable debug mode
Title: Re: SQL Error / Template Error?
Post by: duffbuffvick 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.
Title: Re: SQL Error / Template Error?
Post by: Sami on June 19, 2007, 10:13:44 am
here is a tutorial Manually enabling debug_mode
http://coppermine-gallery.net/tutorial/debug_mode.php
Title: Re: SQL Error / Template Error?
Post by: duffbuffvick 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).
Title: Re: SQL Error / Template Error?
Post by: Sami on June 19, 2007, 09:39:54 pm
Check theme-upgrade doc (http://coppermine-gallery.net/demo/cpg14x/docs/theme/index.html) since you have custom theme and you said (by PM) that you've upgraded from very old version
Title: Re: SQL Error / Template Error?
Post by: Joachim Müller on June 27, 2007, 09:46:08 am
...and don't PM devs/supporters in the future, but post publicly! >:(