Closed (duplicate)
Project:
Page Title
Version:
7.x-2.4-beta1
Component:
Code
Priority:
Major
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
8 Jan 2011 at 22:27 UTC
Updated:
10 Jun 2014 at 14:32 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
valkajemir commentedComment #2
fagoPlease report the module versions you have used + when exactly the error occurs.
Comment #3
drbeaker commentedI'm getting the same error.
I can reproduce it by: following the sequence People|User|Edit.
Entity API Version 7.x-1.0-beta6
Drupal 7.0
HTH
Comment #4
Blooniverse commentedNo good news: I even get this error when using 'Entity API 7.x-1.x-dev (2011-Jan-12)' -- straight after logging in as a user! The error code does not disappear after refreshing '/user', but it occurs only there [on '/user'], no matter which user (admin as well!). Even the line numbers are still the same:
My system:
php.net is telling me:
Good news, or not?: According to http://ch.php.net/manual/en/function.array-flip.php, this problem should be easy to solve!
Comment #5
Blooniverse commented... the question is: from where exactly comes
$trans($foo), since obviously '/includes/entity.inc' seems to have a problem with it.Comment #6
fagoThis error always appears if entity_load() is called in a wrong way, e.g. entity_load('type', 4). It has to be entity_load('type', array(4));
Comment #7
Blooniverse commentedDevel output (my search keyword is 'entity'):
Arrays:
Queries of 'DrupalDefaultEntityController::load()':
'DrupalDefaultEntityController->cacheGet()' shows no Devel query output.
((And when I check XHProf (Profiling), there is no function etc with the keyword 'entity', which seems problematic concerning the consumption of time. ))
Comment #8
Blooniverse commentedOkay, @fago (#6), we have the choice (output from Notepad++ on Win):
BTW, is there no equivalent to Notepad++ on Linux (Ubuntu)? Shame! I started last year to increase my activities on Linux (virtual machine/server) -- before I had a 'Windows + Cygwin' client in combination with a Linux physical dev server in the LAN.
Comment #9
fagoThis can be any entity_load() call from any module, thus this might not have to do anything with the entity api at all as also the error is in the core entity.inc include.
Comment #10
Blooniverse commentedOkay, testing the new 'Entity API 7.x-1.x-dev (2011-Jan-14)' in combination with a freshly set up Drupal7 -- together with ~70 additional modules. Results in a few minutes!
Comment #11
Blooniverse commentedIn my extensive testing environment the culprit is very clearly:
Adjusting issue settings correctly!
Comment #12
Blooniverse commentedDuplicate: #1018280: Warning: array_flip() entity.inc !
Comment #13
stephenrobinson commentedI have a similar issue with images on event nodes:
Drupal 7.10, Entity API 7.x-1.0-rc1
Comment #14
stephenrobinson commentedI fixed the symptoms with a patch:
Comment #15
POVYLAZZZ commentedI tried to apply your patch but all it did was changed the error line form 177 to 191.
Comment #16
benheinz commentedMy errors where coming from the "SPARQL API module" went away afer disabling the modules of sparkle.