Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>This is caused by a corrupt entry in the variables table. The value of this table is a serialized php value.</p> <p>See those for more information on what a serialize value is:</p> <ul> <li><a href="http://php.net/serialize" rel="nofollow">http://php.net/serialize</a></li> <li><a href="http://php.net/unserialize" rel="nofollow">http://php.net/unserialize</a></li> </ul> <p>Basically, if one of the value was changed by hand, it can cause something like this.</p> <p>For example, the default value of the Anonymous variable is:</p> <pre><code>+-----------+------------------+ | name | value | +-----------+------------------+ | anonymous | s:9:"Anonymous"; | +-----------+------------------+ </code></pre> <p>If you change the value to <code>s:9:"Some other value";</code> then this will cause a problem. The first character is the type of value. The value <code>s</code> means STRING. Then the colon followed by a number indicate a length. In this case, the word <code>Anonymous</code> is exactly 9 characters. But there is more than 9 characters for <code>Some other value</code>. There are 16 characters in that value, so the correct way would be <code>s:16:"Some other value";</code>.</p> <p>If someone put the value not serialized (without the <code>s:9:"";</code>) then it would also cause this problem.</p> <p>I had this very problem in the past. I added some debug code to find out what variable was causing this. I added something like this:</p> <pre><code>$value = unserialize($variable-&gt;value); if ($value === FALSE) { watchdog('unserialize', $variable-&gt;name); } </code></pre> <p>I put this code right before the line causing the error and then I generated the error one more time and I went to the "Recent Log Entries" in Drupal admin <code>http://yoursite.com/admin/reports/dblog</code> and filtered by the type <code>unserialize</code>.</p> <p>Once I had the name of the variable, I would connect to the database and perform this query:</p> <p><code>SELECT * FROM variable WHERE name='name-goes-here';</code></p> <p>and I put the name that I found in the logs. I look at the value and figure out why it is causing this error and then fix the value.</p> <p>I hope this helps.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload