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

manuelBS’s picture

Version: 7.x-2.0-beta2 » 7.x-2.0-beta6

Can you please check the latest version beta6 that was just published 5 minutes ago.

Cheviot’s picture

Beta6 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!

Cheviot’s picture

Assigned: Cheviot » Unassigned
vistree’s picture

Hi Manuel,
same problem here: upgrade to stable 7.x-2.0 and get the same error on calendar view.

Cheviot’s picture

I'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)

gifthorse’s picture

Version: 7.x-2.0-beta6 » 7.x-2.0

Same here.

Cheviot’s picture

Manuel,
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.

TSniper’s picture

Hello,

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).

manuelBS’s picture

I cannot reproduce it. Does this happen on any access to the calendar after a fresh installation?

gsomething’s picture

It 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

a.m.nouby’s picture

it'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

z-digital’s picture

Fresh 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.

Cheviot’s picture

Maybe 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.

Cheviot’s picture

All 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?

manuelBS’s picture

Sorry I have no experience running ERPAL with memcache. Somebody else who can confirm it?

erpmacher’s picture

Hi, 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