Template Error Template Error
 

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Main Menu

Template Error

Started by opulence, August 29, 2006, 01:04:06 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

opulence

I receive this error just as of this morning when I try to access my CPG website www.weloveteengirls.com (not work safe I guess)

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 tried reading other threads on this issue (as that is how I usually solve my problems) but I don't see any responses in these threads that pertain to my situation.  The current theme I am using is a modified version of the 'pink' theme.  I tried the suggestion to login under a different theme, http://www.weloveteengirls.com/login.php?theme=classic but that didn't work.

I am using the latest version of CPG and it is modded with the Stramm Pack as well as bridged with phpbb2.  I tried re-uploading the cpg files, didn't help.

Sami

check this:
http://www.weloveteengirls.com/index.php?theme=classic
I've got : There was an error while processing a database query
so you need manualy enable debug to see the actual mysql error
‍I don't answer to PM with support question
Please post your issue to related board

opulence

Now that I'm in debug mode I get:
Template error
Failed to find block 'output_buffer'(#(<!-- BEGIN output_buffer -->)(.*?)(<!-- END output_buffer -->)#s) in :

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

                        <br /><br />
                </td>
        </tr>


Sami

‍I don't answer to PM with support question
Please post your issue to related board

opulence

Okay great, I got it working again after repairing that table, this is what came up in debug mode - I also took the site off debug mode, but I can't seem to change the theme back to mine.


USER:
------------------
Array
(
    [ID] => cd60734369c6fdc7543812b7e83dfefb
    [am] => 1
    [lang] => english
    [liv] => Array
        (
        )

    [theme] => classic
)

==========================
USER DATA:
------------------
Array
(
    [user_id] => 2
    [user_name] => admin
    [groups] => Array
        (
            [0] => 1
        )

    [disk_max] => 0
    [disk_min] => 0
    [can_rate_pictures] => 1
    [can_send_ecards] => 1
    [ufc_max] => 3
    [ufc_min] => 3
    [custom_user_upload] => 0
    [num_file_upload] => 10
    [num_URI_upload] => 10
    [can_post_comments] => 1
    [can_upload_pictures] => 1
    [can_create_albums] => 1
    [has_admin_access] => 1
    [pub_upl_need_approval] => 0
    [priv_upl_need_approval] => 0
    [group_name] => Administrators
    [upload_form_config] => 3
    [group_quota] => 0
    [can_see_all_albums] => 1
    [group_id] => 1
)

==========================
Queries:
------------------
Array
(
    [0] => SELECT extension, mime, content, player FROM cpg143_filetypes; (0s)
    [1] => select * from cpg143_plugins order by priority asc; (0s)
    [2] => SELECT * FROM cpg143_bridge (0s)
    [3] => SELECT u.user_id, u.user_password, u.user_level FROM `wltg_phpbb2`.phpbb_sessions_keys AS s
INNER JOIN `wltg_phpbb2`.phpbb_users AS u ON s.user_id = u.user_id WHERE u.user_id = '2' AND u.user_active = 1 AND s.key_id = MD5('94642068844f25f821cd841.45136997') (0s)
    [4] => SELECT u.user_id AS id, u.username AS username, u.user_password AS password, u.user_avatar AS avatar_url, u.user_notify_pm AS notify, u.user_notify AS auto_subscribe_post, u.user_notify AS auto_subscribe_comment, ug.group_id AS group_id FROM `wltg_phpbb2`.phpbb_users AS u, `wltg_phpbb2`.phpbb_user_group AS ug WHERE u.user_id=ug.user_id AND u.user_id='2' (0s)
    [5] => SELECT MAX(group_quota) as disk_max, MIN(group_quota) as disk_min, MAX(can_rate_pictures) as can_rate_pictures, MAX(can_send_ecards) as can_send_ecards, MAX(upload_form_config) as ufc_max, MIN(upload_form_config) as ufc_min, MAX(custom_user_upload) as custom_user_upload, MAX(num_file_upload) as num_file_upload, MAX(num_URI_upload) as num_URI_upload, MAX(can_post_comments) as can_post_comments, MAX(can_upload_pictures) as can_upload_pictures, MAX(can_create_albums) as can_create_albums, MAX(has_admin_access) as has_admin_access, MIN(pub_upl_need_approval) as pub_upl_need_approval, MIN( priv_upl_need_approval) as  priv_upl_need_approval FROM cpg143_usergroups WHERE group_id in (1) (0s)
    [6] => SELECT group_name FROM  cpg143_usergroups WHERE group_id= 1 (0s)
    [7] => SELECT user_favpics FROM cpg143_favpics WHERE user_id = 2 (0.008s)
    [8] => SELECT count(*) FROM  cpg143_pms WHERE owner=2 (0.002s)
    [9] => SELECT count(*) FROM  cpg143_pms WHERE owner=2 AND showed='0' (0s)
    [10] => SELECT count(*) FROM  cpg143_buddy WHERE user_id=2 (0s)
    [11] => SELECT count(*) FROM  cpg143_buddy_req WHERE buddy_to=2 (0s)
    [12] => DELETE FROM cpg143_banned WHERE expiry < '2006-08-30 19:08:49' (0s)
    [13] => SELECT * FROM cpg143_banned WHERE (ip_addr='69.195.21.165' OR ip_addr='69.195.21.165' OR user_id=2) AND brute_force=0 (0s)
    [14] => SELECT cid, name, description, thumb FROM cpg143_categories WHERE parent = ''  ORDER BY pos (0.019s)
    [15] => SELECT aid FROM cpg143_albums WHERE category = 2 (0s)
    [16] => SELECT count(*) FROM cpg143_pictures as p, cpg143_albums as a WHERE p.aid = a.aid AND category = 2 (0s)
    [17] => SELECT cid, name, description, thumb FROM cpg143_categories WHERE parent = '2'  ORDER BY pos (0.001s)
    [18] => SELECT aid FROM cpg143_albums as a WHERE category>=10000 (0s)
    [19] => SELECT count(*) FROM cpg143_pictures as p, cpg143_albums as a WHERE p.aid = a.aid AND category >= 10000 (0.001s)
    [20] => SELECT aid FROM cpg143_albums as a WHERE category = '0' (0s)
    [21] => SELECT count(*) FROM cpg143_albums as a WHERE 1 (0s)
    [22] => SELECT count(*) FROM cpg143_categories WHERE 1 (0s)
    [23] => SELECT count(*) FROM cpg143_pictures as p LEFT JOIN cpg143_albums as a ON a.aid=p.aid WHERE 1 (0.008s)
    [24] => SELECT sum(hits) FROM cpg143_pictures as p LEFT JOIN cpg143_albums as a ON p.aid=a.aid WHERE 1 (0.027s)
    [25] => SELECT count(*) FROM cpg143_comments as c LEFT JOIN cpg143_pictures as p ON c.pid=p.pid LEFT JOIN cpg143_albums as a ON a.aid=p.aid WHERE 1 (0.052s)
    [26] => SELECT COUNT(*) FROM cpg143_pictures WHERE approved = 'NO' (0.038s)
    [27] => SELECT count(*) FROM cpg143_albums as a WHERE category = '0' (0s)
    [28] => SELECT a.aid, a.title, a.description, category, visibility, filepath, filename, url_prefix, pwidth, pheight FROM cpg143_albums as a LEFT JOIN cpg143_pictures as p ON a.thumb=p.pid WHERE category=0 ORDER BY a.pos LIMIT 0,2 (0.001s)
    [29] => SELECT a.aid, count( p.pid )  AS pic_count, max( p.pid )  AS last_pid, max( p.ctime )  AS last_upload, a.keyword FROM cpg143_albums AS a  LEFT JOIN cpg143_pictures AS p ON a.aid = p.aid AND p.approved =  'YES' WHERE a.aid IN (1, 7)GROUP BY a.aid (0.044s)
    [30] => SELECT COUNT(*) from cpg143_pictures WHERE approved = 'YES'  (0.006s)
    [31] => SELECT * FROM cpg143_pictures WHERE approved = 'YES'  ORDER BY RAND() LIMIT 8 (0.108s)
    [32] => SELECT COUNT(*) from cpg143_pictures WHERE approved = 'YES'  (0.002s)
    [33] => SELECT * FROM cpg143_pictures WHERE approved = 'YES'  ORDER BY pid DESC  LIMIT 0 ,8 (0.001s)
)

==========================
GET :
------------------
Array
(
)

==========================
POST :
------------------
Array
(
)

==========================
VERSION INFO :
------------------
PHP version: 4.4.2-1.1 - OK
------------------
mySQL version: 4.1.15-Debian_1-log
------------------
Coppermine version: 1.4.4(stable)
==========================
Module: GD
------------------
GD Version: 2.0 or higher
FreeType Support: 1
FreeType Linkage: with freetype
T1Lib Support: 1
GIF Read Support: 1
GIF Create Support: 1
JPG Support: 1
PNG Support: 1
WBMP Support: 1
XBM Support:
JIS-mapped Japanese Font Support:

==========================
Module: mysql
------------------
MySQL Supportenabled
Active Persistent Links 4
Active Links 5
Client API version 5.0.22
MYSQL_MODULE_TYPE external
MYSQL_SOCKET /var/run/mysqld/mysqld.sock
MYSQL_INCLUDE -I/usr/include/mysql
MYSQL_LIBS -L/usr/lib -lmysqlclient 
==========================
Module: zlib
------------------
ZLib Support enabled
Compiled Version 1.2.3
Linked Version 1.2.3
==========================
Server restrictions (safe mode)?
------------------
Directive | Local Value | Master Value
safe_mode | Off | Off
safe_mode_exec_dir | no value | no value
safe_mode_gid | Off | Off
safe_mode_include_dir | no value | no value
safe_mode_exec_dir | no value | no value
sql.safe_mode | Off | Off
disable_functions | no value | no value
file_uploads | On | On
include_path | .:/usr/share/php:/usr/share/pear | .:/usr/share/php:/usr/share/pear
open_basedir | no value | no value
==========================
email
------------------
Directive | Local Value | Master Value
sendmail_from | no value | no value
sendmail_path | /usr/sbin/sendmail -t -i  | /usr/sbin/sendmail -t -i
SMTP | localhost | localhost
smtp_port | 25 | 25
==========================
Size and Time
------------------
Directive | Local Value | Master Value
max_execution_time | 30 | 30
max_input_time | 60 | 60
upload_max_filesize | 2M | 2M
post_max_size | 8M | 8M
==========================
Page generated in 0.629 seconds - 34 queries in 0.318 seconds - Album set : ; Meta set: ;



Sami

turn off debug mode and go for documentation to upgrading your theme
http://coppermine-gallery.net/demo/cpg14x/docs/theme/index.html
‍I don't answer to PM with support question
Please post your issue to related board

Ayla

#6
Hello everybody.

I get the same error. Yesterday everything was fine and today I've found this error. I didn't upgrade or change anything. After getting this error I've updated to 1.4.9 from 1.4.4.
Oh, the template I was using was water drop.

When I turned on the debug mode manually (in MyAdmin) that's what I get

Template error
Failed to find block 'output_buffer'(#(<!-- BEGIN output_buffer -->)(.*?)(<!-- END output_buffer -->)#s) in :

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

                        <br /><br />
                </td>
        </tr>


But if I turn off the debug mode and I go to admin.php or any other file or folder I get this:

Template error
Failed to find block 'log_ecards'(#(<!-- BEGIN log_ecards -->)(.*?)(<!-- END log_ecards -->)#s) in :

                <div align="center">
                <table cellpadding="0" cellspacing="1">
                        <tr>
<!-- BEGIN admin_approval -->
                                <td class="admin_menu" id="admin_menu_anim"><a href="editpics.php?mode=upload_approval" title="{UPL_APP_TITLE}">{UPL_APP_LNK}</a></td>
<!-- END admin_approval -->
                                <td class="admin_menu"><a href="admin.php" title="{ADMIN_TITLE}">{ADMIN_LNK}</a></td>
                                <td class="admin_menu"><a href="catmgr.php" title="{CATEGORIES_TITLE}">{CATEGORIES_LNK}</a></td>
                                <td class="admin_menu"><a href="albmgr.php{CATL}" title="{ALBUMS_TITLE}">{ALBUMS_LNK}</a></td>
                                <td class="admin_menu"><a href="groupmgr.php" title="{GROUPS_TITLE}">{GROUPS_LNK}</a></td>
                                <td class="admin_menu"><a href="usermgr.php" title="{USERS_TITLE}">{USERS_LNK}</a></td>
                                <td class="admin_menu"><a href="banning.php" title="{BAN_TITLE}">{BAN_LNK}</a></td>
                                <td class="admin_menu"><a href="reviewcom.php" title="{COMMENTS_TITLE}">{COMMENTS_LNK}</a></td>

                                <td class="admin_menu"><a href="picmgr.php" title="{PICTURES_TITLE}">{PICTURES_LNK}</a></td>
                                <td class="admin_menu"><a href="searchnew.php" title="{SEARCHNEW_TITLE}">{SEARCHNEW_LNK}</a></td>
                                <td class="admin_menu"><a href="util.php" title="{UTIL_TITLE}">{UTIL_LNK}</a></td>
                                <td class="admin_menu"><a href="profile.php?op=edit_profile" title="{MY_PROF_TITLE}">{MY_PROF_LNK}</a></td>
<!-- BEGIN documentation -->
                                <td class="admin_menu"><a href="{DOCUMENTATION_HREF}" title="{DOCUMENTATION_TITLE}" target="cpg_documentation">{DOCUMENTATION_LNK}</a></td>
<!-- END documentation -->
                        </tr>
                </table>
                </div>



I've done the search also for this error but it doesn't aplies to me cause mine is in the whole gallery, not only in one category. I am completely lost. I got loads of pictures and I am terrified of losing them. What can I do?
The link to my gallery is: www.galeria-keanumania.com/galeria

Thanks in advance for your help

Ayla

Ok, I finally fixed it by repairing the database but all I can see it's the classic template, it doesn't change when I choose another one in the config panel. Any help, please? Thanks a lot.

Joachim Müller


Ayla

#9
Thanks once more, Gau Gau, that was easy  :)