Giter Club home page Giter Club logo

Comments (8)

khoaofgod avatar khoaofgod commented on July 28, 2024

hi there, can you open your php_fast_cache.php and let me know the revision on header.
It should be "616" latest version.


From: Stian Walgermo [email protected]
To: khoaofgod/phpfastcache [email protected]
Sent: Friday, June 21, 2013 4:10 AM
Subject: [phpfastcache] Fatal error: Call to a member function prepare() (#26)

HI,
I just downloaded the script and tested it, but i am getting this error when testing.php


Caching = auto
SET 1 -->
Fatal error: Call to a member function prepare() on a non-object in /public_html/phpfastcache/php_fast_cache.php on line 1665
β€”
Reply to this email directly or view it on GitHub.

from phpfastcache.

khoaofgod avatar khoaofgod commented on July 28, 2024

look like this problem happened on PHP 5.4
Can you confirm your PHP version, bro?

from phpfastcache.

Walgermo avatar Walgermo commented on July 28, 2024

Sorry for the late response, i am using PHP Version: 5.3.18 and i got the newest revision, 616 :)

from phpfastcache.

khoaofgod avatar khoaofgod commented on July 28, 2024

Hi @Walgermo ,
Can you delete the folder name "cache" or "cache.storage" or whatever "cache" created when you run testing.php

And then try again. Let me know about it. I will fix it for you.

from phpfastcache.

Walgermo avatar Walgermo commented on July 28, 2024

I get the same error-message :/


Caching = auto
SET 1 -->
Fatal error: Call to a member function prepare() on a non-object in /home/walgermo/public_html/phpfastcache/php_fast_cache.php on line 1665

My settings ins phpfastcache:
public static $storage = "pdo"; // PDO | mpdo | Auto | Files | memcache | apc | wincache | xcache
public static $files_cleanup_after = 1; // hour | auto clean up files after this
public static $autosize = 40; // Megabytes
public static $path = ""; // PATH/TO/CACHE/ default will be current path
public static $securityKey = "cache.storage"; // phpFastCache::$securityKey = "newKey";
public static $option = array();
public static $server = array(array("localhost",11211)); // for MemCache
public static $useTmpCache = false; // use for get from Tmp Memory, will be faster in checking cache on LOOP.
public static $debugging = false; // turn true for debugging
private static $step_debugging = 0;

from phpfastcache.

khoaofgod avatar khoaofgod commented on July 28, 2024

I have fixed it. Reivision 617 have been updated.
Just re-download, and let me know if any problem.

from phpfastcache.

Walgermo avatar Walgermo commented on July 28, 2024

Thanks!
No errors on the test now. It can also be set to auto without errors :)

from phpfastcache.

khoaofgod avatar khoaofgod commented on July 28, 2024

Cool...
Have a nice day

from phpfastcache.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.