| Project: | Agreservations |
| Version: | 7.x-2.x-dev |
| Component: | Code |
| Category: | bug report |
| Priority: | major |
| Assigned: | softnet |
| Status: | active |
Issue Summary
Hi, I am trying out agreservations under Drupal 7.9. In my installation I was careful with the calendar installation as I notice that you have a fork from the original, so I allowed agreservations to choose what it wanted out of calendar. I followed your written instructions and at the same time your video to make sure that there were no errors in installation - although in order to set up rate and time frame in order to allow me to set up a unit type. Finally I had 3 rooms set up and went to the calendar. Got a Fatal error :
Fatal error: Class 'calendar_plugin_row_node' not found in C:\wamp\www\agreservations\sites\all\modules\agreservations\agres_views\includes\agres_views_plugin_row_node.inc on line 24
Is there any resolution to this?
More details of the installation process at http://drupal7-hbblog.blogspot.com/
Thanks
Paul
Comments
#1
what do you mean with :
?
calendar module needs to be enabled for agres_views to work.
#2
there still is alot of commented out code from the calendar modules extended class
of the views_plugin_row, the calendar_plugin_row_node which your error message suggest cant be found
in your installation.
There was a time when after the calendar module changes completely a few months back all
my preprocessor functions stopped working. i decided to be save from massive changes in future
by forking the calendar module...but then i decided that it was better rely on the calendar module and to just extend the calendar classes.
but that part still is not very clean as you can see a lot of commented out code.
Basically i am surprised by the errorcode you describe. it suggest, that the class calendar_plugin_row_node
which is extened to agres_views_plugin_row_node by agres_views can not be found....so is the calendar module not installed? on the other hand in the info file of agres_views there is the line:
dependencies[] = calendar
so calendar module should be installed. Try installing again the calendar module maybe.
To really know whats going on i would need a snapshot of your drupaldatabase.
Andreas
#3
Hi Andreas,
Thank you for your quick response!
Calendar was installed.
I tried uninstalling it and re-installing, but this made no difference to the error.
I am attaching a zip file with my database and a screenshot of installed modules.
Hope this helps.
Regards
Paul
#4
after installing a drupal with the modules you have installed and
after importing your db snapshot, i had the exact same error.
I then saw that 5 updates where still pending. so i ran the update.php script.
after that the error message went away and i was able to see the bookingcalendar.
same thing occured without running update.php and just disabling and reenabling
agres_views. i guess cleaning the drupal cache would have had the same result.
#5
Hi Andreas,
Thanks for taking the time to look into my problem. Unfortunately I was not as fortunate as you were. It appears that the only pending update was views (a security update).
I disabled and reenabled agres_views.
I cleared the cache twice - still got the error
I disabled agreservations and ubercart in order to disable views and updated it from 3,0-RC1 to 3,0-RC3, re-activated ubercart and agreservations but still got the same error. Today I will try a fresh install (unless you have any other suggestions!)
Regards Paul
#6
Hello Paul,
i think it makes sense, that i had 5 pending updates and you only 1.
it means that the versions of the installed drupal modules i am using here on my system are newer
than yours.
could you zip your modules folders aswell? that way i would have the
exact drupal installation that you have.
but first, try installing a newer version of your calendar module.
my guess is, that your calendar module is of version < 7.x-2 but >7.x-3.x is
needed. thats why there is no calendar_plugin_row_node class found...because
it is not there in the calendar module you are using.
#7
Hi again,
When I re-installed, I found that the version of Calendar that I had been using was an old one. I have updated to the current version (part of the problem was that Drupal did not do the update although it said that it had!) With the current version (3.0 alpha1), The fatal error has gone away both in the original installation and in the new installation, but I still have the following error:
Notice: Undefined index: access in agres_views_menu_local_tasks_alter() (line 713 of C:\wamp\www\agres\sites\all\modules\agreservations\agres_views\agres_views.module).
In the new installation I have not done any installation of rooms, but in the previous one I have. The calendar shows but as you can see from the attached file, still has some problems.
#8
with your DB snapshot i should have been able to see the same behavior like on
your screenshot. But i can not reproduce the behavior. So i guess there are more problems
like only the wrong version of calendar module...you should use your new drupal installation
together with the newest versions of views, ctools,...
for this kind of problems i am working on a distribution which contains all the necessary modules
tested to work together.
*edit*you should also use 7.x-3.x-dev version of calendar as there are some slight problems
with the alpha from august, which seem to be solved in the latest dev version.
#9
Hi Andreas,
I have now checked all of the modules installed in the fresh installation. The only one that I needed to change (apart from changing calendar to the dev version ) was Internationalization which must have been upgraded in the last week or so. My current installation is as follows:
Internationalization : must have been updated since I visited there a few days ago! Version 7.x-1.2
Views 7.x-3.0-rc3 Up to date
Ubercart 7.x-3.0-rc2 Up to date
Rules 7.x-2.0 up to date
Variable 7.x -1.1 up to date
Entitiy 7.x-1.0-rc1 up to date
Token 7.x-1.0-beta 7 up to date
colorbox 7.x-1.2 up to date
references 7.x-2.0-beta3 up to date
date 7.x-2.0-alpha4 up to date
calendar 7.x-3.0-dev up to date
Ctools 7.x-1.0-rc1 up to date
agreservations 7.x-1.0-alpha2 up to date
Still no calendar!
#10
i was using the dev version of the date module, like KarenS suggest on her Project site for the Date module.
there is now a fresh alpha5 version out for the date module.
After i installed it the notice error with the undefined index: 'access' was gone and
the different tabs for month, week, day, year become visible.
with the dev version i was using (like suggested by the module maintainer) i did not
have the error.
So if you use the newest date modules alpha release, or the dev release the error should
be solved. However the picture of your bookingcalendar still looks very strange and
on my system even if i install the wrong date module to reproduce your
notice: undefined index error, i still can see the bookingcalendar how it should
look like and not like in your screenshot.
try the new date module and see if the calendar looks right...if not i have no further
ideas on whats wrong in your setup....try looking at the D7 requirements regarding
php.ini settings, php version, and so on...
i
*edit* in the internetexplorer the bookingcalendar looks not right...going to solve the problem.
i guess thats just plain html and css problems with IE9.
#11
Thanks, I'll give that a try. I had a look at the calendar module and I notice that while the errors continue show, if I use the agres/week instead of month, it looks better. For me, this implies that the problem is with the agres code possibly and not the setup. Will try the alpha 5 date module and see if that helps.
#12
...i used safari and ie and the month view is really messed up.
i am currently repairing the according templates, so in the end this issue
will result in a new alpha release that hopefully will look the same on all browsers.
thanks for your testing! i will hopefully have this solved in a few hours.
#13
OK, I've installed Date alpha5 and the errors have gone away. The problem is definitely with the month view as the week (depicted as day in error) and month view work fine. The day view seems to have a template error, but this may be because I have not added any rooms yet. See attached files
#14
Actual Day view
#15
i solved the display problems for the safari and ie9 with the monthview booking calendar.
These bugfixes are inside the 7.x-2.x-dev release.
new alpha versions will follow but due to a mistake i made with git the current
7.x-1.0-alpha3 and 4 versions do not contain the bugfixes yet and will be replaced
by another alpha...
so if you need a quick fix, use the 7.x-2.x-dev version.
*edit* seems like 7.x-1.0-alpha5 finally contains the bugfixes regarding this issue.
#16
Thanks very much!!!!! I have installed your alpha 5 and all four calendars are visible now and appear to be working (incidentally I am on Chrome so this works as well). Appreciate working with such a dedicated developer! Will now follow your second video and get a grasp on how you set up the rooms for booking.
#17
hi,In booking calendar not showing booked details in agreservation module. pls help anyone
thanks in advance!!!!
#18
can you post a screenshot or give more detalis on what is not showing in the bookingcalendar?
#19
I done the 2 3 reservation also it is not reflecting in the booking calendar.pls help me to solve tis.
#20
have you tried to use the alpha5 or the newest dev version?
if so: try to reset the view called bookingcalendar
#21
i tried all 7 version. but i'm not getting wat is the problem..
#22
wat i've to do changes in views of booking calendar..
#23
make sure in the advanced section of the edit page of the view, the booking dates are selected as arguments
and not the update dates.
make sure if you are not logged in as user 1, that the permissions are set correctly.
make sure you are using the right versions of the modules agreservations depends on:
ctools, views, calendar, ....(the newest dev versions should work)
it could be alot of reasons thats causing the bookings not to show up.
but if you follow the instructions and videos on agreservations.com you should get it
to work.
To make it easier i will offer a distribution which will already include the tested with agreservations
working dependend modules in a zip file on agreservations...but currently i am on vacations.
But it will be ready in januar 2012.
#24
oh thanks. i'll check that
#25
i installed all new versions of modules required by agreservation. still i'm not finding solution.
please check my views of booking calendar, availability calendar screenshot
#26
I tested the version of 7.x-1.0-alpha5 on a fresh drupal
without these errors...
i don`t know...
seems like it has to do with the permissions settings.
i don't know if there is a bug i can not look for 1 until january 15.
in your screenshot under the permissions on the edit view page, i see "array" instead
of a correct name of a permission...try changing that.
softnet sounds like a softwaredevelopment company...maybe you can
check out the implementation of the permission hook in agreservations
and apply a patch for the drupal community...or wait until i return after january 14th...
as in another issue another user did: you could just sent a drupal database snapshot + a zip of your modules folder. so i could at least check the exact version thats active and witch modules versions you are using.
until then feliz Año Nuevo.