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

Versioncheck error

Started by lurkalot, January 11, 2012, 09:12:44 PM

Previous topic - Next topic

0 Members and 2 Guests are viewing this topic.

lurkalot

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.

QuoteTemplate 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>
Running SMF 2.1.4  / Tinyportal 3.0.1, bridged with Coppermine 1.6.25, plus cpmfetch 2.0.0

Αndré

Works as expected in my gallery. Please post a link to your gallery and/or try again with the curve theme.

lurkalot

Andre, I'm using the curve theme. ;)  http://cctestsite.info/gallery/  You should still have a admin login, should you need to use it.
Running SMF 2.1.4  / Tinyportal 3.0.1, bridged with Coppermine 1.6.25, plus cpmfetch 2.0.0

Αndré

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:
QuoteTemplate 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.

lurkalot

Thanks Andre, I'll send you a PM. ;)
Running SMF 2.1.4  / Tinyportal 3.0.1, bridged with Coppermine 1.6.25, plus cpmfetch 2.0.0

Αndré

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.

Αndré

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

lurkalot

Quote from: Αndré on January 12, 2012, 12:10:25 PM

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.  ;)

Quote from: Αndré on January 12, 2012, 12:22:03 PM
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. ;)
Running SMF 2.1.4  / Tinyportal 3.0.1, bridged with Coppermine 1.6.25, plus cpmfetch 2.0.0

AntonLargiader

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>
My album:  www dot largiader dot com slash album