Advanced search  

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

Pages: [1]   Go Down

Author Topic: Template error  (Read 3585 times)

0 Members and 1 Guest are viewing this topic.

bino

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 27
Template error
« on: November 04, 2007, 09:12:10 pm »

After a few years of using coppermine without problem, I found myself looking at an error today:

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>



I was quite surprised to see this error because there was nothing changed to the configuration or anything. Perhaps it has our host switching server, but besides that ...

After reading on the forums I upgraded from 1.4.3 to 1.4.13. I uploaded the new files and updated the database, however, I still recieve the same error.
I even uploaded a new 1.4.13 theme and changed theme through phpMyAdmin but that didn´t work either.

When I´m not logged in as admin I recieve the following error:
While executing query "SELECT count(*) FROM foto_pictures as p, foto_albums as a WHERE p.aid = a.aid AND approved='YES' AND category >= 10000" on 0

mySQL error:

File: D:\sites\feesteuh.be\httpdocs\feesteuh\fotos\include\functions.inc.php - Line: 249

As you can see, the error is not displayed.

Debug mode gave me the following:
USER:
------------------
Array
(
    [ID] => c4ae12ebc60d1897a8d81973fc0c4fb3
    [am] => 1
)

==========================
USER DATA:
------------------
Array
(
    [user_id] => 0
    [user_name] => Guest
    [groups] => Array
        (
           
  • => 3

        )

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

==========================
Queries:
------------------
Array
(
   
  • => SELECT extension, mime, content, player FROM foto_filetypes; (0s)
  • [1] => select * from foto_plugins order by priority asc; (0s)
        [2] => SELECT * FROM foto_bridge (0s)
        [3] => SELECT u.user_id AS user_id, u.user_password AS password, u.user_level FROM `scoutshemiksem02`.phpbb_users AS u, `scoutshemiksem02`.phpbb_sessions AS s WHERE u.user_id=s.session_user_id AND s.session_id = 'eb1cbf312b5e1f5035a66ad085f71728' AND u.user_id > 0 (0s)
        [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(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 foto_usergroups WHERE group_id in (3) (0s)
        [5] => SELECT group_name FROM  foto_usergroups WHERE group_id= 3 (0s)
        [6] => DELETE FROM foto_banned WHERE expiry < '2007-11-04 20:10:30' (0.001s)
        [7] => SELECT * FROM foto_banned WHERE (ip_addr='80.200.12.252' OR ip_addr='80.200.12.252' OR user_id=0) AND brute_force=0 (0s)
        [8] => SELECT aid FROM foto_albums (0.001s)
        [9] => SELECT cid, name, description, thumb FROM foto_categories WHERE parent = ''  ORDER BY pos (0s)
        [10] => SELECT aid FROM foto_albums as a WHERE category>=10000 (0s)
        [11] => SELECT count(*) FROM foto_pictures as p, foto_albums as a WHERE p.aid = a.aid AND approved='YES' AND category >= 10000 (0.003s)
    )

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

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

    ==========================
    Page generated in 0.119 seconds - 12 queries in 0.005 seconds - Album set : ; Meta set: AND aid IN (37,38,39,40,41,42,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,64,65,66,67,68,69,70,71,72,73,74,76,77,78,79,80,81,82,83,84,85,86,87,88,89,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,139,140,141,142,143,145,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,182,183,184,185,186,187,188,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208) ;[/i]

    Any ideas what is wrong and what I can do to fix this?
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Template error
« Reply #1 on: November 04, 2007, 09:29:54 pm »

Looks like an issue with your custom theme. Post a link to your gallery for a start and zip your custom theme and attach it to your posting (using "additional options" when composing your message)
Logged

bino

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 27
Re: Template error
« Reply #2 on: November 04, 2007, 09:43:12 pm »

Gallery can be found here: http://www.feesteuh.be/feesteuh/fotos/index1.php

Attached a zip file of my original files (template.php, template.html and style.css)
Logged

bino

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 27
Re: Template error
« Reply #3 on: November 05, 2007, 06:22:32 pm »

Still haven´t found the problem. Any ideas? ???
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Template error
« Reply #4 on: November 06, 2007, 07:55:10 am »

http://www.feesteuh.be/ is down for me.
Logged

bino

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 27
Re: Template error
« Reply #5 on: November 07, 2007, 12:26:21 pm »

You are correct.

Our host was taken over and data got moved to another server.
And as it seems now the server has crashed doing this.

A recent backup of our site and databases will be restored.
Perhaps this will revert the situation back to when we had no problems... hopefully.

I´ll keep you updated.
Logged
Pages: [1]   Go Up
 

Page created in 0.021 seconds with 19 queries.