test
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • ahashmi Friend
    #141745

    I am facing the following problem any one help me.

    Warning: Memcache::addserver() expects parameter 2 to be long, string given in /home/usmicrom/public_html/libraries/joomla/cache/storage/memcache.php on line 86

    mj1256 Friend
    #307155

    three solutions are proposed at the joomla forum

    http://forum.joomla.org/viewtopic.php?f=428&p=1285404

    ===================
    1)
    I have finally found how to correct this problem.

    In the backend—-> Configuration —–>System

    On the right side there are settings for the cache.

    In Port: I have put the value 0

    ….and it worked. No error message anymore.
    ==============================

    2) change the code on line 83 from :
    [PHP]$this->_db->addServer($server[‘host’], $server[‘port’], $this->_persistent);[/PHP]
    to
    [PHP]$this->_db->addServer($server[‘host’], (int)$server[‘port’], $this->_persistent);
    ^^^^ see the cast to int?[/PHP]
    ======================

    3) change the cache handler in Config -> System to be “File”. I believe this should be the default setting, and for whatever reason it changed to memcache.

    ahashmi Friend
    #307362

    the following problem is solve. with option no. 2
    thanks

Viewing 3 posts - 1 through 3 (of 3 total)

This topic contains 3 replies, has 2 voices, and was last updated by  ahashmi 15 years, 6 months ago.

We moved to new unified forum. Please post all new support queries in our New Forum