Jump to content

Cannot Enable Caching On Presta 1.5.6.2


Recommended Posts

Hi there,

 

Im using shared hosting.

 

ok im facing this weird problem, Im trying to enable my Caching System at "Advance Parameters" > "Performance. By using the "Memcached".

 

So im asking my Hosting provider to help me in providing the details:

 

Ip:

Port: 

weight:

 

and they provide me with each of the details, and saving that server was not a problem.

 

The problem. 

 

1)When i click "test server" Nothing happened.

2) When i select "yes" for enabling the caching and click "save" i will be brought to a blank page. then when im refresh the page again. The Caching system still stays at disable.

 

Hoping anybody could help me..thanks in advance

Link to comment
Share on other sites

Hi

 

Memcached or APC or XCache cannot be used on shared hosting. You need a VPS or dedicated server to activate these options.

 

Iam not sure how your host gave you the details for I.P and port etc. Which host are you using?

 

Anyway, for memcached the values are :

 

I.P  127.0.0.1

Port  : 11211

Weight : 1

 

Usually on a shared host, when you try to activate memcached or APC, it gives a warning saying you need to install them on the server. Iam not aware of any shared hosts who let you do this.  I believe this is because memcached or APC uses memory to save the objects for faster caching, and since on a shared host, memory is shared with other users, this will create problems when loading websites.

Edited by indus (see edit history)
Link to comment
Share on other sites

Hi

 

Memcached or APC or XCache cannot be used on shared hosting. You need a VPS or dedicated server to activate these options.

 

Iam not sure how your host gave you the details for I.P and port etc. Which host are you using?

 

Anyway, for memcached the values are :

 

I.P  127.0.0.1

Port  : 11211

Weight : 1

 

Usually on a shared host, when you try to activate memcached or APC, it gives a warning saying you need to install them on the server. Iam not aware of any shared hosts who let you do this.  I believe this is because memcached or APC uses memory to save the objects for faster caching, and since on a shared host, memory is shared with other users, this will create problems when loading websites.

 

Hi there, Thanks for your reply, however in my case i have my own dedicated IP (I didnt sure that this is related or no) and also the one who allow and guide me to use the setting is the hosting it self. So i think yes the hosting indeed allow me to use that option.

 

Im using stablehost

Edited by khairulaizat92 (see edit history)
Link to comment
Share on other sites

Same problem here with prestashop 1.5.6.2. I've installed Memcached on my vps and checked it in the phpinfo() file. Also a memcached test script is working fine. 

 

In prestashop i get a blank page when I enable it in the admin. When I enable it manually in the settings file every page on the store is blank. There is no error message when dev mode is turned on. 

 

Any solutions here?

Link to comment
Share on other sites

Same problem here with prestashop 1.5.6.2. I've installed Memcached on my vps and checked it in the phpinfo() file. Also a memcached test script is working fine. 

 

In prestashop i get a blank page when I enable it in the admin. When I enable it manually in the settings file every page on the store is blank. There is no error message when dev mode is turned on. 

 

Any solutions here?

 

Hi, have you tried to ask your hosting support? In my case it differes from yours as im using shared hosting, the support has responded and they have redirect me to their system admin, which then talk to me that they cant enable it as im at shared hosting.

 

So in your cases, you might want to ask your hosting first before you ask here. Regards

Link to comment
Share on other sites

Same problem here with prestashop 1.5.6.2. I've installed Memcached on my vps and checked it in the phpinfo() file. Also a memcached test script is working fine.

 

In prestashop i get a blank page when I enable it in the admin. When I enable it manually in the settings file every page on the store is blank. There is no error message when dev mode is turned on. 

 

Any solutions here?

Hi

 

I had the same issue with a blank page, and i resolved it through trial and error. Seems like the problem partly lies with how permissions are set up on the VPS/.

 

Check the permissions on your cache folder, that should be writable by prestashop. If the problem persists, remove the file class_index.php from the cache folder ( make a backup copy of this file please ) , though iam not sure why this works, but it has worked for me many times. I read a post somewhere made  by forum mod El Patron about this, so thanks to him. This file will be recreated automatically again by prestashop.

 

Now go to the settings.inc.php file and set cache to 0. Save the file, and then refresh the page, and your blank page problem should go away. Then set memcache to yes again. But be warned, if your permissions are not writable on the cache folder, you will get the blank page problem again on both BO and Front.

Edited by indus (see edit history)
Link to comment
Share on other sites

I've tried the things you said, but still no luck. The class_index.php file is replaced by Prestashop without a problem. So I think the permissions are fine? The screens stay white and even on debug mode there are no error's. Also the error_log file is empty. 

Link to comment
Share on other sites

  • 5 months later...

... Have anybody found any solution for this problem?

 

I get the same black page for both xcache and memcached.

 

Both xcache and memcached has been tested and is working 100%. I have the added benifit of having a dedicated server, so there is no vps limitations.

 

For me its on 1.5.6.0

Link to comment
Share on other sites

  • 2 months later...
×
×
  • Create New...