Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 601001
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T16:40:03+00:00 2026-05-13T16:40:03+00:00

I am trying to cache an array with Zend_Cache like this: $cache = Zend_Registry::get(‘cache’);

  • 0

I am trying to cache an array with Zend_Cache like this:

$cache = Zend_Registry::get('cache');
// $data is an array
$cache->save($data, 'externalData');

And I am getting this error:

Message: Datas must be string or set automatic_serialization = true

Even though the automatic_serialization is set tu true when initializing Zend_Cache in the bootstrap file:

protected function _initCache()
{
    $frontend= array('lifetime' => 7200,
                     'automatic_seralization' => true);
    $backend= array('cache_dir' => 'cache');
    $this->cache = Zend_Cache::factory('core',
                                       'File',
                                       $frontend,
                                       $backend);
}

What could cause this error message?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-13T16:40:03+00:00Added an answer on May 13, 2026 at 4:40 pm

    Maybe you just made a copy-paste error or a typo error, but, in the code you posted, you have :

    $frontend= array('lifetime' => 7200,
                     'automatic_seralization' => true);
    

    i.e. you are setting automatic_seralization to true, and not automatic_serialization : note the i in ser-i-alization.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I think I'm getting crazy, I'm trying to implement Zend_Cache to cache my database
I am trying to cache js files on server side and came across this
Trying to create a new Dedicated Cache Role in Windows Azure but get the
i have this code im trying to do for a type of cache system
Hey, I am trying to convert this object to an array of ints e.g.
I using charset utf 8 and it be error: Notice: Trying to get property
I'm trying to create an array of structs as a sort of rudimentary cache.
im trying to pass an array of data to a PHP script using Jquery's
I'm trying to get the memcache query/result cache working with Oracle. It works flawlessly
I am trying to cache something. In my core.php config file, I have this:

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.