Webmastersite.net
Register Log In

Strange new problem
Help is much appreciated!

Comments on Strange new problem

Credence
Beginner

Usergroup: Member
Joined: Mar 05, 2006

Total Topics: 3
Total Comments: 8
Posted Apr 02, 2006 - 2:03 PM:

As a new member, if you go to your member album and create a new sub-category in there, it shows up fine. I've got it set so members can edit and delete their own categories. However, the first category that you make, if you try to edit or delete it, it comes back saying you don't have permission to view the (edit) page.

Yet, if you make another sub category, it allows you to access the edit page for that one just fine, and any subsequent ones you add after it. Only the first one doesn't work?

On top of this, if a member does go to their edit category page and selects to delete any category, it comes back saying the category has been deleted, and yet when you're returned to the member album, the category is still there and working. If you select the same category again and try to delete it, it comes back saying the deletion has been reversed.

I'm a bit confused now, is this a configuration error or a script bug? I can't seem to figure out why it's doing this. I'd be grateful for any help. Thanks!
Paul
developer

Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California

Total Topics: 61
Total Comments: 7868
Paul
Posted Apr 03, 2006 - 5:06 AM:

There are two album bugs I fixed last week but haven't released a version since:
1) When deleting album subcategories they still show in the list.
2) When submiting to an album subcategory as a non-admin it requires validation of the images.

However, the first category that you make, if you try to edit or delete it, it comes back saying you don't have permission to view the (edit) page.

I can't reproduce that.
Credence
Beginner

Usergroup: Member
Joined: Mar 05, 2006

Total Topics: 3
Total Comments: 8
Posted Apr 03, 2006 - 9:59 AM:

Well, 2 outta 3 ain't bad smiling face.
Here's the debug info, from when going to the edit category page from the first created album sub-category. It's only the first category that's affected by this, subsequent ones that the user may create operate normally which kind of strikes me odd.

Load time so far: 0.08 seconds.
Performing query: SELECT name,content FROM wsngallery_settings WHERE id>0 ORDER BY id ASC ;


Load time so far: 0.1 seconds.
Performing query: SELECT id FROM wsngallery_categories WHERE validated=1 AND hide=0 AND isalbum=0 ORDER BY id DESC LIMIT 0,1;


Load time so far: 0.12 seconds.
Performing query: SELECT name,value FROM wsngallery_switches WHERE id>0 ;


Number of rows is 64 for Resource id #37

Load time so far: 0.13 seconds.
Performing query: SELECT id,type,original,replacement,description,originalclose,replacementclose,sortorder FROM wsngallery_markup WHERE type='wsncode' ORDER BY sortorder ;


Number of rows is 22 for Resource id #39

Load time so far: 0.13 seconds.
Performing query: SELECT original,replacement,description,id,sortorder FROM wsngallery_markup WHERE type='smilie' ORDER BY sortorder ;


Number of rows is 14 for Resource id #40

Load time so far: 0.13 seconds.
Performing query: SELECT id,title,caneditown,caneditall,canvote,isadmin,canpost,canemail,validatecats,validatecomments,validatelinks,validateedits,cansubmitlinks,cansubmitcategories,cansubmitcomments,caneditownlinks,caneditowncategories,caneditowncomments,caneditownprofile,caneditalllinks,caneditallcategories,caneditallcomments,caneditallprofiles,candownloadfiles,canupload,canviewip,limitlinks,canemailmembers,canusehtml,limitlinksdaily,canalias,cancopy,candeleteown,candeleteall,bytespermem,canviewpages,candofulledit,candeletecategories,candeletecomments,candeleteowncategories,candeleteowncomments,candeletemembers,candeleteownmembers,canaliascategories,caneditvotes,numaliases,canviewvotes,canhideownlinks,canhideowncategories,canhideowncomments,canhidealllinks,canhideallcategories,canhideallcomments,canratecomments,canpm,canim,canharddelete,limitpms,limitpmsdaily,canviewdeleted,cansubmitpolls,candeletepolls,candeleteownpolls,caneditpolls,caneditownpolls,attachperpost,attachperpm,canviewshouts,caneditshouts,caneditownshouts,candeleteshouts,candeleteownshouts,cansubmitshouts,canpollvote,customtitle,canviewinvisible,namestyle,canpmimportant,canviewmodlog,isleader,cansubmitquotes,validatequotes,candeletequotes,candeleteownquotes,canreport,canusesearch,attachperlink,validateattachments,bulkpms,issupermod,caneditownquotes,caneditallquotes,canviewchat,caneditownevents,caneditallevents,candeleteownevents,candeleteevents,cansubmitevents,validateevents FROM wsngallery_membergroups WHERE id>0 ;


