Template error
Hi,
After few months of working the Gallery shows this and nobody can get in. What is wrong? (address www.udmparty.ru/images)
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>
Check to see if this code is in your theme.php file and if not, put it in there. This was copied from the sample theme.php. If you edited this piece of code, you need to make sure that the lines "<!-- BEGIN file_line -->" and "<!-- END file_line -->" are there.
// HTML template used by the cpg_die function
$template_cpg_die = <<<EOT
<tr>
<td class="tableb" align="center">
<font size="3"><b>{MESSAGE}</b></font>
<!-- BEGIN file_line -->
<br />
<br />
{FILE_TXT}{FILE} - {LINE_TXT}{LINE}
<!-- END file_line -->
<!-- BEGIN output_buffer -->
<br />
<br />
<div align="left">
{OUTPUT_BUFFER}
</div>
<!-- END output_buffer -->
<br /><br />
</td>
</tr>
EOT;
Nope, it doesn't work.
I've put this code into theme.php file in themes/classic/. Right?
I didn't change no codes.
Update your gallery.
I did
I launched www.udmparty.ru/images/update.php. Doesn't work yet.
Verify include/config.inc.php contains correct db data and try http://coppermine-gallery.net/tutorial/debug_mode.php
I've been browsing the other photo gallery program sites and they don't have nearly the Dev respond as CPG. You guys are TOP NOTCH!
Cheers!
Quote from: Nibbler on June 04, 2006, 11:38:44 PM
Verify include/config.inc.php contains correct db data and try http://coppermine-gallery.net/tutorial/debug_mode.php
Sorry, I can't do it. It all goes wrong with the instructions. If it says the menu should pop up - it doesn't. Is there any other way of fixing the Gallery?
Just running update.php won't solve issues related to theming. Use a theme that was built for your coppermine version. You appear to be running cpg1.4.3 - do as suggested above and upgrade to the most recent stable, and refer to the theme upgrade guide (http://coppermine-gallery.net/demo/cpg14x/docs/theme/) to find out how to make your cpg1.3.x theme work with cpg1.4.x