Hello!<br><br>My name is Anders and I hope someone can direct me towards a good solution on my problem, which I get everywhere (homescreen for instance) except in the admin area (Modules, Configurations etc):<br><br><em class="placeholder">PDOException</em>: SQLSTATE[22P02]: Invalid
text representation: 7 ERROR: invalid input syntax for integer: &quot;all&quot;
LINE 4: WHERE (base.uid IN (&#39;all&#39;)) ^: SELECT base.uid AS uid,
<a href="http://base.name">base.name</a> AS name, base.pass AS pass, base.mail AS mail, base.theme AS
theme, base.signature AS signature, base.signature_format AS
signature_format, base.created AS created, base.access AS access,
base.login AS login, base.status AS status, base.timezone AS timezone,
base.language AS language, base.picture AS picture, base.init AS init,
base.data AS data
FROM {users} base
WHERE (base.uid IN (:db_condition_placeholder_0)) ; Array
( [:db_condition_placeholder_0] =&gt; all
) i <em class="placeholder">DrupalDefaultEntityController-&gt;load()</em> (rad <em class="placeholder">196</em> av <em class="placeholder">/var/www/drupal/includes/entity.inc</em>).<br><br>It does select * from users where uid in (&quot;all&quot;); which doesn&#39;t work since uid is a number in the users table.<br>
<br>I run drupal 7.4 with alot of modules and this happened after upgrading date, calendar, fullcalendar and ctools to the latest development releases as of 2011-07-29. There was something running when I pressed update.php but I can&#39;t find what. I did some research with var_dump and debug_backtrack and found a workaround:<br>
<br>--- /tmp/menu.inc.old    2011-07-30 02:38:00.566339402 -0700<br>+++ includes/menu.inc    2011-07-30 02:37:26.805708180 -0700<br>@@ -902,6 +902,7 @@<br>     }<br>     // menu_tree_check_access() may set this ahead of time for links to nodes.<br>
     if (!isset($item[&#39;access&#39;])) {<br>+      if (count($map) == 3 &amp;&amp; $map[0] == &quot;user&quot; &amp;&amp; $map[1] == &quot;all&quot; &amp;&amp; $map[2] == &quot;bookmarks&quot;) { $map[1] = 0; }<br>       if (!empty($item[&#39;load_functions&#39;]) &amp;&amp; !_menu_load_objects($item, $map)) {<br>
         // An error occurred loading an object.<br>         $item[&#39;access&#39;] = FALSE;<br><br>If map == (&quot;user&quot;,&quot;all&quot;,&quot;bookmarks&quot;) I change the string &quot;all&quot; to integer 0.<br>
the problem boils down to the function that gets called right after my fix above, with $uid = $map[1]:<br><br>function user_load($uid, $reset = FALSE) {<br>  $users = user_load_multiple(array($uid), array(), $reset);<br>  return reset($users);<br>
}<br><br>According to the comment just above the function, uid has to be a number (not the string &quot;all&quot;). I would like to find the right module and fix that instead.<br><br>After a lot of fiddling with disabling and enabling module I got things &quot;working&quot; after disabling all installed modules including the addons that was shippet with Drupal itself. When I then enable the core module Block, I get the error again!<br>
<br>This letter is getting very lengthy, so I won&#39;t burden you with more info. I got big stacktraces and more stuff to write, but I don&#39;t know what interest you in this problem. All I want is help to find the real thing, where is the real error? How to find it?<br>
<br>Just do avoid unnecessary flames:<br>I did a little bit of screwup with my drupal site. Feel free to blame
me about backups and things like that, yes it was due to a
missunderstanding (bad crontab-job) and I didn&#39;t check for them...:-) Feel also free to complain
about the usage of alpha/devel-modules but to get modules for drupal 7,
since that was the version someone selected,you have to use alpha/beta/devel versions.<br>
<br><br clear="all">Thanks alot for any help/guidens to the solution of the problem.<br><br>Anders Andersson<br>