Help with problem with theme and error caused by keyword based album Help with problem with theme and error caused by keyword based album
 

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

Help with problem with theme and error caused by keyword based album

Started by tenacjed, December 05, 2013, 01:33:27 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

tenacjed

Website: www.waggonerphotography.com/gallery2

I receive the below error (debug on) when clicking on a category that contains an album that uses "Album keyword".  Example would be the Cosmos category at the top from the gallery listing, which contains albums based on keyword.  Example of category that works and does not use album keyword would be Trips, and all sub categories.


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 have verified that this only happens with my custom theme that is based on the dark velvet theme.  I really do not know php/html and so on, but I followed the guide the best that I could.  Attached is the my theme, any help would be much appreciated!!!
What a long... strange trip it's been!!!

tenacjed

I am still troubleshooting and I came across this post: http://forum.coppermine-gallery.net/index.php/topic,67645.msg335718.html#msg335718

I looked at the changes that Jeff Bailey did and found that he added the following code to the end of theme.php file:


/******************************************************************************
** 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
******************************************************************************/



I attempted this on mine, but unfortunately I am still having the problem with my theme.  Unfortunately I cannot find any other posts that are similar to my issue.  I may have to start over on my theme   :(  .  For now I will continue to update the META data on my pictures in hopes that someone may be able to help!
What a long... strange trip it's been!!!

Niecher


tenacjed

Niecher,

Thank you very much, that worked!

Now I just need to figure out what was changed, trying to learn as I go!

Thank you again!

John
What a long... strange trip it's been!!!