Hello,

I've upgraded to drupal 6.19 and I can't access to agreservations settings the error displayed View settings
Agreservations settings. I was using a development version of agreservations of July 2010, but I've upgraded to 6.x-3.0-beta3 and the error is the same. ¿Some idea?

Thanks!

CommentFileSizeAuthor
#4 agreservations.png194.1 KBdavidam
#4 modules.tgz23.07 KBdavidam

Comments

agill’s picture

Hello,

i think the problem is the following:
in the function agreservations_menu() {
$admin = array('administer Agreservations');
.
.
.

it should be: $admin = array('configure agreservations');
instead. (refresh cache after changing) and is already in the newest version.

i will take more time testing with different users/roles/permissions in future,
as the project becomes more complex. More testing time is needed, and more testers...

To make the initial setup easier i already created a little installationprofile packed together
with all necessary modules inside the package. They will get activated according to the installprofile.
However it takes a while and the best is to deactivate any executiontime limitations prior to installing.
it can be downloaded here.

davidam’s picture

Hello!

I've tested it and the problem persist. I'm testing the module with the superadmin user.

Thanks for your answer!

agill’s picture

Version: 6.x-3.0-beta3 » 6.x-4.x-dev

You mean you are getting an
"Access denied" error while logged in as user with uid == 1?
which of the onlineform modules for agreservations do you have activated,
agres_onlineform or agres_onlineformj? I am sorry but i don´t fully understand,
maybe attaching a screenshot + a list of enabled modules can help me to understand the problem.
Is switching to version 6.x-4.x-dev an option?

davidam’s picture

StatusFileSize
new23.07 KB
new194.1 KB

No, I can access to agreservations settings, but it's empty. I'm attaching a screenshot and the list of modules installed in html.

davidam’s picture

I've upgraded to 6.x-4.x-dev and the problem is the same, but now I've lost my old configuration.

agill’s picture

i guess i found the bug its there since the 6.x-3.0-beta3 release.
i made another commit to the 6.x-4.x-dev version, meaning the next
dev snapshot which will be created automatically should not contain
this error anymore.

davidam’s picture

I continue with the problem ...

agill’s picture

With only the agreservations core module enabled, the only
configuration setting that can be made is the on and off of the autocreation of
nodes of type agreservation_unit_info for each created reservation. This normally makes sense only together
in conjunction with a setup like on the hoteldemo site i made.

If you only need the agreservation core module to make reservations and a display of the reservations to see which resource/unit is reserved/occupied at a certain time without
any payment solution and thus without the ubercartmodules + agres_bookings and agres_onlineform or agres_categories like in your case,(according to the modulelist you suplied), you can´t make any additional configurations under admin/settings/agreservations.

The project now has reached a point of complexity where i simply have to take myself the time to make things more clear and understandable by providing descriptions to the different modules of the project and how they are intended to be used. Especially since there are about 3 more sub-modules that will make their way into agreservtions providing seasonal rates, and timerestrictions (timerestrictions kindly given to me by AmazeeLabs a suiss company)

davidam’s picture

I'm sorry by my not answer, after to read your reply I did understand better the behaivour of the module and I can say that this issue is fixed.

agill’s picture

Status: Active » Fixed

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.