serialize/unserialize Notice
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@blisstering.com Skype : vyasamit2004 Mobile : +91 993-040-1490 Phone : +91-022 428-884-07
Hi Amit, If it's a problem with the variables then this module might help: http://drupal.org/project/variablecheck Regards Steven Jones ComputerMinds ltd - Perfect Drupal Websites Phone : 024 7666 7277 Mobile : 07702 131 576 Twitter : darthsteven http://www.computerminds.co.uk On 12 January 2011 16:31, Amit Vyas <amit.vyas@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@blisstering.com Skype : vyasamit2004 Mobile : +91 993-040-1490 Phone : +91-022 428-884-07
Thanks Jones! This is not known to me. Will surely try this. Let me know any other solutions. Will keep you guys posted on this. Thanks! On Wed, Jan 12, 2011 at 10:48 PM, Steven Jones < steven.jones@computerminds.co.uk> wrote:
Hi Amit,
If it's a problem with the variables then this module might help: http://drupal.org/project/variablecheck
Regards Steven Jones ComputerMinds ltd - Perfect Drupal Websites
Phone : 024 7666 7277 Mobile : 07702 131 576 Twitter : darthsteven http://www.computerminds.co.uk
On 12 January 2011 16:31, Amit Vyas <amit.vyas@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@blisstering.com Skype : vyasamit2004 Mobile : +91 993-040-1490 Phone : +91-022 428-884-07
-- Cheers, Amit Vyas ____________________________________________________________________________ ____ Email : amit.vyas@blisstering.com Skype : vyasamit2004 Mobile : +91 993-040-1490 Phone : +91-022 428-884-07
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@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@blisstering.com Skype : vyasamit2004 Mobile : +91 993-040-1490 Phone : +91-022 428-884-07
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@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@blisstering.com Skype : vyasamit2004 Mobile : +91 993-040-1490 Phone : +91-022 428-884-07
participants (5)
-
Amit Vyas -
Amit Vyas -
Chris Skene -
Nikola Kotur -
Steven Jones