Closed (fixed)
Project:
Leaflet
Version:
7.x-1.0-beta3
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
8 Aug 2013 at 10:39 UTC
Updated:
11 Dec 2013 at 21:50 UTC
Jump to comment: Most recent
Hi there,
when I enable leaflet module the following error is shown:
Notice: Undefined variable: items in require_once() (line 245 of mysite/sites/all/modules/leaflet/leaflet.formatters.inc).
this notice seems to break support for the token module completely outputting:
Notice: Undefined index: types in token_get_info() (line 509 of //htdocs/sites/all/modules/token/token.module).
Warning: array_keys() [function.array-keys]: The first argument should be an array in token_get_info() (line 509 of htdocs/sites/all/modules/token/token.module).
Warning: Invalid argument supplied for foreach() in token_get_info() (line 509 ofhtdocs/sites/all/modules/token/token.module).
Warning: uasort() [function.uasort]: The argument should be an array in token_get_info() (line 527 of htdocs/sites/all/modules/token/token.module).
Notice: Undefined index: tokens in token_get_info() (line 528 of /var/www/site.104.6rtl.com/htdocs/sites/all/modules/token/token.module).
Warning: array_keys() [function.array-keys]: The first argument should be an array in token_get_info() (line 528 of htdocs/sites/all/modules/token/token.module).
Warning: Invalid argument supplied for foreach() in token_get_info() (line 528 of /var/www/site.104.6rtl.com/htdocs/sites/all/modules/token/token.module).
Warning: array_keys() [function.array-keys]: The first argument should be an array in theme_token_tree() (line 100 of htdocs/sites/all/modules/token/token.pages.inc).
Warning: Invalid argument supplied for foreach() in theme_token_tree() (line 124 of htdocs/sites/all/modules/token/token.pages.inc). Steps to reproduce:
Enable Token
Enable Leaflet
goto admin/help/token
Result:
Error above given and no tokens available. This affects of course also all token related modules like pathauto & Co not to work anyomore.
Comments
Comment #1
patrickroma commentedSolution: seems that if you set the module weight in the system table directly in the DB to 99 fixes the problem... also if the notice still remains.
Comment #2
rdeboerThis is now worse.
With Leaflet and Token enabled and visiting admin/help/token I'm getting this with 7.x-1.x-dev:
PDOException: SQLSTATE[HY000]: General error: 2006 MySQL server has gone away:
SELECT * FROM {system} WHERE type = 'theme' OR (type = 'module' AND status = 1) ORDER BY weight ASC, name ASC; Array ( )
in system_list() (line 165 of .../includes/module.inc).
Changing the module weight in the {system} table doesn't make a difference on my system...
Not seeing any of the above notices and I can't find the undefined variable $items...
Comment #3
levelos commentedI believe this should be resolved with #2127465: Use module_load_include instead of require_once. Reopen if not the case ...