[SOLVED!] User Can't Create Personal Gallery / Photo Album

Support for IntegraMOD 141

Moderator: Integra Moderator

[SOLVED!] User Can't Create Personal Gallery / Photo Album

PostAuthor: spaniel » Mon Jan 21, 2008 10:52 pm

SOLVED: You won't believe "what done it". [url=http]Click here[/url] to go straight to the explanation.


Your phpBB Version: 2.0.
phpBB Type: Integramod 141
MODs: Yes
Your knowledge: Beginner

De.scription and Message

When a new user clicks on their gallery link (forum/album_personal.php or forum/album.php) it tells them

The personal gallery of test2 has not been created

Create Personal Gallery


They click on "Create Personal Gallery" and they get the (false) message:


New category has been created successfully

Click here to return to the personal gallery index



When they go back to the gallery index, their personal gallery isn't there and they can't upload any pix.

Please help as I can't delay launching much longer <img>


I switched on the Debug Mode in ACP > Photo Album and it's given me:

DEBUG :
----------------------------------------------------
album_permissions : before album_user_access : ' test2's Personal Gallery'(id=0), $album_permission =
array = (
['view'] => 1,
['upload'] => 1
)

----------------------------------------------------
DEBUG :
----------------------------------------------------
album_permissions : after album_user_access : ' test2's Personal Gallery'(id=0), $album_permission =
array = (
['view'] => 1,
['upload'] => 1
)

----------------------------------------------------
DEBUG :
----------------------------------------------------
$album_config['personal_gallery'] = 0
----------------------------------------------------
DEBUG :
----------------------------------------------------
final : $album_permission =
array = (
['view'] => 1,
['upload'] => 1,
['manage'] => 1,
['rate'] => 1,
['edit'] => 1,
['delete'] => 1,
['comment'] => 1,
['moderator'] => 1
)

----------------------------------------------------

Warning: Cannot modify header information - headers already sent by (output started at /home/album_mod/album_hierarchy_debug.php:77) in /home/includes/page_header.php on line 1162

Warning: Cannot modify header information - headers already sent by (output started at /home/album_mod/album_hierarchy_debug.php:77) in /home/includes/page_header.php on line 1168

Warning: Cannot modify header information - headers already sent by (output started at /home/album_mod/album_hierarchy_debug.php:77) in /home/includes/page_header.php on line 1169
Last edited by spaniel on Thu Jan 24, 2008 9:47 pm, edited 1 time in total.

spaniel
Sr Integra Member
Sr Integra Member
 
Posts: 220
Likes: 0 post
Liked in: 0 post
Joined: Wed Apr 26, 2006 4:29 pm
Cash on hand: 0.00

PostAuthor: spaniel » Tue Jan 22, 2008 8:38 am

I just set up a new test account and i get the same problem. What should I try first? Which files are used in gallery setup?

Any help with this would be greatly appreciated as I can't launch a site without it.

Many thanks.
Last edited by spaniel on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.

spaniel
Sr Integra Member
Sr Integra Member
 
Posts: 220
Likes: 0 post
Liked in: 0 post
Joined: Wed Apr 26, 2006 4:29 pm
Cash on hand: 0.00

Re: User Can't Create Personal Gallery / Photo Album

PostAuthor: DjPorkchop » Tue Jan 22, 2008 10:55 am

go back and check your permissions for album mod. The files should be

777 album_mod/upload
777 album_mod/upload/cache
777 album_mod/upload/med_cache
777 album_mod/upload/wm_cache
Last edited by DjPorkchop on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
"Don't gain the world and lose your soul, wisdom is better than silver and gold" -Bob Marley

If you build it, I can break it! ~ Whispered in the tone of the movie Field of Dreams.
User avatar
DjPorkchop
Administrator
Administrator
 
Posts: 1593
Likes: 136 posts
Liked in: 26 posts
Images: 12
Joined: Fri Apr 21, 2006 7:59 pm
Cash on hand: 1,575.25
Location: Illinois
IntegraMOD version: phpBB2x

PostAuthor: spaniel » Tue Jan 22, 2008 2:55 pm

All those folders are chmodded to 777, but what should the files in those folders be chmodded to?

I've got .jpg files in each one all chmodded to 777 as well. Each folder has an .htaccess file chmodded to 664.

Is that right?
Last edited by spaniel on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.

spaniel
Sr Integra Member
Sr Integra Member
 
Posts: 220
Likes: 0 post
Liked in: 0 post
Joined: Wed Apr 26, 2006 4:29 pm
Cash on hand: 0.00

Re: User Can't Create Personal Gallery / Photo Album

