Advanced search  

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]

Pages: [1]   Go Down

Author Topic: Coppermine Error: Template Error (using 1.5.22)  (Read 6632 times)

0 Members and 1 Guest are viewing this topic.

N2GetherNow

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 27
Coppermine Error: Template Error (using 1.5.22)
« on: August 26, 2013, 09:53:25 am »

Same problem here. It was working fine, than i "uploaded" pictures to some subfolder of albums (for batch adding) and than hit batch add and got this:
Quote
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>
Quote

Already tried to add the code to theme.php, to download correct themes.inc, also tried all themes using ?theme=theme_name.
Logged

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15764
Re: Coppermine Error: Template Error (using 1.5.22)
« Reply #1 on: August 26, 2013, 10:52:13 am »

Unfortunately Manutjee hasn't told us how he fixed the issue. Unfortunately you haven't told us where you get that error message, nor you posted a link to your gallery. Please start a new thread with as much details as possible. Feel free to refer to this thread, maybe it helps at a later stage.
Logged

N2GetherNow

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 27
Re: Coppermine Error: Template Error (using 1.5.22)
« Reply #2 on: August 26, 2013, 12:00:37 pm »

Unfortunately Manutjee hasn't told us how he fixed the issue. Unfortunately you haven't told us where you get that error message, nor you posted a link to your gallery. Please start a new thread with as much details as possible. Feel free to refer to this thread, maybe it helps at a later stage.

http://soadfan.eu/Gallery/

I got this error when tried to load login.php, and then every where i tried index, admin, upload & etc, same time http://soadfan.eu/Trips/ is working fine
Logged

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15764
Re: Coppermine Error: Template Error (using 1.5.22)
« Reply #3 on: August 26, 2013, 12:06:58 pm »

As you haven't started a new thread as I told you, I splitted your posts from http://forum.coppermine-gallery.net/index.php/topic,76169.0.html

However, when I try to visit login.php, I don't get this error message.
Logged

N2GetherNow

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 27
Re: Re: Coppermine Error: Template Error (using 1.5.22)
« Reply #4 on: August 26, 2013, 12:51:03 pm »

As you haven't started a new thread as I told you, I splitted your posts from http://forum.coppermine-gallery.net/index.php/topic,76169.0.html

However, when I try to visit login.php, I don't get this error message.

After i read your post tried to open via ie and android device it is fine, but when tried to login it returns:
Critical error
An error occurred while processing a database query

Logged

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15764
Re: Coppermine Error: Template Error (using 1.5.22)
« Reply #5 on: August 26, 2013, 01:34:59 pm »

That's a different issue than your initial issue. However, please enable debug mode and post the extended error message.
Logged

N2GetherNow

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 27
Re: Coppermine Error: Template Error (using 1.5.22)
« Reply #6 on: August 26, 2013, 03:25:24 pm »

Okay, when i load index.php with ff:
Quote
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>
when load with ie it actually works, but when i try to log in returns:
Quote
While executing query 'INSERT INTO cpg14x_temp_messages  SET  message_id = 'b286146046d2ead2481c3c07ba75e198',  user_id = '0',  time   = '1377523167',  message = '%D0%94%D0%BE%D0%B1%D1%80%D0%B5+%D0%B4%D0%BE%D1%88%D0%BB%D0%B8+Pesho+...'' in include\functions.inc.php on line 4865

mySQL error: Can't open file: 'cpg14x_temp_messages.MYD'. (errno: 145)

File: *:\gallery\include\functions.inc.php - Line: 272 


Quote
USER:
------------------
Array
(
    [ID] => 01a8e52e988b71a0444cb2e626764bd9
    [am] => 1
    [lang] => bulgarian
)

==========================
USER DATA:
------------------
Array
(
    [user_id] => 1
    [user_name] => Pesho
    [user_password] => ***
    [groups] => Array
        (
           
  • => 1

        )

    [disk_max] => 0
    [disk_min] => 0
    [can_rate_pictures] => 1
    [can_send_ecards] => 1
    [can_post_comments] => 1
    [can_upload_pictures] => 1
    [can_create_albums] => 1
    [has_admin_access] => 1
    [access_level] => 3
    [pub_upl_need_approval] => 0
    [priv_upl_need_approval] => 0
    [group_name] => Administrators
    [can_create_public_albums] => 0
    [group_quota] => 0
    [can_see_all_albums] => 1
    [group_id] => 1
)