Load time so far: 0.14 seconds.
Performing query: SELECT id,name,comments,time,usergroup,password,ip,totalhits,email,validated,template,language,totalbytes,images,lastattempt,avatarname,allowemail,albumid,signature,failedattempts,allowuseremail,stylesheet,funds,totalhitsin,notifyoflinks,lastvisit,timezone,links,rating,pmfolders,notifyofpms,acceptpms,cookieduration,banned,topics,posts,location,homepage,occupation,bio,aim,icq,msn,yahoo,inactive,timeonline,totalpms,buddies,ignored,isonline,acceptims,adminpermissions,referrer,groupreverttime,grouprevertto,moderationpm,secondarygroups,linksperpage,commentsperpage,shouts,customtitle,shoutban,topicbans,forumbans,visibility,birthdate,lastsession,interests,posteditor,forumaccess,pmpopup,pmnotify,modnotes,guestnotes,salt,lastmodnote,newpms,imflag,orderalbums,lastguestnote,autosubscribe,notifymethod,showavatars,showsigs,warninglevel,chatcolor FROM wsngallery_members WHERE id=6 AND validated=1 ;


Load time so far: 0.14 seconds.
Performing query: SELECT id,name,parent,validated,description,time,parentnames,parentids,numlinks,hide,lastlinktime,custom,lastedit,moderators,headerinfo,related,numsub,isalbum,type,permissions,subscribers,subscriber,mixtypes,orderlinks,totalcomments,filetitle,filename,ulsearchmax,ulsearchquery,ulsearchadult,alias,catcols,linkcols,dmozpath,sponsorlinks,views,customwrap,deleted,reqlinks,reqcoms,reqlinksdelay,priority,levelsdeep,lastposterid,lastpostername,lastcommenttime,lastthreadid,lastthreadtitle,linkshere,unvalidatedlinks,unvalidatedcomments,actaslink,countposts,subcatshtml FROM wsngallery_categories WHERE validated=1 AND deleted=0 AND hide=0 ;


Number of rows is 22 for Resource id #47

Load time so far: 0.16 seconds.
Performing query: LOCK TABLES wsngallery_email WRITE, wsngallery_links WRITE, wsngallery_categories WRITE, wsngallery_members WRITE;


Load time so far: 0.16 seconds.
Performing query: SELECT id,`to`,subject,message,headers,replacement,mime FROM wsngallery_email WHERE timesent=0 ORDER BY id ASC LIMIT 0,10;


Number of rows is 0 for Resource id #48

Load time so far: 0.16 seconds.
Performing query: UNLOCK TABLES;


Load time so far: 0.16 seconds.
Performing query: SELECT alias FROM wsngallery_links WHERE id=36 ;


Number of rows is 1 for Resource id #52

Load time so far: 0.16 seconds.
Performing query: SELECT id,title,description,rating,votes,validated,catid,sumofvotes,email,time,hits,numcomments,hide,ownerid,voterips,voterids,lastedit,type,notify,downloads,pendingedit,imedit,suspect,funds,suspended,alias,expire,ip,inalbum,typeorder,hitsoutips,lastcomment,related,inhidden,viewers,threadviewers,hitsouttemp,hitsintemp,origtype,importance,parentids,timesemailed,threadclosed,threadposters,lastposterid,lastpostername,ownername,deleted,deletionreason,movedto,deletedby,timevalidated,filefield,savedby FROM wsngallery_links WHERE id=35 LIMIT 0,1;


Load time so far: 0.17 seconds.
Performing query: SELECT id,name,parent,validated,description,time,parentnames,parentids,numlinks,hide,lastlinktime,custom,lastedit,moderators,headerinfo,related,numsub,isalbum,type,permissions,subscribers,subscriber,mixtypes,orderlinks,totalcomments,filetitle,filename,ulsearchmax,ulsearchquery,ulsearchadult,alias,catcols,linkcols,dmozpath,sponsorlinks,views,customwrap,deleted,reqlinks,reqcoms,reqlinksdelay,priority,levelsdeep,lastposterid,lastpostername,lastcommenttime,lastthreadid,lastthreadtitle,linkshere,unvalidatedlinks,unvalidatedcomments,actaslink,countposts,subcatshtml FROM wsngallery_categories WHERE id=25 ;


