DjinnS / opencart-Memcache-backend

Use memcache as a cache backend instead of default file backend. It also provide block cache feature.
6 stars 3 forks source link

Error at OC 1.5.3.1 #1

Open danswano opened 12 years ago

danswano commented 12 years ago

Notice: Use of undefined constant CACHE_BACKEND - assumed 'CACHE_BACKEND' in /home/user/public_html/opencart/system/library/cache.php on line 9Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/user/public_html/opencart/index.php:104) in /home/user/public_html/opencart/system/library/session.php on line 11Notice: Use of undefined constant CACHE_BACKEND - assumed 'CACHE_BACKEND' in /home/user/public_html/opencart/system/library/cache.php on line 31Notice: Use of undefined constant CACHE_BACKEND - assumed 'CACHE_BACKEND' in /home/user/public_html/opencart/system/library/cache.php on line 31Notice: Use of undefined constant CACHE_BACKEND - assumed 'CACHE_BACKEND' in /home/user/public_html/opencart/system/library/cache.php on line 31Notice: Use of undefined constant CACHE_BACKEND - assumed 'CACHE_BACKEND' in /home/user/public_html/opencart/system/library/cache.php on line 31Notice: Use of undefined constant CACHE_BACKEND - assumed 'CACHE_BACKEND' in /home/user/public_html/opencart/vqmod/vqcache/vq2-system_engine_controller.php on line 58Notice: Use of undefined constant CACHE_BACKEND - assumed 'CACHE_BACKEND' in /home/user/public_html/opencart/vqmod/vqcache/vq2-system_engine_controller.php on line 79Notice: Use of undefined constant CACHE_BACKEND - assumed 'CACHE_BACKEND' in /home/user/public_html/opencart/vqmod/vqcache/vq2-system_engine_controller.php on line 58Notice: Use of undefined constant CACHE_BACKEND - assumed 'CACHE_BACKEND' in /home/user/public_html/opencart/vqmod/vqcache/vq2-system_engine_controller.php on line 79Notice: Use of undefined constant CACHE_BACKEND - assumed 'CACHE_BACKEND' in /home/user/public_html/opencart/vqmod/vqcache/vq2-system_engine_controller.php on line 58Notice: Use of undefined constant CACHE_BACKEND - assumed 'CACHE_BACKEND' in /home/user/public_html/opencart/vqmod/vqcache/vq2-system_engine_controller.php on line 79Notice: Use of undefined constant CACHE_BACKEND - assumed 'CACHE_BACKEND' in /home/user/public_html/opencart/vqmod/vqcache/vq2-system_engine_controller.php on line 58Notice: Use of undefined constant CACHE_BACKEND - assumed 'CACHE_BACKEND' in /home/user/public_html/opencart/vqmod/vqcache/vq2-system_engine_controller.php on line 79Notice: Use of undefined constant CACHE_BACKEND - assumed 'CACHE_BACKEND' in /home/user/public_html/opencart/system/library/cache.php on line 31Notice: Use of undefined constant CACHE_BACKEND - assumed 'CACHE_BACKEND' in /home/user/public_html/opencart/vqmod/vqcache/vq2-system_engine_controller.php on line 58Notice: Use of undefined constant CACHE_BACKEND - assumed 'CACHE_BACKEND' in /home/user/public_html/opencart/vqmod/vqcache/vq2-system_engine_controller.php on line 79Notice: Use of undefined constant CACHE_BACKEND - assumed 'CACHE_BACKEND' in /home/user/public_html/opencart/system/library/cache.php on line 31Notice: Use of undefined constant CACHE_BACKEND - assumed 'CACHE_BACKEND' in /home/user/public_html/opencart/vqmod/vqcache/vq2-system_engine_controller.php on line 58Notice: Use of undefined constant CACHE_BACKEND - assumed 'CACHE_BACKEND' in /home/user/public_html/opencart/vqmod/vqcache/vq2-system_engine_controller.php on line 79Notice: Use of undefined constant CACHE_BACKEND - assumed 'CACHE_BACKEND' in /home/user/public_html/opencart/vqmod/vqcache/vq2-system_engine_controller.php on line 58Notice: Use of undefined constant CACHE_BACKEND - assumed 'CACHE_BACKEND' in /home/user/public_html/opencart/vqmod/vqcache/vq2-system_engine_controller.php on line 79Notice: Use of undefined constant CACHE_BACKEND - assumed 'CACHE_BACKEND' in /home/user/public_html/opencart/vqmod/vqcache/vq2-system_engine_controller.php on line 58Notice: Use of undefined constant CACHE_BACKEND - assumed 'CACHE_BACKEND' in /home/user/public_html/opencart/vqmod/vqcache/vq2-system_engine_controller.php on line 79Notice: Use of undefined constant CACHE_BACKEND - assumed 'CACHE_BACKEND' in /home/user/public_html/opencart/system/library/cache.php on line 31Notice: Use of undefined constant CACHE_BACKEND - assumed 'CACHE_BACKEND' in /home/user/public_html/opencart/system/library/cache.php on line 31Notice: Use of undefined constant CACHE_BACKEND - assumed 'CACHE_BACKEND' in /home/user/public_html/opencart/vqmod/vqcache/vq2-system_engine_controller.php on line 58Notice: Use of undefined constant CACHE_BACKEND - assumed 'CACHE_BACKEND' in /home/user/public_html/opencart/vqmod/vqcache/vq2-system_engine_controller.php on line 79Notice: Use of undefined constant CACHE_BACKEND - assumed 'CACHE_BACKEND' in /home/user/public_html/opencart/vqmod/vqcache/vq2-system_engine_controller.php on line 58Notice: Use of undefined constant CACHE_BACKEND - assumed 'CACHE_BACKEND' in /home/user/public_html/opencart/vqmod/vqcache/vq2-system_engine_controller.php on line 79

