Erpal log shows index errors such as 'undefined index' after a fresh install but upon creating a datum item this disappears for a while but after some times browsing to 'home' it appears again. The error is added each time when browsing to 'home' while no item exists. This is a minor issue, erpal works fine.
Version used erpal-7.x-2.0-beta5-core without updating any modules (installed and used 'as is'), 7.x-1.0-alpha1 modules are not added
On installing Erpal and later when a datum item exists:
https://../fullcalendar/ajax/results/full_calendar/block_1/
Notice: Undefined index: date in fullcalendar_views_pre_view() (line 112 of .../profiles/erpal/modules/contrib/fullcalendar/includes/views/fullcalendar.views.inc).
Comments
Comment #1
manuelBS CreditAttribution: manuelBS commentedCan you please check the latest version beta6 that was just published 5 minutes ago.
Comment #2
Cheviot CreditAttribution: Cheviot commentedBeta6 Installed, found same notices in logbook
The entries are only added to the logbook when I go to 'home'
Notice: Undefined index: date in fullcalendar_views_pre_view() (line 112 of /Library/WebServer/Documents/[my-dev-server]/profiles/erpal/modules/contrib/fullcalendar/includes/views/fullcalendar.views.inc).
Overall it looks very good by the way, my compliments!
Comment #3
Cheviot CreditAttribution: Cheviot commentedComment #4
vistree CreditAttribution: vistree commentedHi Manuel,
same problem here: upgrade to stable 7.x-2.0 and get the same error on calendar view.
Comment #5
Cheviot CreditAttribution: Cheviot commentedI'm now on Drupal 7.31 with Install profile ERPAL (erpal-7.x-2.0) and still have the same notices
https://..../fullcalendar/ajax/results/full_calendar/block_1/
Notice: Undefined index: date in fullcalendar_views_pre_view() (line 112 of /.../profiles/erpal/modules/contrib/fullcalendar/includes/views/fullcalendar.views.inc).
Severity notice
It is generated each time twice when I access the home page (my appointments today)
Comment #6
gifthorse CreditAttribution: gifthorse commentedSame here.
Comment #7
Cheviot CreditAttribution: Cheviot commentedManuel,
I have this also on ERPAL (erpal-7.x-2.1) with Drupal 7.32.
Notice: Undefined index: date in fullcalendar_views_pre_view() (line 112 of /Library/WebServer/Documents/[...myserver..]/profiles/erpal/modules/contrib/fullcalendar/includes/views/fullcalendar.views.inc).
In previous versions this would disappear when adding the first calendar item, now it happens consistently.
Comment #8
TSniper CreditAttribution: TSniper commentedHello,
I have the same problem here on the ERPAL calendar :
Notice: Undefined index: date in fullcalendar_views_pre_view() (line 112 of /var/www/vhosts/.../httpdocs/subdomains/erpal/profiles/erpal/modules/contrib/fullcalendar/includes/views/fullcalendar.views.inc).
Comment #9
manuelBS CreditAttribution: manuelBS commentedI cannot reproduce it. Does this happen on any access to the calendar after a fresh installation?
Comment #10
gsomething CreditAttribution: gsomething commentedIt happens upon fresh install immediately for me. I've tried installing minimal config (recomended), and full drupal config (slow).
Type php
Date Thursday, January 8, 2015 - 15:44
User gsomething
Location http://example.com/fullcalendar/ajax/results/full_calendar/block_1/
Referrer http://example.com/
Message Notice: Undefined index: date in fullcalendar_views_pre_view() (line 112 of /profiles/erpal/modules/contrib/fullcalendar/includes/views/fullcalendar.views.inc).
Severity notice
Comment #11
a.m.nouby CreditAttribution: a.m.nouby commentedit's always there, i have tried re-installing the package many times, but still
TYPE php
DATE Saturday, January 10, 2015 - 18:32
USER user
LOCATION http://mysite.com/fullcalendar/ajax/results/full_calendar/block_1/
REFERRER http://mysite.com/
MESSAGE Notice: Undefined index: date in fullcalendar_views_pre_view() (line 112 of /profiles/erpal/modules/contrib/fullcalendar/includes/views/fullcalendar.views.inc).
SEVERITY notice
Comment #12
z-digital CreditAttribution: z-digital commentedFresh install using erpal-7.x-2.x-dev-core (release 2015-Mar-13)
Log error:
Notice: Undefined index: date in fullcalendar_views_pre_view() (line 112 of
/home/ ... /fullcalendar/includes/views/fullcalendar.views.inc)
Have installed prior ERPAL for Service Providers versions and this has been a persistent error. Doesn't seem (don't know for sure) to affect the build.
Great work on your project.
Comment #13
Cheviot CreditAttribution: Cheviot commentedMaybe this note helps identifying some of the "undefined index" warnings.
I had a for a moment a reasonable working installation of the latest Erpal for Service Providers, but still with 'undefined array' warnings. Then I activated memcache. First I though the installation had been 'corrupted' but the strange thing is that these "undefined index" errors are not persistent. It happens and after one or two refreshed, or especially after saving some content, say an edited contact, it disappear. Having memcache off it seems to be fine. Could it be that memcache causes issues with Erpal indexes?
Maybe I'm wrong, but I have never seen this type of "undefined index" notices with drupal commerce, the most I get is a memcache warning. If it is discouraged to use memcache, then let us know. Erpal is great stuff but can be a bit hard to grasp when it trows up errors like this.
Comment #14
Cheviot CreditAttribution: Cheviot commentedAll day working with erpal without memcache and no errors like "undefined index" appeared!! Errors seem memory based not a 'bug' with sql queries
Only the odd 'undefined array' appears but disappeared after saving the edited contact detail. I think some clarity on the use of memcache would be helpful.
In the past I had frequently the same notices for Full Calendar, no any problems seen here either (drupal 7.37 & erpal-7.x-2.2)
Manuel, is there a way to confirm the same experience with memcache?
Comment #15
manuelBS CreditAttribution: manuelBS at Bright Solutions GmbH commentedSorry I have no experience running ERPAL with memcache. Somebody else who can confirm it?
Comment #16
erpmacher CreditAttribution: erpmacher commentedHi, this issue could be caused by fullcalendar.views.inc. I found a patch for a similar problem:
https://www.drupal.org/node/2185449
Then I changed fullcalendar.views.inc manually from line 109 (Look at the $timestamp):
109 // Add an exposed filter for the date field.
110 $field_value_id = $field->real_field . str_replace($field->field, '', $field_id);
111 if (isset($exposed_input[$field_value_id])) {
112 - $timestamp = (strtotime($exposed_input[$field_value_id]['min']['date']) + strtotime($exposed_input[$field_value_id]['max']['date'])) / 2;
113 + $exposed = $exposed_input[$field_value_id];
114 + $min = mktime(0, 0, 0, $exposed['min']['month'], $exposed['min']['day'],$exposed['min']['year']);
115 + $max = mktime(0, 0, 0, $exposed['max']['month'], $exposed['max']['day'],$exposed['max']['year']);
116 + $timestamp = ($min + $max) / 2;
117 $min = date('Y-m', $timestamp);
118 $max = date('Y-m', strtotime($min . ' +1 month'));
The notice is gone now. But because I'm not a developer and my database is empty, I cannot really test this possible solution. Maybe someone will do this for me and will post his results.
Erpal 7.x-3.0-beta2+4-dev
fullcalendar 7.x-2.0
Thx