Search the Community
Showing results for tags 'cloud hosting'.
-
I've recently had to install a couple of processwire sites on a cloud hosting service (TSO Host) and have had the same issue arise on both occasions. What happens is that when you try and access any page of the site, an error message - "Unable to complete this request due to an error. Error has been logged" - is displayed. Inspecting the log revealed this particular error: 2013-12-03 05:23:34 ? http://rebeccacharlton.com.gridhosted.co.uk/?/ Error: session_start() [function.session-start]: Failed to initialize storage module: memcache (path: ) (line 104 of /var/sites/r/rebeccacharlton.com/public_html/wire/core/Session.php) A simple fix I found on these forums was to comment out line 155 on the root index.php file: ini_set("session.save_path", rtrim($config->paths->sessions, '/')); But I was wondering whether there might be a more thorough fix than this... I think the problem stems from the fact that on cloud hosting, the root isn't the simple root because you're on a shared server with many other sites. One attempt to solve the problem was to find the true root using: echo $_SERVER['DOCUMENT_ROOT']; and then replacing the "/" on line 155 with the result but this caused the same problem as before. Only commenting out the line entirely worked as a solution but this feels somewhat like a compromise. Any help to resolve the issue would be much appreciated! Many thanks in advance, ben