Prestashop: [BOOM-6166] memcached server do not work with v.1.7

Created on 22 Aug 2018  路  46Comments  路  Source: PrestaShop/PrestaShop

This issue has been migrated from the Forge. Read the original ticket here.

  • _Reporter:_ venty
  • _Created at:_ Wed, 1 Aug 2018 19:16:42 +0200

Hello,

on one server I have installed memcached and also prestashop with versions 1.6.20 and 1.7.4.2 ...

When attempting to run and add a memcached server in versions 1.6, it gets, and at 1.7 not everything turns red ...

What to do?

Thanks in advance!

BR

Venty

  • How to reproduce the issue ?

N/A

1.7.4.2 Bug Fixed Minor

Most helpful comment

There are two Memcached implementations for PHP: memcache and memcached. memcache supports PHP 4.3.11 to PHP 5.6, while memcached supports PHP 5.4 to PHP 7.x.

All 46 comments

This comment has been migrated from the Forge. Read the original comment here.

  • _Author:_ khouloud.belguith
  • _Created at:_ Thu, 2 Aug 2018 10:37:08 +0200

Hi Ventsialv,

Could you please follow this documentation:http://doc.prestashop.com/display/PS17/Performance
Thanks to check and feedback.

Best regards,
Khouloud

This comment has been migrated from the Forge. Read the original comment here.

  • _Author:_ venty
  • _Created at:_ Thu, 2 Aug 2018 11:16:24 +0200

Hi,

I very much appreciate the link you gave me, but what I need is not right there...

As聽I said, I have installed memcached and聽 I tested his work with systems in prestashop v 1.6.20...

However, when I try to enable this caching feature at 1.7.4.X and set the IP Address, Port, Weight and pressed the Test Server button all lights up in red ...?!?

Please look at the attachment ...

Thanks in advance!

Br

Venty

This comment has been migrated from the Forge. Read the original comment here.

  • _Author:_ khouloud.belguith
  • _Created at:_ Thu, 2 Aug 2018 12:25:47 +0200

Hi Ventsialv,

I manage to reproduce the issue with the last version PS:1.7.4.2
We will see how to fix it.

Best regards,
Khouloud

This comment has been migrated from the Forge. Read the original comment here.

  • _Author:_ venty
  • _Created at:_ Thu, 2 Aug 2018 12:54:55 +0200

Hi,

the above error occurs at 1.7.4.1.

and another thing I found....

on the Theme menu when clicking on the link enclosed in red returns an error page ...
Please see the two attachments 123 and 123A ...

Thanks in advance!

BR聽

Venty

This comment has been migrated from the Forge. Read the original comment here.

  • _Author:_ venty
  • _Created at:_ Thu, 2 Aug 2018 12:55:40 +0200

This comment has been migrated from the Forge. Read the original comment here.

  • _Author:_ marion_francois
  • _Created at:_ Thu, 2 Aug 2018 13:29:27 +0200

Hi Ventsialv Krastev

About the 500 error, which version of聽the ps_themecusto module do you have ?

This comment has been migrated from the Forge. Read the original comment here.

  • _Author:_ venty
  • _Created at:_ Thu, 2 Aug 2018 13:39:59 +0200

Ok, I updated the module聽ps_themecusto...

thanks...

This comment has been migrated from the Forge. Read the original comment here.

  • _Author:_ venty
  • _Created at:_ Mon, 13 Aug 2018 11:35:19 +0200

Hi,

hope you solve the problem with memcached...

Thanks in advance!

BR

Venty

This comment has been migrated from the Forge. Read the original comment here.

  • _Author:_ kevinthe8
  • _Created at:_ Tue, 14 Aug 2018 10:35:21 +0200

Same issue here, memcached is not working on PS 1.7.4.2.
I cannot see how this can be qualified as a 'minor' issue.
As soon as you press test the fields turn red(even though the json return is true).
If you save the frontend will not work anymore and will only load partially.

This comment has been migrated from the Forge. Read the original comment here.

  • _Author:_ khouloud.belguith
  • _Created at:_ Tue, 14 Aug 2018 10:38:33 +0200

Hi,

There are some major issues to solve before this one.
So, it will probably not solved right now.
But PrestaShop is an open source project, so it can be solved before if someone submits a pull request to solve it.

Best regards, Khouloud

This comment has been migrated from the Forge. Read the original comment here.

  • _Author:_ kevinthe8
  • _Created at:_ Tue, 14 Aug 2018 10:41:27 +0200

In addition to this, if i want to use a cache system which one is best to use and works with 1.7.4.2?

Same issue for me; in addition, when I add a memcached server all my script (started by cron, as search, google sitemap...) are generated very very slowly.and very often goes in timeout.

same issue

@centoasa I'm not able to reproduce anything with my memcached server. Maybe you generate too much requests to your service :/

And now will there be a memcached?!?
It was necessary to have a PHP accelerator for the normal working of the pretashop v. 1.7.4.2?!?

BR
Venty

Hi @ventybug,

You need to modify your files like in the PR: https://github.com/PrestaShop/PrestaShop/pull/10201/files
The best you can do is to ask a developer to apply the patch.
This PR will be available for 1.7.5.0 only that we plan to release in October.