Load time so far: 0.17 seconds.
Performing query: SELECT id,name,parent,validated,description,time,parentnames,parentids,numlinks,hide,lastlinktime,custom,lastedit,moderators,headerinfo,related,numsub,isalbum,type,permissions,subscribers,subscriber,mixtypes,orderlinks,totalcomments,filetitle,filename,ulsearchmax,ulsearchquery,ulsearchadult,alias,catcols,linkcols,dmozpath,sponsorlinks,views,customwrap,deleted,reqlinks,reqcoms,reqlinksdelay,priority,levelsdeep,lastposterid,lastpostername,lastcommenttime,lastthreadid,lastthreadtitle,linkshere,unvalidatedlinks,unvalidatedcomments,actaslink,countposts,subcatshtml FROM wsngallery_categories WHERE id=1 ;


Load time so far: 0.18 seconds.
Performing query: SELECT id,name,parent,validated,description,time,parentnames,parentids,numlinks,hide,lastlinktime,custom,lastedit,moderators,headerinfo,related,numsub,isalbum,type,permissions,subscribers,subscriber,mixtypes,orderlinks,totalcomments,filetitle,filename,ulsearchmax,ulsearchquery,ulsearchadult,alias,catcols,linkcols,dmozpath,sponsorlinks,views,customwrap,deleted,reqlinks,reqcoms,reqlinksdelay,priority,levelsdeep,lastposterid,lastpostername,lastcommenttime,lastthreadid,lastthreadtitle,linkshere,unvalidatedlinks,unvalidatedcomments,actaslink,countposts,subcatshtml FROM wsngallery_categories WHERE id=35 ;


Load time so far: 0.18 seconds.
Performing query: SELECT value FROM wsngallery_switches WHERE name='ims' ;



Warning: Cannot modify header information - headers already sent by (output started at /homepages/17/d155932622/htdocs/gallery/classes/database.php:276) in /homepages/17/d155932622/htdocs/gallery/end.php on line 143

Load time so far: 0.33 seconds.
Performing query: SELECT id FROM wsngallery_members WHERE albumid=35 ;


Load time so far: 0.33 seconds.
Performing query: SELECT id,name,comments,time,usergroup,password,ip,totalhits,email,validated,template,language,totalbytes,images,lastattempt,avatarname,allowemail,albumid,signature,failedattempts,allowuseremail,stylesheet,funds,totalhitsin,notifyoflinks,lastvisit,timezone,links,rating,pmfolders,notifyofpms,acceptpms,cookieduration,banned,topics,posts,location,homepage,occupation,bio,aim,icq,msn,yahoo,inactive,timeonline,totalpms,buddies,ignored,isonline,acceptims,adminpermissions,referrer,groupreverttime,grouprevertto,moderationpm,secondarygroups,linksperpage,commentsperpage,shouts,customtitle,shoutban,topicbans,forumbans,visibility,birthdate,lastsession,interests,posteditor,forumaccess,pmpopup,pmnotify,modnotes,guestnotes,salt,lastmodnote,newpms,imflag,orderalbums,lastguestnote,autosubscribe,notifymethod,showavatars,showsigs,warninglevel,chatcolor FROM wsngallery_members WHERE id=6 ;




19 total queries
This page was created in 0.34 seconds
Memory used: 6283168 bytes
Server Status: time since last reboot is
Load time so far: 0.39 seconds.
Performing query: SELECT inchat,lastchat FROM wsngallery_sessions WHERE memberid=6 LIMIT 0,1;


Number of rows is 1 for Resource id #68

Load time so far: 0.39 seconds.
Performing query: SELECT memberid,starttime,time FROM wsngallery_sessions WHERE time < 1144075226 AND memberid > 0 ;


Number of rows is 0 for Resource id #69

Load time so far: 0.39 seconds.
Performing query: DELETE FROM wsngallery_sessions WHERE time < 1144075226;


