[development] serialize/unserialize Notice

Chris Skene chris at xtfer.com
Wed Jan 12 21:19:09 UTC 2011


This also happens when you move databases between MySQL instances with different encodings. Some variables wont get inserted correctly, leading to these notices.



On 13/01/2011, at 7:34 AM, Nikola Kotur wrote:

> That's not error, it's a notice :)
> 
> This is what happened: at some point you wrote plain strings into variables table, but all that goes there must be serialized. If you're sure you need those values, serialize every value from variables where function unserialize === FALSE and you'll be fine.
> 
> On the other hand, if that notice bothers you, then delete all values that err - Drupal would never store unserialized string into variables, so you won't hurt it.
> 
> On Wed, Jan 12, 2011 at 5:31 PM, Amit Vyas <amit.vyas at blisstering.com> wrote:
> Hi All,
> Stuck at some point.
> 
> Anyone came across this issue and resolved it ? I founed loads of threads on the drupal.org but didn't found a relevant one :-)
> Here is something like what i get as an error or notice :
> Error is: 
> Notice: unserialize() [function.unserialize]: Error at offset 0 of 1 bytes in */includes/bootstrap.inc on line 551
> */includes/bootstrap.inc on line 551
> 
> Thanks!
> 
> -- 
> Cheers,
> Amit Vyas
> _______________________________________________________________
> Email  : amit.vyas at blisstering.com               Skype : vyasamit2004
> Mobile : +91 993-040-1490                          Phone : +91-022 428-884-07 
> 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.drupal.org/pipermail/development/attachments/20110113/bc970681/attachment-0001.html 


More information about the development mailing list