==========================
Queries:
------------------
Array
(
   
  • => SELECT name, value FROM cpg14x_config [include\init.inc.php:179] (1 ms)
  • [1] => SELECT * FROM cpg14x_plugins ORDER BY priority
[include\plugin_api.inc.php:52] (0 ms)
    [2] => SELECT user_id, time FROM `cpg1422`.cpg14x_sessions WHERE session_id = '849d3a0ef2cb9458b780b2266b0b3097' [bridge\coppermine.inc.php:267] (0 ms)
    [3] => SELECT user_id, user_password FROM `cpg1422`.cpg14x_users WHERE user_id = 0 [bridge\coppermine.inc.php:279] (0 ms)
    [4] => 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(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, MAX(access_level) AS access_level, MIN(pub_upl_need_approval) AS pub_upl_need_approval, MIN( priv_upl_need_approval) AS  priv_upl_need_approval FROM cpg14x_usergroups WHERE group_id in (3) [bridge\udb_base.inc.php:323] (1 ms)
    [5] => SELECT group_name FROM cpg14x_usergroups WHERE group_id= 3 [bridge\udb_base.inc.php:327] (0 ms)
    [6] => SELECT COUNT(*) FROM cpg14x_categorymap WHERE group_id in (3) [bridge\udb_base.inc.php:340] (0 ms)
    [7] => SELECT aid FROM cpg14x_albums WHERE moderator_group IN (3) [include\init.inc.php:272] (0 ms)
    [8] => SELECT lang_id FROM cpg14x_languages WHERE enabled='YES' [include\init.inc.php:330] (1 ms)
    [9] => SHOW TABLES LIKE 'cpg14x_languages' [include\functions.inc.php:4134] (3 ms)
    [10] => SELECT * FROM cpg14x_languages [include\functions.inc.php:4141] (1 ms)
    [11] => DELETE FROM cpg14x_banned WHERE expiry < '2013-08-26 16:19:27' [include\init.inc.php:444] (0 ms)
    [12] => SELECT null FROM cpg14x_banned WHERE ('78.90.84.196' LIKE ip_addr ) AND brute_force=0 LIMIT 1 [include\init.inc.php:460] (0 ms)
    [13] => SELECT aid FROM cpg14x_albums WHERE (1  AND visibility != 0 AND visibility != 10000 AND visibility NOT IN (3)) [include\functions.inc.php:978] (0 ms)
    [14] => SELECT user_id, user_name, user_password FROM `cpg1422`.cpg14x_users WHERE user_name = 'Pesho' AND BINARY user_password = '***' AND user_active = 'YES' [bridge\coppermine.inc.php:134] (0 ms)
    [15] => UPDATE `cpg1422`.cpg14x_users SET user_lastvisit = NOW() WHERE user_name = 'Pesho' AND BINARY user_password = '***' AND user_active = 'YES' [bridge\coppermine.inc.php:154] (0 ms)
    [16] => UPDATE `cpg1422`.cpg14x_sessions SET user_id = 1 WHERE session_id = '849d3a0ef2cb9458b780b2266b0b3097' [bridge\coppermine.inc.php:179] (0 ms)
    [17] => UPDATE cpg14x_users SET user_language = 'bulgarian' WHERE user_id = 1 [login.php:50] (0 ms)
    [18] => SELECT user_id, time FROM `cpg1422`.cpg14x_sessions WHERE session_id = '849d3a0ef2cb9458b780b2266b0b3097' [bridge\coppermine.inc.php:267] (0 ms)
    [19] => SELECT user_id, user_password FROM `cpg1422`.cpg14x_users WHERE user_id = 1 [bridge\coppermine.inc.php:279] (0 ms)
    [20] => SELECT u.user_id AS id, u.user_name AS username, user_password AS password, u.user_group AS group_id FROM `cpg1422`.cpg14x_users AS u LEFT JOIN `cpg1422`.cpg14x_usergroups AS g ON u.user_group=g.group_id WHERE u.user_id='1' [bridge\udb_base.inc.php:70] (0 ms)
    [21] => SELECT user_group_list FROM `cpg1422`.cpg14x_users AS u WHERE user_id='1' AND user_group_list <> '' [bridge\coppermine.inc.php:205] (0 ms)
    [22] => 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(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, MAX(access_level) AS access_level, MIN(pub_upl_need_approval) AS pub_upl_need_approval, MIN( priv_upl_need_approval) AS  priv_upl_need_approval FROM cpg14x_usergroups WHERE group_id in (1) [bridge\udb_base.inc.php:323] (1 ms)
    [23] => SELECT group_name FROM cpg14x_usergroups WHERE group_id= 1 [bridge\udb_base.inc.php:327] (0 ms)
    [24] => SELECT COUNT(*) FROM cpg14x_categorymap WHERE group_id in (1) [bridge\udb_base.inc.php:340] (0 ms)
    [25] => SELECT COUNT(*) FROM cpg14x_pictures WHERE approved = 'NO' [include\functions.inc.php:2428] (0 ms)
    [26] => INSERT INTO cpg14x_temp_messages  SET  message_id = 'b286146046d2ead2481c3c07ba75e198',  user_id = '0',  time   = '1377523167',  message = '%D0%94%D0%BE%D0%B1%D1%80%D0%B5+%D0%B4%D0%BE%D1%88%D0%BB%D0%B8+Pesho+...' [include\functions.inc.php:4865] (1 ms)
)

==========================
GET :
------------------
Array
(
    [referer] =>
)

==========================
POST :
------------------
Array
(
    [username] => Pesho
    [password] => ouigofren
    [submitted] => OK
)

==========================
COOKIE :
------------------
Array
(
    [cpg15x_data] => YTo0OntzOjI6IklEIjtzOjMyOiIyNzc5OTAwODNkZGRhNmZlMzZmMTgxZDhiZTVkMDY2ZiI7czoyOiJhbSI7aToxO3M6NToibGl2X2EiO2E6Mjp7aTowO2k6MTtpOjE7aTo1O31zOjM6ImxpdiI7YToxOntpOjA7czozOiIxODAiO319
    [b5473e9642b12080eb16fa279df76783] => e651a30261d9ab03a17f7db091d2764a
    [coppermine_data] => YTozOntzOjI6IklEIjtzOjMyOiIwMWE4ZTUyZTk4OGI3MWEwNDQ0Y2IyZTYyNjc2NGJkOSI7czoyOiJhbSI7aToxO3M6NDoibGFuZyI7czo5OiJidWxnYXJpYW4iO30=
    [e56ef380c354d68265eeb517fe5a5647] => ffc08c4664985f69baeea0af5ee56988
)

==========================
Logged

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15764
Re: Coppermine Error: Template Error (using 1.5.22)
« Reply #7 on: August 26, 2013, 03:34:22 pm »

Please don't post the debug output unless asked to do.

Regarding the MySQL error message:
MySQL error code 145 = Table was marked as crashed and should be repaired

As you've now reported three different error messages, please fix the MySQL issue first. Then, clear your cookies in Firefox and IE and try again. They should at least generate the same error message. If so, please post a test user account (no admin account!) so we can test ourselves.
Logged

N2GetherNow

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 27
Re: Re: Coppermine Error: Template Error (using 1.5.22)
« Reply #8 on: August 26, 2013, 03:50:13 pm »

Please don't post the debug output unless asked to do.

Regarding the MySQL error message:
As you've now reported three different error messages, please fix the MySQL issue first. Then, clear your cookies in Firefox and IE and try again. They should at least generate the same error message. If so, please post a test user account (no admin account!) so we can test ourselves.

I was trying but don't have permission to edit my post. After repairing all tables gallery stopped loading even on ie or android. So i think i'll reinstall when have enough time it and will try to import database for albums and pictures...

p.s. please feel free to cut xtra debug information
Logged
Pages: [1]   Go Up
 

Page created in 0.044 seconds with 20 queries.