forum.coppermine-gallery.net
Support => cpg1.5.x Support => cpg1.5 miscellaneous => Topic started by: lurkalot on January 11, 2012, 09:12:44 pm
-
Upgraded two of my galleries to 1.5.18, and on both when viewing the versioncheck it gives me the following error, unless I tick the "Do not connect to the online repository" box.
Template error
Failed to find block 'file_line' (#<!-- BEGIN file_line -->(.*?)<!-- END file_line -->#s) in :
<div class="{CSS_CLASS}">
<h2>{HEADER_TXT}</h2>
<span class="cpg_user_message">{MESSAGE}</span>
<br /><br />
</div>
-
Works as expected in my gallery. Please post a link to your gallery and/or try again with the curve theme.
-
Andre, I'm using the curve theme. ;) http://cctestsite.info/gallery/ You should still have a admin login, should you need to use it.
-
The block "file_line" is a part of that variable:
/******************************************************************************
** Section <<<$template_cpg_die>>> - START
******************************************************************************/
// HTML template used by the cpg_die function
$template_cpg_die = <<<EOT
<div class="{CSS_CLASS}">
<h2>{HEADER_TXT}</h2>
<span class="cpg_user_message">{MESSAGE}</span>
<!-- 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 />
</div>
EOT;
/******************************************************************************
** Section <<<$template_cpg_die>>> - END
******************************************************************************/
As you can see it's a part of the cpg_die function. Unfortunately I wasn't able to find it in that context. Curiously enough, cpg_die works as expected at other places.
When enabling debug mode for everyone we see a different error message:
Template error
Failed to find block 'output_buffer' (#<!-- BEGIN output_buffer -->(.*?)<!-- END output_buffer -->#s) in :
<div class="{CSS_CLASS}">
<h2>{HEADER_TXT}</h2>
<span class="cpg_user_message">{MESSAGE}</span>
<!-- BEGIN file_line -->
<br />
<br />
{FILE_TXT}{FILE} - {LINE_TXT}{LINE}
<!-- END file_line -->
<br /><br />
</div>
I'd need FTP access to your gallery to debug that error message as I have absolutely no clue what's happening there.
-
Thanks Andre, I'll send you a PM. ;)
-
Small update.
There's no error before the following line in versioncheck.php:
pageheader($lang_versioncheck_php['title']);
Function pageheader generates no error if you comment out
'{MESSAGE_BLOCK}' => theme_display_message_block(),
and let it die before
adminmessages();
If you comment out/remove adminmessages() or abort pageheader with a return before that line you get the error message again. Maybe I miss the forest for the trees, but that makes absolutely no sense.
If I comment out everything from
$template_vars
in the pageheader function, it doesn't return an error, but another line in versioncheck.php does ::)
It took me one and a half hour to get that result. As I think it's an individual issue I don't want to spend more time on that issue until someone else reports the same behavior. As I said, it works as expected in my gallery. Maybe someone else can confirm that, too.
-
The only benefit to connect to the online repository is that you'll be noticed of a new major version. If you've installed the latest version the source files are identical and you're fine to check "Do not connect to the online repository".
-
As I think it's an individual issue I don't want to spend more time on that issue until someone else reports the same behavior. As I said, it works as expected in my gallery. Maybe someone else can confirm that, too.
Thanks for looking into this issue. I agree it's only me having the problem so far, but it's happened on two different sites for me. ;)
The only benefit to connect to the online repository is that you'll be noticed of a new major version. If you've installed the latest version the source files are identical and you're fine to check "Do not connect to the online repository".
Absolutely, I'm fine with it as is, just wanted to point out my findings after upgrading. Thanks again. ;)
-
I found a similar result when I just used versioncheck. This was with "Show warnings only" and "Don't check for modified files". It subsequently worked properly with no filters, and then worked properly with the same filters. I happened to still have this in my clipboard when I found this thread...
Template error
Failed to find block 'output_buffer' (#<!-- BEGIN output_buffer -->(.*?)<!-- END output_buffer -->#s) in :
<div class="{CSS_CLASS}">
<h2>{HEADER_TXT}</h2>
<span class="cpg_user_message">{MESSAGE}</span>
<!-- BEGIN file_line -->
<br />
<br />
{FILE_TXT}{FILE} - {LINE_TXT}{LINE}
<!-- END file_line -->
<br /><br />
</div>