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.
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.
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?
You haven't updated properly. The themes are still 1.4.3 versions.
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.
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.
http://coppermine-gallery.net/tutorial/debug_mode.php
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.
http://forum.coppermine-gallery.net/index.php?topic=10409.0
REPAIR TABLE cpg_pictures
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?
Just run the query I posted. If you can't fix it yourself then contact your host. It's not a Coppermine issue.
I will.
Thanks for your help, Nibbler.