Load time so far: 0.4 seconds.
Performing query: SELECT id,memberid,location,time,ip,browser,starttime,catid,threadid,areaname,lastsearch,nopermission,inchat,name,isrobot,lastchat,groupnamestyle,acceptims,visibility FROM wsngallery_sessions WHERE memberid=6 ;


Number of rows is 1 for Resource id #70

Load time so far: 0.4 seconds.
Performing query: UPDATE wsngallery_sessions SET id='373' WHERE id=373;


Load time so far: 0.4 seconds.
Performing query: UPDATE wsngallery_sessions SET memberid='6' WHERE id=373;


Load time so far: 0.4 seconds.
Performing query: UPDATE wsngallery_sessions SET location='http://rcgalleryonline.com/edit.php?action=category&field=id&condition=equals&fieldvalue=36&debug=1' WHERE id=373;


Load time so far: 0.4 seconds.
Performing query: UPDATE wsngallery_sessions SET time='1144076126' WHERE id=373;


Load time so far: 0.4 seconds.
Performing query: UPDATE wsngallery_sessions SET ip='70.31.42.62' WHERE id=373;


Load time so far: 0.4 seconds.
Performing query: UPDATE wsngallery_sessions SET browser='Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; .NET CLR 1.1.4322)' WHERE id=373;


Load time so far: 0.41 seconds.
Performing query: UPDATE wsngallery_sessions SET starttime='1144076060' WHERE id=373;


Load time so far: 0.41 seconds.
Performing query: UPDATE wsngallery_sessions SET catid='35' WHERE id=373;


Load time so far: 0.41 seconds.
Performing query: UPDATE wsngallery_sessions SET threadid='35' WHERE id=373;


Load time so far: 0.41 seconds.
Performing query: UPDATE wsngallery_sessions SET areaname='http://rcgalleryonline.co' WHERE id=373;


Load time so far: 0.41 seconds.
Performing query: UPDATE wsngallery_sessions SET lastsearch='0' WHERE id=373;


Load time so far: 0.41 seconds.
Performing query: UPDATE wsngallery_sessions SET nopermission='1' WHERE id=373;


Load time so far: 0.41 seconds.
Performing query: UPDATE wsngallery_sessions SET inchat='0' WHERE id=373;


Load time so far: 0.41 seconds.
Performing query: UPDATE wsngallery_sessions SET name='daniel2' WHERE id=373;


Load time so far: 0.41 seconds.
Performing query: UPDATE wsngallery_sessions SET isrobot='0' WHERE id=373;


Load time so far: 0.41 seconds.
Performing query: UPDATE wsngallery_sessions SET lastchat='0' WHERE id=373;


Load time so far: 0.42 seconds.
Performing query: UPDATE wsngallery_sessions SET groupnamestyle='' WHERE id=373;


Load time so far: 0.42 seconds.
Performing query: UPDATE wsngallery_sessions SET acceptims='none' WHERE id=373;


Load time so far: 0.42 seconds.
Performing query: UPDATE wsngallery_sessions SET visibility='everyone' WHERE id=373;


closing database connection


I don't see any obvious problems in the debug info, but i'm not a PHP coder so maybe you'll notice something smiling face.

Thanks for the help. Any ETA on the new version?

EDIT: Forgot to add, if you want to mess around with it yourself to see if you can figure out why it may be doing it, the site is http://www.rcgalleryonline.com. You can either make a new account or just play with one of the test accounts. daniel / hehe or daniel2 / omg.

Just random stuff wink.
Paul
developer

Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California

Total Topics: 61
Total Comments: 7868
Paul
Posted Apr 05, 2006 - 7:07 AM:

The ETA is a few hours ago. See if by chance it was accidentally fixed in the process of the others.
Credence
Beginner

Usergroup: Member
Joined: Mar 05, 2006

Total Topics: 3
Total Comments: 8
Posted Apr 05, 2006 - 6:49 PM:

Well, the delete bug is fixed, which is good news smiling face. It still refuses to allow deletion of the very first created subcategory though, and just yells at you about not being authorized. This isn't a show stopper for now, hopefully I can figure out why it's doing this. It's like the script generates the first category with the wrong permission settings but then all the other ones are fine. It doesn't even make sense since I imagine the generation code for every subcategory is the same? shaking head
Search thread for
Download thread as
  • 0/5
  • 1
  • 2
  • 3
  • 4
  • 5



This thread is closed, so you cannot post a reply.