Coppermine Gallery is Template Error Coppermine Gallery is 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

Coppermine Gallery is Template Error

Started by bibijee, August 21, 2007, 08:41:30 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

bibijee

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.



Joachim Müller

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.

bibijee

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?

Nibbler

You haven't updated properly. The themes are still 1.4.3 versions.

bibijee

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.

bibijee

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.



bibijee

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.


bibijee

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?

Nibbler

Just run the query I posted. If you can't fix it yourself then contact your host. It's not a Coppermine issue.

bibijee