PostAuthor: DjPorkchop » Tue Jan 22, 2008 4:49 pm

Actually, none of the files inside of the ones I posted get ch modded. They all stay as was.

Im not sure why else this would occur. All I can say is while you are checking permissions, check them all. I have had that problem a few times. I use my ftp software to chmod and when I got that error, I logged into my control panel and checked and they were in correct. Other then that, Im not quite sure why else you would get a permissions error.

**Edit**
I just did a brand new install lastnight and Without touching ANY settings at all in the album, I went and created a personal gallery and it worked. I didnt see any errors at all.
Last edited by DjPorkchop on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
"Don't gain the world and lose your soul, wisdom is better than silver and gold" -Bob Marley

If you build it, I can break it! ~ Whispered in the tone of the movie Field of Dreams.
User avatar
DjPorkchop
Administrator
Administrator
 
Posts: 1593
Likes: 136 posts
Liked in: 26 posts
Images: 12
Joined: Fri Apr 21, 2006 7:59 pm
Cash on hand: 1,575.25
Location: Illinois
IntegraMOD version: phpBB2x

PostAuthor: spaniel » Tue Jan 22, 2008 6:01 pm

Mine worked for the first 2 users but all subsequent new users, it tells them their category has been created but nothing is in the gallery.
Last edited by spaniel on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.

spaniel
Sr Integra Member
Sr Integra Member
 
Posts: 220
Likes: 0 post
Liked in: 0 post
Joined: Wed Apr 26, 2006 4:29 pm
Cash on hand: 0.00

Re: User Can't Create Personal Gallery / Photo Album

PostAuthor: spaniel » Tue Jan 22, 2008 6:20 pm

I did a file check in Ctracker and for the album files it says:

album.php => common.php / pagestart.php not included or included too late
album_allpics.php => common.php / pagestart.php not included or included too late
album_avatar.php => common.php / pagestart.php not included or included too late
album_cat.php => common.php / pagestart.php not included or included too late
album_comment_delete.php => common.php / pagestart.php not included or included too late
album_comment_edit.php => common.php / pagestart.php not included or included too late
album_delete.php => common.php / pagestart.php not included or included too late
album_download.php => common.php / pagestart.php not included or included too late
album_edit.php => common.php / pagestart.php not included or included too late
album_hotornot.php => common.php / pagestart.php not included or included too late
album_mod/album_acp_functions.php => SAFE
album_mod/album_bbcode.php => Code in the file is possibly executable from beyond phpBB
album_mod/album_constants.php => SAFE
album_mod/album_exif_info.php => common.php / pagestart.php not included or included too late
album_mod/album_functions.php => SAFE
album_mod/album_hierarchy_auth.php => SAFE
album_mod/album_hierarchy_debug.php => SAFE
album_mod/album_hierarchy_functions.php => SAFE
album_mod/album_hierarchy_sql.php => SAFE
album_mod/album_memberlist.php => SAFE
album_mod/album_nuffimage.php => SAFE
album_mod/album_nuffimage_box.php => SAFE
album_mod/album_personal.php => SAFE
album_mod/album_watermark.php => SAFE
album_mod/archive.php => Code in the file is possibly executable from beyond phpBB
album_mod/clown_album_functions.php => SAFE
album_mod/clown_album_functions_orig.php => SAFE
album_modcp.php => common.php / pagestart.php not included or included too late
album_nuffload.php => SAFE
album_nuffload_pbar.php => common.php / pagestart.php not included or included too late
album_pclzip_lib.php => Code in the file is possibly executable from beyond phpBB
album_personal.php => SAFE
album_personal_cat_admin.php => common.php / pagestart.php not included or included too late
album_personal_index.php => common.php / pagestart.php not included or included too late
album_pic.php => common.php / pagestart.php not included or included too late
album_picm.php => common.php / pagestart.php not included or included too late
album_pic_nuffed.php => common.php / pagestart.php not included or included too late
album_search.php => common.php / pagestart.php not included or included too late
album_showpage.php => Code in the file is possibly executable from beyond phpBB
album_thumbnail.php => common.php / pagestart.php not included or included too late
album_upload.php => common.php / pagestart.php not included or included too late



What could that mean?
Last edited by spaniel on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.

spaniel
Sr Integra Member
Sr Integra Member
 
Posts: 220
Likes: 0 post
Liked in: 0 post
Joined: Wed Apr 26, 2006 4:29 pm
Cash on hand: 0.00

Re: User Can't Create Personal Gallery / Photo Album

PostAuthor: DjPorkchop » Tue Jan 22, 2008 7:38 pm

