forum.coppermine-gallery.net

Support => cpg1.3.x Support => Older/other versions => cpg1.3 Themes/Skins/Templates => Topic started by: byroman on November 06, 2005, 01:19:11 am

Title: "Template error Failed to find block 'my_profile'"
Post by: byroman on November 06, 2005, 01:19:11 am
Ok, As far as I can tell, ive got a big problem. When ever I go to my gallery, when im not logged in, I get a weird long error message. Heres what it says:

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

                <span class="topmenu">
<!-- BEGIN album_list -->
                        <a href="{ALB_LIST_TGT}" title="{ALB_LIST_TITLE}">{ALB_LIST_LNK}</a> :
<!-- END album_list -->
<!-- BEGIN my_gallery -->
                        <a href="{MY_GAL_TGT}" title="{MY_GAL_TITLE}">{MY_GAL_LNK}</a> :
<!-- END my_gallery -->
<!-- BEGIN allow_memberlist -->
                        <a href="{MEMBERLIST_TGT}" title="{MEMBERLIST_TITLE}">{MEMBERLIST_LNK}</a>  :
<!-- END allow_memberlist -->

<!-- BEGIN enter_admin_mode -->
                        <a href="{ADM_MODE_TGT}" title="{ADM_MODE_TITLE}">{ADM_MODE_LNK}</a> :
<!-- END enter_admin_mode -->

<!-- BEGIN upload_pic -->
                        <a href="{UPL_PIC_TGT}" title="{UPL_PIC_TITLE}">{UPL_PIC_LNK}</a>
<!-- END upload_pic -->
                                                <br />
                        <a href="{LASTUP_TGT}">{LASTUP_LNK}</a> :
                        <a href="{LASTCOM_TGT}">{LASTCOM_LNK}</a> :
                        <a href="{TOPN_TGT}">{TOPN_LNK}</a>
                                                <br /><br />
<!-- BEGIN register -->
                        <a href="{REGISTER_TGT}" title="{REGISTER_TITLE}">{REGISTER_LNK}</a> :
<!-- END register -->
<!-- BEGIN login -->
                        <a href="{LOGIN_TGT}">{LOGIN_LNK}</a> :
<!-- END login -->

                        <a href="{SEARCH_TGT}">{SEARCH_LNK}</a> :
<!-- BEGIN faq -->
                        <a href="{FAQ_TGT}" title="{FAQ_TITLE}">{FAQ_LNK}</a>
<!-- END faq -->
                </span>

See for your self: http://www.ib.crazygaming.net/cpg135/index.php
However when im logged in, it seems to work fine. To see what I mean, go to my website http://www.ib.crazygaming.net/LDU801 and log in as:
Username: test dummy
Password: password
Then click on the gallery link. It seems to work fine. Yes this after noon I was playing around with my skin, and changed the CSS, and modifies a few immages. Is there somthing I have messed up in the process of doing it?

Thanks in advance,
Byroman
Title: Re: "Template error Failed to find block 'my_profile'"
Post by: byroman on November 06, 2005, 01:25:07 am
I dont know if this will be use full or not, but heres the debug info from when im logged in:

USER:
------------------
Array
(
    [ID] => 9e18ad1ad759bde5216006a1393e00ff
    [am] => 1
)

==========================
USER DATA:
------------------
Array
(
    [user_id] => 1
    [user_active] => 1
    [user_banned] => 0
    [user_banexpire] => 0
    [user_name] => Sean Elegost
    [user_password] => *****
    [user_level] => 99
    [user_country] => ca
    [user_text] => When Computers Fail...
(http://)
    [user_avatar] =>
    [user_photo] =>
    [user_signature] =>
    [user_extra1] =>
    [user_extra2] =>
    [user_extra3] =>
    [user_extra4] =>
    [user_extra5] =>
    [user_extra6] =>
    [user_extra7] =>
    [user_extra8] =>
    [user_extra9] =>
    [user_occupation] => Student
    [user_location] => St. George
    [user_timezone] => +00
    [user_birthdate] => 725274000
    [user_gender] => M
    [user_irc] =>
    [user_msn] =>
    [user_icq] =>
    [user_website] => http://www.crazygaming.net
    [user_email] => byroman@gmail.com
    [user_hideemail] => 1
    [user_pmnotify] => 0
    [user_skin] => rogue
    [user_lang] => uk
    [user_regdate] => 1130369142
    [user_lastlog] => 1131236564
    [user_lastvisit] => 1131232435
    [user_lastip] => 69.198.14.92
    [user_logcount] => 741
    [user_postcount] => 0
    [user_gallerycount] => 0
    [user_jrnpagescount] => 0
    [user_jrnupdated] => 0
    [user_sid] => f2504e4c3529ddb757fd3f231b795436
    [user_lostpass] => 1d5862b78093d2b93ceee3fb2d7a2461
    [groups] => Array
        (
           
        )

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

==========================
Queries:
------------------
Array
(
   
Title: Re: "Template error Failed to find block 'my_profile'"
Post by: xplicit on November 06, 2005, 01:31:16 am
Ok the fact that you can log in normally is because you dont log in to coppermine by logging in but into your LDU portal.

At first I thought you had messed to much on your themes of coppermine  but trying

http://www.ib.crazygaming.net/cpg135/index.php?theme=classic

and

http://www.ib.crazygaming.net/cpg135/index.php?theme=eyeball

all give more or less the same errors in the output.

So you probably have removed a bit to much in the files of LDU.

My knowledge of LDU is poor so I can't help you any further
Title: Re: "Template error Failed to find block 'my_profile'"
Post by: byroman on November 06, 2005, 01:34:56 am
Ok the fact that you can log in normally is because you dont log in to coppermine by logging in but into your LDU portal.

At first I thought you had messed to much on your themes of coppermine  but trying

http://www.ib.crazygaming.net/cpg135/index.php?theme=classic

and

http://www.ib.crazygaming.net/cpg135/index.php?theme=eyeball

all give more or less the same errors in the output.

So you probably have removed a bit to much in the files of LDU.

My knowledge of LDU is poor so I can't help you any further

Removed a bit too much in the files of LDU? All I did was download the skin "Blackbearch" and modded it a bit. I didnt do any thing to LDU.
Title: Re: "Template error Failed to find block 'my_profile'"
Post by: xplicit on November 06, 2005, 01:38:52 am
Ok its strange that I get errors on every theme I select on your site.

But what I do know is that you get the exact same results if you  remove the line:

Code: [Select]
<!-- BEGIN my_profile -->
                        <a href="{MY_PROF_TGT}">{MY_PROF_LNK}</a> ::
<!-- END my_profile -->

in your theme.php

So please check if those lines are still there, if not place them back
Title: Re: "Template error Failed to find block 'my_profile'"
Post by: Nibbler on November 06, 2005, 01:40:13 am
Please edit bridge/ldu.inc.php and change

Code: [Select]
define('USER_CAN_CREATE_ALBUMS', (int)$USER_DATA['can_create_albums']);

to

Code: [Select]
define('USER_CAN_CREATE_ALBUMS', USER_ID ? (int)$USER_DATA['can_create_albums'] : 0);

That should sort it, but I dn't have LDU installed currently to test anything.
Title: Re: "Template error Failed to find block 'my_profile'"
Post by: byroman on November 06, 2005, 01:44:25 am
Nibbler Saves the day again!
Thanks its working now.