Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I use fullcalender alpha 7 in combinations with entity attach views.
When buidling my view i receive an error saying.
Notice: Undefined offset: 0 in fullcalendar_check_arguments() (regel 221 van sites/all/modules/contrib/fullcalendar/theme/theme.inc).
Changing and checking variables fixes this.
else {
$args[] = $view->args[$position];
}
else {
if(isset($view->args[$position])){
$args[] = $view->args[$position];
}
}
Comment | File | Size | Author |
---|---|---|---|
#31 | fullcalendar.1319718.patch | 507 bytes | dagmar |
#18 | view-fullcalendar.txt | 76.09 KB | Ganganation |
#14 | argument-fix.diff | 809 bytes | aspilicious |
#11 | kalender.tar_.gz | 32 KB | mallezie |
#9 | dsmhandler.png | 317.55 KB | mallezie |
Comments
Comment #1
malleziePatch attached
Comment #2
aspilicious CreditAttribution: aspilicious commentedFirst of all, hello Tim :).
Hmm I'm not sure this is the correct patch...
Could you provide the values (or a screenshot) from the $view->argument and $view->args array? (devel output)
(try the awesomescreenshot plugin for chrome)
If I understand this error, the $view->argument array isn't empty but $view->args is.
Thnx!
Comment #3
mallezieYour understanding of the error is correct. I don't know if it's the right solution, but it hides the error, and does not break anything ;-)
requested screenshot attached
Comment #4
aspilicious CreditAttribution: aspilicious commentedHmm I need one more dpm. Could you place dpm($handler) in the foreach.
I maybe have a better patch...
Comment #5
malleziescreenshot attached
Comment #6
aspilicious CreditAttribution: aspilicious commentedThis patch preserves the arguments.
Can you give this a try?
Comment #7
tim.plunkett@mallezie,
Can you paste (http://paste.pocoo.org/) an export of your view? I'd really like to recreate this myself and debug it, changing that code might break other things in strange ways, I just want to be sure.
Comment #8
malleziedoesn't seem to work.
I attached a screenshot with
dpm($handler)
after else.dpm($handler)
doesn't seem to have an argument.Shouldn't it be
Comment #9
mallezieand with screenshot ;-)
Comment #10
aspilicious CreditAttribution: aspilicious commentedYeah it needs the isset.
Thnx for all the info. If you can export the view for tim.plunkett (see #7) we will fix this as soon as possible.
Comment #11
mallezieI've exported two views.
First create's list of entity's with calenders attached.
Second one is calender view (which is attached to first view ;-)
http://paste.pocoo.org/show/497948/
I've attached a (untested) feature with the necessary content type and view, if that's easier.
Something i found, which i don't know if it's related. Is that the css files aren't loading correctly when ajax is used in one of the views.
(The attachment is a tar, renamd tot tar.gz cause of extension filtering)
Comment #12
tim.plunkettEven with the entire feature, I still could not reproduce the bug.
As with the other issue, thanks for the bug report. If you continue to have this problem and can provide more information to reproduce, please reopen the issue.
Comment #13
aspilicious CreditAttribution: aspilicious commentedOpening again due to #1333786: Fullcallendar error check_arguments()
Comment #14
aspilicious CreditAttribution: aspilicious commentedComment #15
Ganganation CreditAttribution: Ganganation commentedThanks aspilicious for putting me on the right track.
I've seen this problem/page before but didn't identify it as the same issue.
Tried the argument-fix, that works, only problem is that right now it doesn't show any data (that could also be my settings off-course).
I will try to create a new view, let's see if it works right than.
Comment #16
Ganganation CreditAttribution: Ganganation commentedCreated the new view, data will only display without the fullcalendar format.
What can I do?
Thanks in advance :D
Comment #17
aspilicious CreditAttribution: aspilicious commentedExport your view and settings needed for the view
Comment #18
Ganganation CreditAttribution: Ganganation commentedThis is the exported view (see attachement), where can I find the needed settings for the view?
Comment #19
aspilicious CreditAttribution: aspilicious commentedWhat version of views/ctools are you running?
Comment #20
Ganganation CreditAttribution: Ganganation commentedViews: 7.x-3.0-rc1
Ctools: 7.x-1.0-rc1
Comment #21
aspilicious CreditAttribution: aspilicious commentedHmm No time to dig deeper now.
Maybe Tim can find the damn error
Comment #22
Ganganation CreditAttribution: Ganganation commentedThanks for your time aspelicious, I hope Tim can find anything.
I will be looking as well ;)
Comment #23
Ganganation CreditAttribution: Ganganation commentedI at least got my data back (not a solution for this problem)
I removed the module completely.
1. I disabled the module
2. I went to uninstall the module
3. Empty all cashes
After that I did a check for available updates and it showed me the update for fullcalendar (strange...)
I installed that and after that empty all cashes. And that worked!
Comment #24
Ganganation CreditAttribution: Ganganation commentedAfter I applied the #14 patch it still displayed an error:
Notice: Undefined property: date_views_argument_handler_simple::$argument in fullcalendar_check_arguments() (regel 227 van /home/deb32896/domains/egs-sneek.nl/public_html/sites/all/modules/fullcalendar/theme/theme.inc).
Notice: Undefined property: date_views_argument_handler_simple::$argument in fullcalendar_check_arguments() (regel 228 van /home/deb32896/domains/egs-sneek.nl/public_html/sites/all/modules/fullcalendar/theme/theme.inc).
After looking around a little I found the following simple solution:
- if ($date_handler) {
+ if (isset($date_handler->argument)) {
And that worked :D Hope this helps!
Comment #25
tim.plunkett@Ganganation please try with Views RC3 and the latest dev of fullcalendar. Sorry that you are still having this problem.
Comment #26
tim.plunkettComment #27
Ganganation CreditAttribution: Ganganation commentedAfter updating to beta 2, I got the same errors, after applying patch #14 & my own fix #24 the problem was fixed again.
Hope this helps.
Comment #28
RuiMendes CreditAttribution: RuiMendes commentedalso happend to me.
applying both patches worked.
Comment #29
Ganganation CreditAttribution: Ganganation commentedStill not fixed! After updating fullcallendar the same problem appears again, applying fix #14 & #24 will clear the problems.
Comment #30
Dean Mortimer CreditAttribution: Dean Mortimer commentedJust ran across this problem as well:
Undefined offset: 0 in fullcalendar_check_arguments() (line 689 of E:\wamp\www\drupal-7.9\sites\all\modules\fullcalendar\includes\fullcalendar.fullcalendar.inc).
I've turned off AJAX in the view for now as a workaround.
Comment #31
dagmarI can reproduce this bug.
For example, when using Taxonomy Term as an argument, when no argument is provided, $view->args is empty.
This patch fix the problem.
Comment #32
tim.plunkettThis function has been completely removed in #1206742: Contextual filters break Ajax views: Ajax date arguments should be replaced with hidden exposed filters