I've never saw that error before. This is beyond my spectrum now. <img> I better leave this one to the pros.
Last edited by DjPorkchop on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
"Don't gain the world and lose your soul, wisdom is better than silver and gold" -Bob Marley

If you build it, I can break it! ~ Whispered in the tone of the movie Field of Dreams.
User avatar
DjPorkchop
Administrator
Administrator
 
Posts: 1593
Likes: 136 posts
Liked in: 26 posts
Images: 12
Joined: Fri Apr 21, 2006 7:59 pm
Cash on hand: 1,575.25
Location: Illinois
IntegraMOD version: phpBB2x

PostAuthor: spaniel » Tue Jan 22, 2008 8:38 pm

we need a smiley that says: *gulp* lol.

thanks mwe - i hope someone can help cos i have a whole photo mod that no one can upload photos to. only the first 2 users have their own albums... <img>
Last edited by spaniel on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.

spaniel
Sr Integra Member
Sr Integra Member
 
Posts: 220
Likes: 0 post
Liked in: 0 post
Joined: Wed Apr 26, 2006 4:29 pm
Cash on hand: 0.00

PostAuthor: spaniel » Tue Jan 22, 2008 9:09 pm

OK Moulder and Skully, I think it's time to open an X File on the Photo Mod cos altho a new user can't create their own personal album, they can add any photo they like to my personal photo gallery.

Not very personal, is it <img> (Update: i've found where you can set folder permissions but shame this isn't set by default)


In the ACP, I also set it so that the download option would be hidden, it's still visible on the personal galleries (tho disabled).
Last edited by spaniel on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.

spaniel
Sr Integra Member
Sr Integra Member
 
Posts: 220
Likes: 0 post
Liked in: 0 post
Joined: Wed Apr 26, 2006 4:29 pm
Cash on hand: 0.00

Re: [X FILES] User Can't Create Personal Gallery / Photo Alb

PostAuthor: CaNNon » Tue Jan 22, 2008 11:49 pm

Thats not a error MWE_001 he's running one of checksum scanners in CT. nothing to do with the issue. Just means the file was missed during that scan.
Last edited by CaNNon on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
Image
Image
User avatar
CaNNon
Sr Integra Member
Sr Integra Member
 
Posts: 750
Likes: 0 post
Liked in: 0 post
Joined: Thu Apr 19, 2007 12:15 pm
Cash on hand: 0.00

PostAuthor: spaniel » Wed Jan 23, 2008 12:07 am

Should I run the scan again then?
Last edited by spaniel on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.

spaniel
Sr Integra Member
Sr Integra Member
 
Posts: 220
Likes: 0 post
Liked in: 0 post
Joined: Wed Apr 26, 2006 4:29 pm
Cash on hand: 0.00

Re: [X FILES] User Can't Create Personal Gallery / Photo Alb

PostAuthor: CaNNon » Wed Jan 23, 2008 12:15 am

No spaniel those scanners are to help you find unsafe files and files that have been changed during hack attempts on your site.

They will not help you with this, sorry m8!
Last edited by CaNNon on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
Image
Image
User avatar
CaNNon
Sr Integra Member
Sr Integra Member
 
Posts: 750
Likes: 0 post
Liked in: 0 post
Joined: Thu Apr 19, 2007 12:15 pm
Cash on hand: 0.00

PostAuthor: spaniel » Wed Jan 23, 2008 12:20 am

What else is there left to try? It's not chmod, CT is no help...

Funny how everything is working except personal gallery setup.

No error messages. This could be a case for Mulder & Scully...


[youtube:1sv37ywv]http://youtube.com/watch?v=5m5vD4Fojl4[/youtube:1sv37ywv]
Last edited by spaniel on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.

spaniel
Sr Integra Member
Sr Integra Member
 
Posts: 220
Likes: 0 post
Liked in: 0 post
Joined: Wed Apr 26, 2006 4:29 pm
Cash on hand: 0.00

Re: [X FILES] User Can't Create Personal Gallery / Photo Alb

PostAuthor: CaNNon » Wed Jan 23, 2008 12:29 am

I'm not sure spaniel, I would guess a setting in the albums config or the user getting closed out by the uploading file size. Maybe even the file type, hard to guess.
Last edited by CaNNon on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
Image
Image
User avatar
CaNNon
Sr Integra Member
Sr Integra Member
 
Posts: 750
Likes: 0 post
Liked in: 0 post
Joined: Thu Apr 19, 2007 12:15 pm
Cash on hand: 0.00

Re: [X FILES] User Can't Create Personal Gallery / Photo Alb

PostAuthor: obiku » Wed Jan 23, 2008 1:51 am

