Hi,
I'm trying to set the permission for some of my gallery3 galleries since RC2 now,
but without of any success.
I tried to analyse the problem myself but get stuck at the place where
"modules\gallery\controllers\permissions.php" function "_get_form($item)"
seams to return something to the "View("permissions_form.html")->permissions"
this can't process.
The query:
SELECT `g3permissions` . * FROM `g3permissions` ORDER BY `g3permissions`.`id` ASC
to the DB gives the following result:
id display_name name
-----------------------------------
1 View view
2 View full size view_full
3 Edit edit
4 Add add
FireBug says that the call:
https://webmail.briobe.de/gallery3/index.php/permissions/form/354
does return just nothing (have a look at the screen-cut).
I can't believe this is a bug, otherwise there would be more people
asking questions around this permissions thing.
Does anybody know what I'm donig wrong?
Think's
Colja
URL: https://webmail.briobe.de/gallery3/index.php
version galery3: Gallery 3.0+ (git)
version PHP: 5.3.2-1ubuntu4
version MySQL: 5.0.75-0ubuntu10.2
version Apache: 2.2.14 (Ubuntu)
operating system: Ubuntu 10.04
web browser: Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.9.1.12) Gecko/20100824 Firefox/3.5.12 (.NET CLR 3.5.30729)
I have full root access to the server.
I'm authenticated to the gallery3 as "admin".
Posts: 52
I am having a permission setting issue after upgrade from R2 and turning on the Wordpress authorisation module. No replies to my posting (see here) yet.
~Andrew~
---
http://Reeves-Hall.net
http://WhitchurchArts.org.uk
http://Whitchurch.org.uk
Posts: 7985
@AndrewRH, your issue is unrelated.
@Colja: what's in your gallery3/var/logs error logs?
---
Problems? Check gallery3/var/logs
bugs/feature req's | upgrade to the latest code | use git
Posts: 4
Hi bharat,
I don't have an error log, but that's what my current log-file says:
#0 /www/htdocs/gallery3/modules/gallery/helpers/access.php(154): ORM_Core->__get('view_3')
#1 /www/htdocs/gallery3/modules/gallery/views/permissions_form.html.php(17): access_Core::group_intent(Object(Group_Model), 'view', Object(Item_Model))
#2 /www/htdocs/gallery3/system/libraries/View.php(318): include('/www/de/briobe/...')
#3 /www/htdocs/gallery3/system/libraries/View.php(260): View_Core->load_view('/www/de/briobe/...', Array)
#4 /www/htdocs/gallery3/modules/gallery/libraries/MY_View.php(69): View_Core->render(false, false, false)
#5 /www/htdocs/gallery3/system/libraries/View.php(226): View->render()
#6 /www/htdocs/gallery3/modules/gallery/views/permissions_browse.html.php(60): View_Core->__toString()
#7 /www/htdocs/gallery3/system/libraries/View.php(318): include('/www/de/briobe/...')
#8 /www/htdocs/gallery3/system/libraries/View.php(260): View_Core->load_view('/www/de/briobe/...', Array)
#9 /www/htdocs/gallery3/modules/gallery/libraries/MY_View.php(69): View_Core->render(false, false, false)
#10 /www/htdocs/gallery3/system/libraries/View.php(226): View->render()
#11 /www/htdocs/gallery3/modules/gallery/controllers/permissions.php(36): View_Core->__toString()
#12 [internal function]: Permissions_Controller->browse('692')
#13 /www/htdocs/gallery3/system/core/Kohana.php(331): ReflectionMethod->invokeArgs(Object(Permissions_Controller), Array)
#14 [internal function]: Kohana_Core::instance(NULL)
#15 /www/htdocs/gallery3/system/core/Event.php(208): call_user_func_array(Array, Array)
#16 /www/htdocs/gallery3/application/Bootstrap.php(67): Event_Core::run('system.execute')
#17 /www/htdocs/gallery3/index.php(97): require('/www/de/briobe/...')
#18 {main}
Does this help anyhow?
Thanks
Colja
Posts: 7985
That's the stack trace but there should be an extra error message in the lines right above that, without those lines it's hard to tell what's wrong.
---
Problems? Check gallery3/var/logs
bugs/feature req's | upgrade to the latest code | use git
Posts: 4
Is it possible to enable/disable the logging?
Could you please give me an example of a error-log-file name, so that I can search ths file system?
Posts: 7985
The easiest thing to do is to delete all the log files in gallery3/var/logs, trigger the bug again and then look in the log file to see what's there.
---
Problems? Check gallery3/var/logs
bugs/feature req's | upgrade to the latest code | use git
Posts: 4
Hi bharat,
I did what you said, you can find the result below.
1.) I have seen this "view_3" error some times before, but it seamed to have no further effect.
2.) The "require('/www/de/briobe/...')" and "include('/www/de/briobe/...')" statements in this log do not.
show the complete path, is this due to logging functins or should this be the correct full path to g3?
This would be the full path to gallery3 "/www/de/briobe/ssl/htdocs/gallery3".
Thanks for your help
Colja
File: 2010-10-26.log.php
----------------------------------------------------------------------------------------------------
<?php defined('SYSPATH') or die('No direct script access.'); ?>
2010-10-26 22:18:20 -07:00 --- error: The view_3 property does not exist in the Access_Intent_Model class
#0 /www/de/briobe/ssl/htdocs/gallery3/modules/gallery/helpers/access.php(154): ORM_Core->__get('view_3')
#1 /www/de/briobe/ssl/htdocs/gallery3/modules/gallery/views/permissions_form.html.php(17): access_Core::group_intent(Object(Group_Model), 'view', Obje
ct(Item_Model))
#2 /www/de/briobe/ssl/htdocs/gallery3/system/libraries/View.php(318): include('/www/de/briobe/...')
#3 /www/de/briobe/ssl/htdocs/gallery3/system/libraries/View.php(260): View_Core->load_view('/www/de/briobe/...', Array)
#4 /www/de/briobe/ssl/htdocs/gallery3/modules/gallery/libraries/MY_View.php(69): View_Core->render(false, false, false)
#5 /www/de/briobe/ssl/htdocs/gallery3/system/libraries/View.php(226): View->render()
#6 /www/de/briobe/ssl/htdocs/gallery3/modules/gallery/views/permissions_browse.html.php(60): View_Core->__toString()
#7 /www/de/briobe/ssl/htdocs/gallery3/system/libraries/View.php(318): include('/www/de/briobe/...')
#8 /www/de/briobe/ssl/htdocs/gallery3/system/libraries/View.php(260): View_Core->load_view('/www/de/briobe/...', Array)
#9 /www/de/briobe/ssl/htdocs/gallery3/modules/gallery/libraries/MY_View.php(69): View_Core->render(false, false, false)
#10 /www/de/briobe/ssl/htdocs/gallery3/system/libraries/View.php(226): View->render()
#11 /www/de/briobe/ssl/htdocs/gallery3/modules/gallery/controllers/permissions.php(36): View_Core->__toString()
#12 [internal function]: Permissions_Controller->browse('420')
#13 /www/de/briobe/ssl/htdocs/gallery3/system/core/Kohana.php(331): ReflectionMethod->invokeArgs(Object(Permissions_Controller), Array)
#14 [internal function]: Kohana_Core::instance(NULL)
#15 /www/de/briobe/ssl/htdocs/gallery3/system/core/Event.php(208): call_user_func_array(Array, Array)
#16 /www/de/briobe/ssl/htdocs/gallery3/application/Bootstrap.php(67): Event_Core::run('system.execute')
#17 /www/de/briobe/ssl/htdocs/gallery3/index.php(97): require('/www/de/briobe/...')
#18 {main}
2010-10-26 22:18:44 -07:00 --- error: The view_3 property does not exist in the Access_Intent_Model class
#0 /www/de/briobe/ssl/htdocs/gallery3/modules/gallery/helpers/access.php(154): ORM_Core->__get('view_3')
#1 /www/de/briobe/ssl/htdocs/gallery3/modules/gallery/views/permissions_form.html.php(17): access_Core::group_intent(Object(Group_Model), 'view', Object(Item_Model))
#2 /www/de/briobe/ssl/htdocs/gallery3/system/libraries/View.php(318): include('/www/de/briobe/...')
#3 /www/de/briobe/ssl/htdocs/gallery3/system/libraries/View.php(260): View_Core->load_view('/www/de/briobe/...', Array)
#4 /www/de/briobe/ssl/htdocs/gallery3/modules/gallery/libraries/MY_View.php(69): View_Core->render(false, false, false)
#5 /www/de/briobe/ssl/htdocs/gallery3/system/libraries/View.php(226): View->render()
#6 /www/de/briobe/ssl/htdocs/gallery3/modules/gallery/controllers/permissions.php(49): View_Core->__toString()
#7 [internal function]: Permissions_Controller->form('420')
#8 /www/de/briobe/ssl/htdocs/gallery3/system/core/Kohana.php(331): ReflectionMethod->invokeArgs(Object(Permissions_Controller), Array)
#9 [internal function]: Kohana_Core::instance(NULL)
#10 /www/de/briobe/ssl/htdocs/gallery3/system/core/Event.php(208): call_user_func_array(Array, Array)
#11 /www/de/briobe/ssl/htdocs/gallery3/application/Bootstrap.php(67): Event_Core::run('system.execute')
#12 /www/de/briobe/ssl/htdocs/gallery3/index.php(97): require('/www/de/briobe/...')
#13 {main}
2010-10-26 22:18:53 -07:00 --- error: The view_3 property does not exist in the Access_Intent_Model class
#0 /www/de/briobe/ssl/htdocs/gallery3/modules/gallery/helpers/access.php(154): ORM_Core->__get('view_3')
#1 /www/de/briobe/ssl/htdocs/gallery3/modules/gallery/views/permissions_form.html.php(17): access_Core::group_intent(Object(Group_Model), 'view', Obje
ct(Item_Model))
#2 /www/de/briobe/ssl/htdocs/gallery3/system/libraries/View.php(318): include('/www/de/briobe/...')
#3 /www/de/briobe/ssl/htdocs/gallery3/system/libraries/View.php(260): View_Core->load_view('/www/de/briobe/...', Array)
#4 /www/de/briobe/ssl/htdocs/gallery3/modules/gallery/libraries/MY_View.php(69): View_Core->render(false, false, false)
#5 /www/de/briobe/ssl/htdocs/gallery3/system/libraries/View.php(226): View->render()
#6 /www/de/briobe/ssl/htdocs/gallery3/modules/gallery/controllers/permissions.php(49): View_Core->__toString()
#7 [internal function]: Permissions_Controller->form('1')
#8 /www/de/briobe/ssl/htdocs/gallery3/system/core/Kohana.php(331): ReflectionMethod->invokeArgs(Object(Permissions_Controller), Array)
#9 [internal function]: Kohana_Core::instance(NULL)
#10 /www/de/briobe/ssl/htdocs/gallery3/system/core/Event.php(208): call_user_func_array(Array, Array)
#11 /www/de/briobe/ssl/htdocs/gallery3/application/Bootstrap.php(67): Event_Core::run('system.execute')
#12 /www/de/briobe/ssl/htdocs/gallery3/index.php(97): require('/www/de/briobe/...')
#13 {main}
Posts: 7985
It sounds like something went wrong when creating the group with id 3 in your system. When you go to Admin > Groups, do you have a group other than "Everybody" and "Registered Users"?
I've created a ticket for this problem:
https://sourceforge.net/apps/trac/gallery/ticket/1469
In the meantime, you'll have to create some columns by hand. Try this in mysql:
This assumes that you have no table prefix. If you have one, you have to change the table name as appropriate.
---
Problems? Check gallery3/var/logs
bugs/feature req's | upgrade to the latest code | use git