Any idea why i'm getting this error? memcached installed and running on VB/Joomla/Xenforo at my server fine.

DjinnS commented 12 years ago

Hello,

Add the following lines to your config.php file:

// CACHE
define('CACHE_BACKEND','mc');
define('MC_HOST','localhost');
define('MC_PORT','11211');

Regards

danswano commented 12 years ago

I'm getting another error in one of my modules as well. Can you provide step by step what to add/replace for each one of the files so we make sure no version conflict? Thanks.

DjinnS commented 12 years ago

Could you send me your config.php without password ?

danswano commented 12 years ago

<?php // HTTP define('HTTP_SERVER', 'http://domain.com/'); define('HTTP_IMAGE', 'http://domain.com/image/'); define('HTTP_ADMIN', 'http://domain.com/admin/');

// HTTPS define('HTTPS_SERVER', 'http://domain.com/'); define('HTTPS_IMAGE', 'http://domain.com/image/');

// DIR define('DIR_APPLICATION', '/home/user/public_html/catalog/'); define('DIR_SYSTEM', '/home/user/public_html/system/'); define('DIR_DATABASE', '/home/user/public_html/system/database/'); define('DIR_LANGUAGE', '/home/user/public_html/catalog/language/'); define('DIR_TEMPLATE', '/home/user/public_html/catalog/view/theme/'); define('DIR_CONFIG', '/home/user/public_html/system/config/'); define('DIR_IMAGE', '/home/user/public_html/image/'); define('DIR_CACHE', '/home/user/public_html/system/cache/'); define('DIR_DOWNLOAD', '/home/user/public_html/download/'); define('DIR_LOGS', '/home/user/public_html/system/logs/');

// CACHE define('CACHE_BACKEND','mc'); define('MC_HOST','localhost'); define('MC_PORT','11211');

// DB define('DB_DRIVER', 'mysql'); define('DB_HOSTNAME', 'localhost'); define('DB_USERNAME', ''); define('DB_PASSWORD', ''); define('DB_DATABASE', ''); define('DB_PREFIX', ''); ?>