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
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...
(//)
[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
(
- => 199
)
[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
(
- => SELECT extension, mime, content FROM cpg135_filetypes;
[1] => SELECT * FROM ibldu_users WHERE user_id='1' AND user_password='019b0b27113bc3d190958a6b7cf2c177'
[2] => 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 cpg135_usergroups WHERE group_id in (199)
[3] => SELECT group_name FROM cpg135_usergroups WHERE group_id= 199
[4] => DELETE FROM cpg135_banned WHERE expiry < '2005-11-05 16:22:46'
[5] => SELECT * FROM cpg135_banned WHERE ip_addr='69.198.14.92' OR ip_addr='69.198.14.92' OR user_id=1
[6] => SELECT cid, name, description, thumb FROM cpg135_categories WHERE parent = '' ORDER BY pos
[7] => SELECT aid FROM cpg135_albums as a WHERE category>=10000
[8] => SELECT count(*) FROM cpg135_pictures as p, cpg135_albums as a WHERE p.aid = a.aid AND category >= 10000
[9] => SELECT cid, name, description, thumb FROM cpg135_categories WHERE parent = '1' ORDER BY pos
[10] => SELECT aid FROM cpg135_albums as a WHERE category = '0'
[11] => SELECT count(*) FROM cpg135_albums as a WHERE 1
[12] => SELECT count(*) FROM cpg135_pictures as p LEFT JOIN cpg135_albums as a ON a.aid=p.aid WHERE 1
[13] => SELECT count(*) FROM cpg135_comments as c LEFT JOIN cpg135_pictures as p ON c.pid=p.pid LEFT JOIN cpg135_albums as a ON a.aid=p.aid WHERE 1
[14] => SELECT count(*) FROM cpg135_categories WHERE 1
[15] => SELECT sum(hits) FROM cpg135_pictures as p LEFT JOIN cpg135_albums as a ON p.aid=a.aid WHERE 1
[16] => SELECT count(*) FROM cpg135_albums as a WHERE category = '0'
[17] => SELECT a.aid, a.title, a.description, visibility, filepath, filename, url_prefix, pwidth, pheight FROM cpg135_albums as a LEFT JOIN cpg135_pictures as p ON a.thumb=p.pid WHERE category=0 ORDER BY a.pos LIMIT 0,1
[18] => SELECT aid, count(pid) as pic_count, max(pid) as last_pid, max(ctime) as last_upload FROM cpg135_pictures WHERE aid IN (1) AND approved = 'YES' GROUP BY aid
[19] => SELECT filepath, filename, url_prefix, pwidth, pheight FROM cpg135_pictures WHERE pid='3'
[20] => SELECT COUNT(*) from cpg135_pictures WHERE approved = 'YES'
[21] => SELECT pid, filepath, filename, url_prefix, filesize, pwidth, pheight, ctime, aid, aid FROM cpg135_pictures WHERE approved = 'YES' ORDER BY RAND() LIMIT 8
[22] => SELECT COUNT(*) from cpg135_pictures WHERE approved = 'YES'
[23] => SELECT pid, filepath, filename, url_prefix, filesize, pwidth, pheight, ctime, aid,title, caption, owner_id, owner_name, aid FROM cpg135_pictures WHERE approved = 'YES' ORDER BY pid DESC LIMIT 0 ,8
)
==========================
GET :
------------------
Array
(
)
==========================
POST :
------------------
Array
(
)
==========================
VERSION INFO :
------------------
PHP version: 5.0.4 - OK
------------------
mySQL version: 4.1.14-standard-log
------------------
Coppermine version: 1.3.5
==========================
Module: gd
------------------
GD Support enabled
GD Version bundled (2.0.28 compatible)
FreeType Support enabled
FreeType Linkage with freetype
FreeType Version 2.1.9
GIF Read Support enabled
GIF Create Support enabled
JPG Support enabled
PNG Support enabled
WBMP Support enabled
XBM Support enabled
==========================
Module: mysql
------------------
Active Persistent Links 0
Active Links 1
Client API version 4.1.11
MYSQL_MODULE_TYPE external
MYSQL_SOCKET /var/lib/mysql/mysql.sock
MYSQL_INCLUDE -I/usr/include/mysql
MYSQL_LIBS -L/usr/lib -lmysqlclient
==========================
Module: zlib
------------------
ZLib Support enabled
Compiled Version 1.2.1.1
Linked Version 1.2.1.1
==========================
Server restrictions (safe mode)?
------------------
Directive | Local Value | Master Value
safe_mode | On | On
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 | system, range, exec, shell_exec, passthru, proc_open, popen | system, range, exec, shell_exec, passthru, proc_open, popen
file_uploads | On | On
include_path | . | .
open_basedir | /tmp:VIRTUAL_DOCUMENT_ROOT | no value
==========================
email
------------------
Directive | Local Value | Master Value
sendmail_from | no value | no value
sendmail_path | /usr/sbin/mini_sendmail -fgeneralmail@bravehost.com -t | /usr/sbin/mini_sendmail -fgeneralmail@bravehost.com -t
SMTP | localhost | localhost
smtp_port | 25 | 25
==========================
Size and Time
------------------
Directive | Local Value | Master Value
max_execution_time | 40 | 40
max_input_time | 50 | 50
upload_max_filesize | 9M | 9M
post_max_size | 8M | 8M
==========================
Page generated in 0.216 seconds - 24 queries in 0.029 seconds - Album set :
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
Quote from: 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
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.
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:
<!-- 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
Please edit bridge/ldu.inc.php and change
define('USER_CAN_CREATE_ALBUMS', (int)$USER_DATA['can_create_albums']);
to
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.
Nibbler Saves the day again!
Thanks its working now.