forum.coppermine-gallery.net

Support => cpg1.4.x Support => Older/other versions => cpg1.4 permissions => Topic started by: domestictuner on September 13, 2009, 03:03:28 am

Title: admin cannot have a user gallery?
Post by: domestictuner on September 13, 2009, 03:03:28 am
i am having an issue upload pictures to my own gallery as an admin. I can upload to created albums but i cannot put them with the user galleries. I need a personal gallery with the rest of the users. Thanks.
if needed the gallery is located at www.ccclassics.org/gallery (http://www.ccclassics.org/gallery)   u/p: bobby1/bobby1   bridged to phpbb 3.0.5
Title: Re: admin cannot have a user gallery?
Post by: onthepike on September 14, 2009, 04:08:17 am
Usually, the admin personal album resides at:

http://www.ccclassics.org/gallery/index.php?cat=10001

However, that user is Anonymous. You may have intentionally created that account, or restricted access within the Group Control Panel (http://coppermine-gallery.net/demo/cpg14x/docs/index.htm#group_cp). Or it may be an issue related to your bridging your forum. I don't know how you have your settings configured, so I'll leave you with this and defer to those with more experience.
Title: Re: admin cannot have a user gallery?
Post by: domestictuner on September 14, 2009, 07:00:53 am
i did not intentionally create an anonymous account, that i know of. i am bridged to phpbb 3.0.5 but there didnt seem to be many options to choose during the bridging. attached is my group settings
Title: Re: admin cannot have a user gallery?
Post by: domestictuner on September 14, 2009, 07:08:50 am
if it matters, my admin account seems to be user #2 on the forum.  (memberlist.php?mode=viewprofile&u=2)   could that be the problem?

sorry for hitting the check and x buttons i thought one of them was an edit button...
Title: Re: admin cannot have a user gallery?
Post by: Joachim Müller on September 14, 2009, 04:18:55 pm
if it matters, my admin account seems to be user #2 on the forum.  (memberlist.php?mode=viewprofile&u=2)   
Then it's http://www.ccclassics.org/gallery/index.php?cat=10002

Title: Re: admin cannot have a user gallery?
Post by: domestictuner on September 15, 2009, 04:15:07 am
logged in with my admin account
-in admin mode,  hit upload file, i can upload a photo then it takes me to choose album, all i can choose is my test album, the only album i have created
-in user mode, hit upload file, i get "error :Sorry there is no album where you are allowed to upload files" then click the "create/order my albums" button it shows "error: You don't have permission to access this page."
-it still shows me as being logged on.

logged in with my test user i can upload only to its personal album.

Title: Re: admin cannot have a user gallery?
Post by: onthepike on September 15, 2009, 04:40:36 am
Have you tried Batch Upload files? Is there any difference?
Title: Re: admin cannot have a user gallery?
Post by: domestictuner on September 16, 2009, 01:39:16 am
the same, it will only let me choose the created test gallery
Title: Re: admin cannot have a user gallery?
Post by: Joachim Müller on September 16, 2009, 01:08:21 pm
Log in as admin, go your groups control panel and make sure that the admin group is allowed to upload to personal galleries as well as public ones. Attach a screenshot of that screen if you think that you did everything right but things still don't work as expected.
Title: Re: admin cannot have a user gallery?
Post by: domestictuner on September 20, 2009, 10:43:55 pm
i have attached that in post #3.
Title: Re: admin cannot have a user gallery?
Post by: Joe Carver on September 20, 2009, 10:55:43 pm
Your album bobby1 now has a small .gif  I have uploaded with no problems.
Title: Re: admin cannot have a user gallery?
Post by: domestictuner on September 23, 2009, 12:43:04 am
bobby1 is not an admin account, it is only a test account.
Title: Re: admin cannot have a user gallery?
Post by: lurkalot on September 23, 2009, 10:03:52 am
i did not intentionally create an anonymous account, that i know of. i am bridged to phpbb 3.0.5 but there didnt seem to be many options to choose during the bridging. attached is my group settings

Looking at your attached pic of group settings, you have no space allocated for admin to upload to in the quota box.  Registered users have 5000 kb  Admin has nothing.  Could this be the reason?
Title: Re: admin cannot have a user gallery?
Post by: onthepike on September 23, 2009, 10:10:12 am
Usually, "0" indicates unlimited.

For whatever reason, your User Pictures section doesn't conform to what I have seen in the past (not an actual indication of right or wrong, just differently configured). It's difficult to tell, because you have forum integration as well as a host of bot and spider registrations occupying what would usually be member galleries with the associated gallery directory identification number. Examples:

Admin http://www.ccclassics.org/gallery/albums/userpics/10001/ http://www.ccclassics.org/gallery/index.php?cat=10001
User 2 http://www.ccclassics.org/gallery/albums/userpics/10002/ http://www.ccclassics.org/gallery/index.php?cat=10002
User 3 http://www.ccclassics.org/gallery/albums/userpics/10003/  http://www.ccclassics.org/gallery/index.php?cat=10003
And so on... all not found returning a 404 error.

However, your gallery appears to have all users dumping their individual files directly into http://www.ccclassics.org/gallery/albums/userpics/

As admin, your User Directory (which is usually 10001, but in your case, 10002) is located at http://www.ccclassics.org/gallery/albums/userpics/10002/ (http://www.ccclassics.org/gallery/index.php?cat=10002) but doesn't appear to exist. And if Coppermine is looking for that folder to place your User pictures into, and can't find it, and can't create it, that might be your problem. I don't know.

I would first try creating that directory and setting appropriate permissions (begin with 755, then 777). Then, see if you can upload pictures into your User Pics gallery.
Title: Re: admin cannot have a user gallery?
Post by: Joachim Müller on September 23, 2009, 10:46:32 am
However, your gallery appears to have all users dumping their individual files directly into http://www.ccclassics.org/gallery/albums/userpics/

As admin, your User Directory (which is usually 10001, but in your case, 10002) is located at http://www.ccclassics.org/gallery/albums/userpics/10002/ (http://www.ccclassics.org/gallery/index.php?cat=10002) but doesn't appear to exist. And if Coppermine is looking for that folder to place your User pictures into, and can't find it, and can't create it, that might be your problem. I don't know.

I would first try creating that directory and setting appropriate permissions (begin with 755, then 777). Then, see if you can upload pictures into your User Pics gallery.
Happens if you enable "silly_safe_mode". As a webserver with safe_mode enabled sometimes (if the webserver isn't configured properly) is not able to create sub-folders, this is what "silly_safe_mode" does: it disables the creation of individual folders for each user. Subsequently, all http uploads directly go into http://example.com/coppermine_folder/albums/userpics/, which is fine as long as you have only a few, but will get critical if you have several hundreds of pics uploaded. http://www.ccclassics.org/gallery/ currently contains only 115 uploaded files and therefore should not be affected. However, I suggest checking if you actually have safe_mode on your server.
Title: Re: admin cannot have a user gallery?
Post by: domestictuner on September 24, 2009, 12:15:12 am
Happens if you enable "silly_safe_mode". As a webserver with safe_mode enabled sometimes (if the webserver isn't configured properly) is not able to create sub-folders, this is what "silly_safe_mode" does: it disables the creation of individual folders for each user. Subsequently, all http uploads directly go into http://example.com/coppermine_folder/albums/userpics/, which is fine as long as you have only a few, but will get critical if you have several hundreds of pics uploaded. http://www.ccclassics.org/gallery/ currently contains only 115 uploaded files and therefore should not be affected. However, I suggest checking if you actually have safe_mode on your server.

"silly_safe_mode" is this mode something that could have been activated during bridging with phpbb 3.0.5 and something i can change or is this something i need to discuss with my host?
Title: Re: admin cannot have a user gallery?
Post by: Joe Carver on September 24, 2009, 12:46:08 am
First - Login >> Admin Tools >> Display phpinfo

You can then see for sure if any safe_mode(s) are enabled.

Your host might be able to help
Or
Check this thread: http://forum.coppermine-gallery.net/index.php?topic=5845.0


Title: Re: admin cannot have a user gallery?
Post by: domestictuner on September 24, 2009, 04:57:31 am
First - Login >> Admin Tools >> Display phpinfo

this is what i get, i am logged in.
Title: Re: admin cannot have a user gallery?
Post by: Joe Carver on September 24, 2009, 05:16:11 am
Wow
Something is wrong if you get a blank page.

Maybe you can also get the information if you turn on debug, but I am stuck why that does not work.
Title: Re: admin cannot have a user gallery?
Post by: domestictuner on September 24, 2009, 06:25:47 am
Wow
Something is wrong if you get a blank page.

Maybe you can also get the information if you turn on debug, but I am stuck why that does not work.

i can see the debug info, i also have this showing in "notices"
/bridge/udb_base.inc.php

    * Notice line 149: Undefined property: cpg_udb::$multigroups

/include/functions.inc.php

    * Notice line 2696: Undefined variable: i
    * Warning line 2262: phpinfo() has been disabled for security reasons
    * Warning line 2262: phpinfo() has been disabled for security reasons
    * Warning line 2366: phpinfo() has been disabled for security reasons
    * Warning line 2366: phpinfo() has been disabled for security reasons
    * Warning line 2366: phpinfo() has been disabled for security reasons
    * Warning line 2366: phpinfo() has been disabled for security reasons
    * Warning line 2366: phpinfo() has been disabled for security reasons
    * Warning line 2366: phpinfo() has been disabled for security reasons
    * Warning line 2366: phpinfo() has been disabled for security reasons
    * Warning line 2366: phpinfo() has been disabled for security reasons
    * Warning line 2366: phpinfo() has been disabled for security reasons
    * Warning line 2366: phpinfo() has been disabled for security reasons
    * Warning line 2366: phpinfo() has been disabled for security reasons
    * Warning line 2366: phpinfo() has been disabled for security reasons
    * Warning line 2366: phpinfo() has been disabled for security reasons
    * Warning line 2366: phpinfo() has been disabled for security reasons
    * Warning line 2366: phpinfo() has been disabled for security reasons
    * Warning line 2366: phpinfo() has been disabled for security reasons
    * Warning line 2366: phpinfo() has been disabled for security reasons
    * Warning line 2366: phpinfo() has been disabled for security reasons
Title: Re: admin cannot have a user gallery?
Post by: domestictuner on September 24, 2009, 06:30:38 am
This is the tailend of the debug info, it mentions safe mode but doesn't appear to have the values listed.

==========================
VERSION INFO :
------------------
PHP version: 5.2.10 - OK
------------------
mySQL version: 5.0.81-community
------------------
Coppermine version: 1.4.25(stable)
==========================
Module: GD
------------------
GD Version: bundled (2.0.34 compatible)
FreeType Support: 1
FreeType Linkage: with freetype
T1Lib Support:
GIF Read Support: 1
GIF Create Support: 1
JPG Support: 1
PNG Support: 1
WBMP Support: 1
XPM Support: 1
XBM Support: 1
JIS-mapped Japanese Font Support:

==========================
Module: mysql
------------------
module doesn't exist
==========================
Module: zlib
------------------
module doesn't exist
==========================
Server restrictions (safe mode)?
------------------
Directive | Local Value | Master Value |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
==========================
email
------------------
Directive | Local Value | Master Value |  |  |  |  |  |  |  |
==========================
Size and Time
------------------
Directive | Local Value | Master Value |  |  |  |  |  |  |  |
==========================
Page generated in 0.037 seconds - 14 queries in 0.001 seconds - Album set : ; Meta set: ;
Title: Re: admin cannot have a user gallery?
Post by: Joachim Müller on September 24, 2009, 07:46:24 am
Your webhost appears to have disabled phpinfo and all subsequent information. Ask them (your webhost) how to retrieve the data then alternatively. It's very likely that your webhost has applied other security-related restrictions that have an impact on your gallery. Demand to know what they did exactly (in comparison to a vanilla PHP install).
Title: Re: admin cannot have a user gallery?
Post by: domestictuner on September 27, 2009, 02:46:31 am
i have found the phpinfo, is there any particular values i am looking for other than the safe modes?

in PHP Core:

safe_mode   Off   Off
safe_mode_exec_dir   no value   no value
safe_mode_gid   Off   Off
safe_mode_include_dir   no value   no value

in standard:

safe_mode_allowed_env_vars   PHP_   PHP_
safe_mode_protected_env_vars   LD_LIBRARY_PATH   LD_LIBRARY_PATH

Thank you for your help.
Title: Re: admin cannot have a user gallery?
Post by: Joachim Müller on September 27, 2009, 11:38:33 am
Well, seems like you don't have safe_mode enabled PHP-sided, so it's bad that you have enabled silly_safe_mode coppermine sided. You shouldn't have done so in the first place. I'm not sure that what happens if you just turn it off (quite frankly: I have never tried). Try for yourself and report back please.
Title: Re: admin cannot have a user gallery?
Post by: domestictuner on September 27, 2009, 11:34:11 pm
Well, seems like you don't have safe_mode enabled PHP-sided, so it's bad that you have enabled silly_safe_mode coppermine sided. You shouldn't have done so in the first place. I'm not sure that what happens if you just turn it off (quite frankly: I have never tried). Try for yourself and report back please.

should i delete the silly safe mode entry or change the constant to 0?
Title: Re: admin cannot have a user gallery?
Post by: Joachim Müller on September 27, 2009, 11:38:06 pm
Comment it out by putting two slashes in front of it.
Title: Re: admin cannot have a user gallery?
Post by: domestictuner on September 28, 2009, 06:33:05 am
commented out, no change to issue

in debug mode this notice is displayed
/bridge/udb_base.inc.php

    * Notice line 149: Undefined property: cpg_udb::$multigroups
Title: Re: admin cannot have a user gallery?
Post by: Joachim Müller on September 28, 2009, 10:27:46 am
Leave notices_display turned off unless you're a coder and know what the notices mean
Title: Re: admin cannot have a user gallery?
Post by: domestictuner on October 01, 2009, 12:58:07 am
any other ideas?
Title: Re: admin cannot have a user gallery?
Post by: Joachim Müller on October 01, 2009, 07:34:48 am
I don't know: the gallery http://www.ccclassics.org/gallery/ is in maintenance mode, so there's little left for us to do.