Page 1 of 1

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

PostPosted: Mon Jan 21, 2008 10:52 pm
Author: spaniel
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

PostPosted: Tue Jan 22, 2008 8:38 am
Author: spaniel
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.

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

PostPosted: Tue Jan 22, 2008 10:55 am
Author: DjPorkchop
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

PostPosted: Tue Jan 22, 2008 2:55 pm
Author: spaniel
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?

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

PostPosted: Tue Jan 22, 2008 4:49 pm
Author: DjPorkchop
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.

PostPosted: Tue Jan 22, 2008 6:01 pm
Author: spaniel
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.

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

PostPosted: Tue Jan 22, 2008 6:20 pm
Author: spaniel
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?

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

PostPosted: Tue Jan 22, 2008 7:38 pm
Author: DjPorkchop
I've never saw that error before. This is beyond my spectrum now. <img> I better leave this one to the pros.

PostPosted: Tue Jan 22, 2008 8:38 pm
Author: spaniel
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>

PostPosted: Tue Jan 22, 2008 9:09 pm
Author: spaniel
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).

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

PostPosted: Tue Jan 22, 2008 11:49 pm
Author: CaNNon
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.

PostPosted: Wed Jan 23, 2008 12:07 am
Author: spaniel
Should I run the scan again then?

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

PostPosted: Wed Jan 23, 2008 12:15 am
Author: CaNNon
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!

PostPosted: Wed Jan 23, 2008 12:20 am
Author: spaniel
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]

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

PostPosted: Wed Jan 23, 2008 12:29 am
Author: CaNNon
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.

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

PostPosted: Wed Jan 23, 2008 1:51 am
Author: obiku
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

PostPosted: Wed Jan 23, 2008 9:07 am
Author: spaniel
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.

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

PostPosted: Wed Jan 23, 2008 7:10 pm
Author: spaniel
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]

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

PostPosted: Thu Jan 24, 2008 9:43 pm
Author: spaniel
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>

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

PostPosted: Fri Jan 25, 2008 10:44 am
Author: DjPorkchop
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.