• Resolved imtino

    (@imtino)


    I’m not sure if it supposed to be like this.
    Memcached: Memcached Extension is Loaded - Version: Array

    Is it supposed to say Array?

Viewing 11 replies - 1 through 11 (of 11 total)
  • Plugin Author AITpro

    (@aitpro)

    Yep, this is a bug. We will fix this in the next BPS plugin version release. Thanks for pointing this bug out. ??

    Thread Starter imtino

    (@imtino)

    Cool, I was thinking something wrong with my system. I have been messing around to find a solution. All that work for no reason. hahaha

    Anyways, so glad to have that sorted out.

    As always, thank you for the awesome support and plugin.

    Plugin Author AITpro

    (@aitpro)

    Actually going by php.net and other sources… using this object $memcached->getVersion() should work fine without doing anything else. ie loops. So I’m not really sure why you are seeing “array”. I am going to load/install memcached on my server and double check that the code is good. I did come across some info that indicates if you are not seeing the version then there is a config mistake somewhere. Anyway let me install/load memcached and verify whether the existing BPS code is fine or not.

    • This reply was modified 6 years, 7 months ago by AITpro.
    Plugin Author AITpro

    (@aitpro)

    Actually it is not necessary to bother with installing memcached as you can see the end verification code in the link below is using the same object to verify/display the version > echo "Server's version: " . $memcache->getVersion() . "<br />\n"; So it would just be a waste of time to do the installation. All references that I checked… php.net, several other sources are all using the same exact code that is being used in BPS to get the memcached version. So it sounds like you do have some sort of memcached config problem on your end. ie no need to change the existing BPS System Info page code.

    https://phpcodez.com/install-memcached-xampp-windows-10/

    • This reply was modified 6 years, 7 months ago by AITpro.
    Plugin Author AITpro

    (@aitpro)

    Forgot to add the link. link added above.

    Thread Starter imtino

    (@imtino)

    Thank you for investigating this issue.

    I checked my phpinfo

    <?php
    phpinfo();
    ?>

    and it does show the memcached version.

    Plugin Author AITpro

    (@aitpro)

    Good timing. I was just making my rounds over here and checking for any new issues. ?? Yeah I think everything is probably working fine with memcached and BPS memcached checking code since it is the code that is recommended on php.net and everywhere else. So for whatever reason your server is returning a value in an array. Not really sure why that is, but it is nothing to worry about. Unfortunately, BPS will just not be able to display the memcached version on your particular host server. No big deal.

    Plugin Author AITpro

    (@aitpro)

    Oops. I double checked and not sure what I was looking at before, but yeah the output code should use print_r(). Too funny. So yeah it is a bug that needs to be fixed. Silly. So yeah this is a bug that needs to be fixed.

    This is echoed
    echo $memcached->getVersion();

    Should be a print_r(). Correction: A loop is needed if the version is the only thing that needs to be displayed instead of both the server connection and the version.
    print_r($memcached->getVersion());

    • This reply was modified 6 years, 7 months ago by AITpro.
    Thread Starter imtino

    (@imtino)

    Cool, I’m looking forward to the fixed. Thank you as always.

    Plugin Author AITpro

    (@aitpro)

    Man this is some nutty stuff. Both memcache and memcached version code checks do not work consistently across different servers/hosts. I ended up installing memcache/memcached on our test server and things work fine to get the version, but on our Live hosting account and another web host testing account the version comes back blank. I’m using the exact code from php.net so it should work consistently, but it does not work consistently on all web hosts. I believe this probably has to do with hosts using different “memcache host” names instead of using localhost. So I’m bailing out on messing around with this anymore. GRRRR. I’m just going to remove the version checking object code since it does not work consistently across different servers/web hosts. So only the extension loaded or not check will remain.

    Thread Starter imtino

    (@imtino)

    That does sound like a pain. Thank you for working so hard on improving BPS. I could live with that, without version is fine. Just know that it’s loaded and working is good enough for me.

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘System Info Memcached Version: Array’ is closed to new replies.