Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Running eAccelerator v0.9.5.3, and getting
Fatal error: Call to undefined function eaccelerator_get() in /home/hotweb/public_html/sites/all/modules/cacherouter/engines/eacc.php on line 34
Any ideas?
Comments
Comment #1
slantview CreditAttribution: slantview commentedWell, I wouldn't run eAccelerator 0.9.5.3 anyway, cause there is a serious ttl issue where cached data does not expire. But it sounds like you compiled it without the required content cache, or you did not add "extension=eaccelerator.so" into your php.ini file.
Comment #2
PlayfulWolf CreditAttribution: PlayfulWolf commentedeAccelerator runs as supposed - phpinfo(); shows it running, works on custom php scripts. Have installed it through Cpanel, but don't think it matters.
config is below
extension_dir = "/usr/local/lib/php/extensions/no-debug-zts-20060613"
extension = "eaccelerator.so"
eaccelerator.shm_size="40"
eaccelerator.cache_dir="/tmp/eaccelerator"
eaccelerator.enable="1"
eaccelerator.optimizer="1"
eaccelerator.check_mtime="1"
eaccelerator.debug="0"
eaccelerator.filter=""
eaccelerator.shm_max="0"
eaccelerator.shm_ttl="3600"
eaccelerator.shm_prune_period="1800"
eaccelerator.shm_only="1"
eaccelerator.compress="1"
eaccelerator.compress_level="1"
What I am missing?
Comment #3
slantview CreditAttribution: slantview commentedHonestly, I wouldn't run this version of eAccelerator with cache router. When cache is flushed, you will not see cache entries removed. The only version I have found to work is latest builds from SVN. I would seriously consider using another technology like memcache or file or APC.
Comment #4
stunpix CreditAttribution: stunpix commentedYou are nothing missing. It's OK that you are receiving this error. Check following link and read why error appears:
http://eaccelerator.net/ticket/37
This isn't issue. eAccelerator was compiled without some features.
Comment #5
tkcent CreditAttribution: tkcent commentedThe shared memory caching functions (eaccelerator_get and eaccelerator_put among others) have been removed from 0.9.6. You will need to stick with 0.9.5.3 and configure it appropriately:
./configure --enable-eaccelerator=shared --with-php-config=$PHP_PREFIX/bin/php-config --with-eaccelerator-shared-memory
http://groups.google.com/group/eaccelerator/browse_thread/thread/b66c9ca...
Also, you can verify if the functions are there ahead of time with this bit of PHP code:
Comment #6
crea CreditAttribution: crea commentedSince eaccelerator doesn't support variable cache anymore, closing this.