forum.coppermine-gallery.net

Support => cpg1.4.x Support => Older/other versions => cpg1.4 miscellaneous => Topic started by: bibijee on August 21, 2007, 08:41:30 am

Title: Coppermine Gallery is Template Error
Post by: bibijee on August 21, 2007, 08:41:30 am
Hi

My coppermine gallery has been running fine for the last year and a half, but today whenever I try to open the web page ( http://photos.raniasplace.com/gallery/ ) it just gives this message:

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

I haven't made any changes to the files. Yesterday I tried to delete a photo from the front end for the first time, it failed to do so and gave the same message as above. But after reloading the page everything was fine again (the photo did not get deleted, though).

My error log is not showing anything.

I have no idea what to do to fix this problem. I would appreciate some help.

Thanks.


Title: Re: Coppermine Gallery is Template Error
Post by: Joachim Müller on August 21, 2007, 08:55:29 am
One (or more) of your files got corrupted. You appear to be running cpg1.4.3, while the most recent version currently is cpg1.4.12, so you're running 9 (!) versions behind. It is absolutely mandatory to upgrade. This may (or may not) solve your issue. If it doesn't, reply after upgrading.
Title: Re: Coppermine Gallery is Template Error
Post by: bibijee on August 21, 2007, 12:45:23 pm
Thanks Gau Gau

I have upgraded to 1.4.12cpg but nothing has changed.

My webhosts has recently upgraded from MySQL 4.1 to MySQL 5. Could that have caused the problem?

Anything else I can try to fix the problem?
Title: Re: Coppermine Gallery is Template Error
Post by: Nibbler on August 21, 2007, 03:56:41 pm
You haven't updated properly. The themes are still 1.4.3 versions.
Title: Re: Coppermine Gallery gives Template Error
Post by: bibijee on August 21, 2007, 08:10:41 pm
Sorry, my dumb ops panel always warns while uploading files that files of the same name will be overwritten, but never does.
I will repeat the process after deleting the files first and then let you how it goes.
Thanks.
Title: Re: Coppermine Gallery gives Template Error
Post by: bibijee on August 21, 2007, 09:10:19 pm
I did all the right things this time and my coppermine should be updated now.  http://photos.raniasplace.com/gallery/

But it still is not working. The error message has changed and now it says:

-------
Critical error
There was an error while processing a database query
-------

What should I do now?
Thanks.

Title: Re: Coppermine Gallery is Template Error
Post by: Nibbler on August 21, 2007, 09:36:29 pm
http://coppermine-gallery.net/tutorial/debug_mode.php
Title: Re: Coppermine Gallery is Template Error
Post by: bibijee on August 21, 2007, 11:30:04 pm
Thanks Nibbler

The debug mode says:

mySQL error: Table './raniasplacec_coppermine2/cpg_pictures' is marked as crashed and should be repaired


How do I repair that? Thanks.
Title: Re: Coppermine Gallery is Template Error
Post by: Nibbler on August 21, 2007, 11:32:29 pm
http://forum.coppermine-gallery.net/index.php?topic=10409.0

Code: [Select]
REPAIR TABLE cpg_pictures
Title: Re: Coppermine Gallery is Template Error
Post by: bibijee on August 22, 2007, 12:10:43 am
After running the query I got:

--------------
Error
SQL query: 

SELECT `cpg_pictures`. *
FROM cpg_pictures
LIMIT 0 , 30

MySQL said: 

#145 - Table './raniasplacec_coppermine2/cpg_pictures' is marked as crashed and should be repaired


--------------

What does that mean?
Title: Re: Coppermine Gallery is Template Error
Post by: Nibbler on August 22, 2007, 12:33:46 am
Just run the query I posted. If you can't fix it yourself then contact your host. It's not a Coppermine issue.
Title: Re: Coppermine Gallery is Template Error
Post by: bibijee on August 22, 2007, 07:47:41 am
I will.

Thanks for your help, Nibbler.