One question, you said there are some users who could create a Photo Album, and others couldn't....

The users who couldn't create a Photo album, are these users users that you as admin created. I mean did you create those user accounts in the ACP for those users....

I ask this, because I know, when an admin is creating new useraccounts in the ACP, the new user account is a copy of the board founder account. That still has to be changed I think.

So if those accounts are copies of the board founder account, than that will explain, why photo's the upload, are uploaded to the founders photoalbum.

Maybe this will bring some light in the darkness
Last edited by obiku on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
http://www.familie-smit.nl
http://portfolio.familie-smit.nl

Do not tsunami my inbox... instead use the forums...
Hard work may not kill me, but why take a chance?

[hr]
User avatar
obiku
Dev Team
Dev Team
 
Posts: 218
Likes: 0 post
Liked in: 0 post
Joined: Tue May 02, 2006 11:22 am
Cash on hand: 0.00
Location: level 8

PostAuthor: spaniel » Wed Jan 23, 2008 9:07 am

The new members registered thru the normal route. They can upload pix to my personal gallery but can't create their own galleries.

Only users 2 and 3 have personal galleries. All others get told their category is set up but when they go back to album_personal.php it asks them (once again) to create a personal album.
Last edited by spaniel on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.

spaniel
Sr Integra Member
Sr Integra Member
 
Posts: 220
Likes: 0 post
Liked in: 0 post
Joined: Wed Apr 26, 2006 4:29 pm
Cash on hand: 0.00

Re: [X FILES] User Can't Create Personal Gallery / Photo Alb

PostAuthor: spaniel » Wed Jan 23, 2008 7:10 pm

On [url=http]IntegraMod.nl[/url] I clicked on Album and then "create personal gallery" and straight away it created the album and allows me to upload images...

On mine it keeps asking me to "create personal gallery" but doesn't actually create one <img>

So, for some reason, the function to create a personal gallery isn't talking to the db.

Why aren't they talkign to each other? lol.

It's also unsettling that the creator Smartor isn't talking to any of us => [url=http]Smartor's Website[/url]
Last edited by spaniel on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.

spaniel
Sr Integra Member
Sr Integra Member
 
Posts: 220
Likes: 0 post
Liked in: 0 post
Joined: Wed Apr 26, 2006 4:29 pm
Cash on hand: 0.00

Re: [SOLVED!] User Can't Create Personal Gallery / Photo Alb

PostAuthor: spaniel » Thu Jan 24, 2008 9:43 pm

I've just spent about 10 hours doing a fresh install of im141 into a new directory and the photo gallery setup worked perfectly. I then decided to copy over the old language folder to the new directory cos I really didn't want to have to go through changing all that again (e.g. getting rid of "user" can take a few hours...)

But then the setup of new personal galleries stopped, just like on the old directory...

Knowing that lang_main.php contains most of the Album language entries, I played around with that...

I'd originally changed it to:

