Closed (fixed)
Project:
Open Deals Drupal Distribution
Version:
7.x-1.0-beta1
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
19 Jan 2012 at 22:05 UTC
Updated:
11 Aug 2013 at 09:44 UTC
Fresh install on Ubuntu 11.04 using
These messages come up after the 95 modules get installed (after it gets to 100%):
The Date API requires that you set up the <a href="/?q=admin/config/regional/settings">site timezone and first day of week settings</a> and the <a href="/?q=admin/config/regional/date-time">date format settings</a> to function correctly.
Status message
Countdown Timer javascript file saved to: public://jstimer/timer.jsError message
Notice: Undefined index: view date repeats in user_role_grant_permissions() (line 3028 of /var/www/modules/user/user.module).
SQLSTATE[23000]: Integrity constraint violation: 1048 Column 'module' cannot be null
I imagine the last one is fatal. Is there a fix in place for this?
Comments
Comment #1
d4v1d21 commentedHave the same problem, then i try to follow an advise to change php.ini configuration Safe Mode=OFF.
Comment #2
matthoov commentedIt looks like something is happening when trying to set permissions for the opendeals_module. I used this patch and was able to get around the failure.
http://drupal.org/files/issues/user_role_grant_permissions.patch
Comment #3
wiifmThat patch simply drops the permissions that are yet not yet available to the system. Also it is a core patch (tisk tisk). I would suggest this would not solve the problem, simply hide it.
When making install profiles in the past, we encountered this same issue, how we got around it was to manually insert into the database the permissions (using db_insert()), rather than using the drupal API. I know this is also not that clean, but it at least guaranteed that the install profile would always work. We were encountering the issue as we were creating content types on install (using features), and the content types did not yet 'exist' in drupal, hence this error.
Any drupal opinions on the best solution to this. This surely must come up in every install profile that attempts to insert permissions for newly created content types.
Comment #4
nchar commentedThe bug is now fixed. You can download the beta 4 release and retry.
Comment #5
dagomar commentedHow? It would be incredibly helpful if this was clarified.
Comment #5.0
dagomar commentedformatting