Thanks for your understanding.

@khouloudbelguith with this patch, now all works well!
Thank you very much!

You need to modify your files like in the PR: https://github.com/PrestaShop/PrestaShop/pull/10201/files
do I need to change them manually or do I have another way?!?

@ventybug I've replaced entirely that files

@ventybug, yes you can modify them manually.

Best regards, Khouloud

and what exactly changes, I can not orient the colors ...
can not i download the modified files from somewhere?

@ventybug, the best you can do is to ask a developer to apply the patch.

how do I ask for it?

Hi @ventybug,

In this PR: #10201, there are 3 files changed.
You can follow this link: https://github.com/PrestaShop/PrestaShop/pull/10201/files
For each file changed, you can click on the View button, copy paste this file into your project folder.

Best regards, Khouloud

"the best you can do is to ask a developer to apply the patch." - how, whence...?!?

Hi @ventybug,

If this is critical for your business but you don't have developer skills, please consider to hire a freelancer or an agency

Best regards, Khouloud

@khouloudbelguith
But it happens to me a strange thing, only when active memcached indicating the directives of the server: very often the data of the products are not updated, such as price, description and more, and very often, after some changes to the products, I throw away from the backoffice . Return, I do not find the changes just made in the product, and even if I try again 10 times, not prejudice to my changes.

HI @centoasa,

This is a different issue.
Thanks to open a new issue with specific details.

Best regards, Khouloud

HI @centoasa,

This is a different issue.
Thanks to open a new issue with specific details.

Best regards, Khouloud

sorry

Hi there,

For those who have this issues, it should be fine, please checkout my screenshot

https://share.ten2.tw/file/tentendropshare/Screen-Shot-2018-10-09-14-46-15.png

https://share.ten2.tw/file/tentendropshare/Screen-Shot-2018-10-09-14-47-55.png

just an minor issues of data response.

Hi,
I installed the latest PrestaShop version 1.7.5 and still have faced this problem. I could not add the server. see the attached file. Thanks in advance!

prestashop 1 7 5_chache_error

But you server have memcache or memcached installed? And server cache listen on 11210 port and not default 11211?

Hi Centoasa,

         Thanks for your reply.  I am testing with the default port 11211 and I have memcache for further details see the below page.

memchache

Me too have the same problem.
PHP Version 7.1.24
schermata 2018-12-23 alle 12 00 21

Hi all,

I did not manage to reproduce the issue with PS1.7.5.0 ( fresh installation or after upgrade from 1.7.4.4).
It is ok, I attached a video record
https://drive.google.com/file/d/1C2LwifuZ_O94DFt6inw69MGAUn1_t-qI/view
It seems that your issue is not a PrestaShop's core bug but most likely a server configuration or customization problem.
Thanks!

I confirm that even with clean installation ps 1.7.5 it does not work. I will ask the hosting provider what it may be that is not good.. Thank you @khouloudbelguith.

@khouloudbelguith Thanks for your reply. I want to know is there any difference in Cachememcached and cachememcache. I have cachememcache while in your video is cachememcached!

Hi @qadeeralvi,

  • Memcache module provides handy procedural and object oriented interface to memcached, highly effective caching daemon, which was especially designed to decrease database load in dynamic web applications.
    The Memcache module also provides a session handler (memcache).

  • memcached is a high-performance, distributed memory object caching system, generic in nature, but intended for use in speeding up dynamic web applications by alleviating database load.
    This extension uses libmemcached library to provide API for communicating with memcached servers. It also provides a session handler (memcached).

Thanks!

There are two Memcached implementations for PHP: memcache and memcached. memcache supports PHP 4.3.11 to PHP 5.6, while memcached supports PHP 5.4 to PHP 7.x.

Hi Khouloud
20190406_003148.mp4.zip
Same issue: my server has memcached installed but I'm not able to add the server, I attached a video
thank you for your help

Hi @barbara2402,

You need to modify your files like in the PR: https://github.com/PrestaShop/PrestaShop/pull/10201/files

Thanks!

thank you! it works now

@khouloudbelguith it's normal when I add memcached server, my exported files, like google sitemap or channelpilot, are taken very slowly and go into error 503?
instead without add memcached server, all goes well!

Hi @centoasa,

Could you please provide us with more info? We need more details to understand how we can reproduce your issue:

  • host
  • server setup and configuration
  • PrestaShop version (source)
  • debug mode report
  • PHP error logs
  • apache error log
  • javascript console log
  • screenshots

Don't you know how to get this information? Please read the following article:
http://build.prestashop.com/howtos/misc/how-to-create-bug-report/

Thanks!

I know this issue is closed by now. though im wondering,
after refactored the files from https://github.com/PrestaShop/PrestaShop/pull/10201/files

i still have speed issues while have Memcached server added,
if i deactivate the use of cache storing i actually cut about 1 - 2 seconds of my load time how is that?

im using Prestashop 1.7.4.2

It seems that the issue is still present in 1.7.6.4. Any ideas why is it still occurring? Many thanks for any answers.

3fd3ln6ht1z8l0z84rz9xn7u3oa7qs7b_anonymized

Was this page helpful?
0 / 5 - 0 ratings