Code: Select all
// Mighty Gorgon - Full Album Pack - BEGIN$lang['Album'] = 'Album';$lang['Personal_Gallery_Of_User'] = ' %s's Personal Gallery';$lang['Personal_Gallery_Of_User_Profile'] = 'Personal Gallery of %s (%d Pictures)';$lang['Show_All_Pic_View_Mode_Profile'] = 'Show All Pictures In The Personal Gallery of %s (without sub cats)';$lang['Not_allowed_to_view_album'] = 'Sorry, you are not allowed to view the album.';$lang['Not_allowed_to_upload_album'] = 'Sorry, you are not allowed to upload new pic to the album. Please contact the album administrator for more information.';$lang['Album_empty'] = 'There are no pics in the album<br>Click on the <b>Upload New Pic</b> link on this page to post one.';$lang['Upload_New_Pic'] = 'Upload New Pic.';$lang['Pic_Title'] = 'Pic Title';$lang['Pic_Title_Explain'] = 'It is very important to give your pic a good title. It could be a name, a subject to make others know what it is without see it.';$lang['Pic_Upload'] = 'Pic Upload';$lang['Pic_Upload_Explain'] = 'Allowed types are JPG, GIF and PNG. Maximum file size is %s bytes. Maximum image dimensions are %sx%s pixels.';$lang['Album_full'] = 'Sorry, the album has reached the maximum number of uploaded pics. Please contact the album administrator for more information.';$lang['Album_upload_successful'] = 'Thank you, your pic has been uploaded successfully.';$lang['Click_return_album'] = 'Click %shere%s to return to the Album.';$lang['Invalid_upload'] = 'Invalid Upload<br><br>Your pic is too big or its type is not allowed.';$lang['Image_too_big'] = 'Sorry, your image dimensions is too large.';$lang['Uploaded_by'] = 'Uploaded by';$lang['Category_locked'] = 'Sorry, you cannot upload because this category was locked by an admin. Please contact the album administrator for more information.';$lang['View_Album_Index'] = 'Album Index';$lang['View_Album_Personal'] = 'Viewing Personal Album of a fellow citizen';$lang['View_Pictures'] = 'Viewing Pictures or Posting/Reading comments in the Album';$lang['Album_Search'] = 'Searching the Album';$lang['Pic_Name'] = 'Picture Name';$lang['De.scription'] = 'De.scription';$lang['Search_Contents'] = ' that contains: ';$lang['Search_Found'] = 'Search found ';$lang['Search_Matches'] = 'Matches:';// Mighty Gorgon - Full Album Pack - END  $lang['profilcp_photo_shortcut'] = 'Album';$lang['profilcp_photo_pagetitle'] = 'Pix';$lang['Public_view_photo'] = 'Display photos';$lang['User_allowphoto'] = 'Can display photo';$lang['Photo_panel'] = 'Photo control panel';$lang['Photo_gallery'] = 'Photo gallery';$lang['Only_one_photo'] = 'Only one type of photo can be specified';$lang['Wrong_remote_photo_format'] = 'The URL of the remote photo is not valid';$lang['Photo'] = 'Photo';$lang['Photo_explain'] = 'Displays a small graphic image in your profile. Only one image can be displayed at a time, its width can be no greater than %d pixels, the height no greater than %d pixels, and the file size no more than %d KB.';$lang['Upload_Photo_file'] = 'Upload Photo from your machine';$lang['Upload_Photo_URL'] = 'Upload Photo from a URL';$lang['Upload_Photo_URL_explain'] = 'Enter the URL of the location containing the Photo image, it will be copied to this site.';$lang['Pick_local_Photo'] = 'Select Photo from the gallery';$lang['Link_remote_Photo'] = 'Link to off-site Photo';$lang['Link_remote_Photo_explain'] = 'Enter the URL of the location containing the Photo image you wish to link to.';$lang['Photo_URL'] = 'URL of Photo Image';$lang['Select_from_gallery'] = 'Select Photo from gallery';$lang['View_photo_gallery'] = 'Show gallery';$lang['Select_photo'] = 'Select photo';$lang['Photo_filetype'] = 'The photo filetype must be .jpg, .gif or .png';$lang['Photo_filesize'] = 'The photo image file size must be less than %d KB';$lang['Photo_imagesize'] = 'The photo must be less than %d pixels wide and %d pixels high';  



I suspect my

$lang['Personal_Gallery_Of_User'] = ' %s's Personal Gallery';

wasn't much appreciated by whatever it is that renders php, as the original, which works perfectly, is :

$lang['Personal_Gallery_Of_User'] = 'Personal Gallery Of %s';



So Smartor's Album Mod doesn't like apostrophes it would seem. (It would display correctly as " [you]'s Personal Gallery", for example, but I believe it also stopped new users setting up their own galleries).

The End and Amen to that :)


Thanks to all of you who tried to solve this intransigent problem - who'd have thought it was the apostrophe what done it, eh? <img>
Last edited by spaniel on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.

spaniel
Sr Integra Member
Sr Integra Member
 
Posts: 220
Likes: 0 post
Liked in: 0 post
Joined: Wed Apr 26, 2006 4:29 pm
Cash on hand: 0.00

Re: [SOLVED!] User Can't Create Personal Gallery / Photo Alb

PostAuthor: DjPorkchop » Fri Jan 25, 2008 10:44 am

Good job! Glad you got it sorted out. I bet thats a load off the ol' shoulders. I had a similar issue once on a website I was working on. I worked on it for HOURS and I got tired or cursing at it and went to the store and came back, took one look at a snippet of code and found my answer. <img> Gotta love a good challenge.
Last edited by DjPorkchop on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
"Don't gain the world and lose your soul, wisdom is better than silver and gold" -Bob Marley

If you build it, I can break it! ~ Whispered in the tone of the movie Field of Dreams.
User avatar
DjPorkchop
Administrator
Administrator
 
Posts: 1593
Likes: 136 posts
Liked in: 26 posts
Images: 12
Joined: Fri Apr 21, 2006 7:59 pm
Cash on hand: 1,575.25
Location: Illinois
IntegraMOD version: phpBB2x


Return to IntegraMOD 141

Who is online

Registered users: App360MonitorBot, Bing [Bot], Google [Bot]