Setup fails - Unable to find the wrapper "tcp"

I've been struggling to install Zenphoto on a new host. I got most of it working but I kept getting
“Zenphoto has detected a change in your installation. The script functions-basic.php has changed. The change detected may not be critical but you should run setup at your earliest convenience.”
Then, when I attempted to run setup:
“Warning: file_exists(): Unable to find the wrapper "tcp" - did you forget to enable it when you configured PHP? in /var/sites/l/[domain]/public_html/ZenGallery/zp-core/setup/index.php on line 27
Fatal error: session_start(): Failed to initialize storage module: memcache (path: /var/sites/l/[domain]/public_html/ZenGallery/zp-data/PHP_sessions) in /var/sites/l/[domain]/public_html/ZenGallery/zp-core/setup/index.php on line 32”
In the end, I assumed I'd done something wrong in the set-up. So I copied my /albums folder somewhere safe, deleted the entire installation folder and started again from scratch. The MySQL database was left as-is.
I downloaded the latest version (1.4.9), un-zipped it into a new installation folder and FTP uploaded this to my web-space. Following the installation instructions, I navigated to my gallery folder but the set-up script again crashed with the identical warning and fatal error messages
Line 32 of index.php = “$session = session_start();”
The script has executed the lines immediately before this to create /ZenGallery/zp-data/PHP_sessions. It hasn't got as far as asking me to input my database details.
What am I doing wrong?

Comments

  • acrylian Administrator, Developer
    The warning is explained here: http://www.zenphoto.org/news/installation-and-upgrading#re-running-and-re-uploading-setup-files

    The other errors seem to be a server configuration issue.The 2nd error is a follow up of the first “Warning: file_exists(): Unable to find the wrapper "tcp" - did you forget to enable it when you configured PHP?. Please contact your host about that.
  • Thanks Acrylian.
    Apologies for not getting back to you on this.
    Yes, it seems to be a host issue. I've had some assistance from my host, together with a couple of points explained:

    “You are getting the error as our Cloud uses memcache to store PHP sessions. And the CMS that you are trying to install by default saves the sessions in files.”

    “Our Cloud Application installer works okay only if your site PHP version is set to 5.3 otherwise it does create issues. You can omit this issue by only changing your site PHP version temporally before install to PHP 5.3”

    Unfortunately, I'm still struggling to sort out these issues. So I've not yet managed to run the setup script successfully. I'll report back on the eventual outcome.

    Best regards
    Bob
  • acrylian Administrator, Developer
    We had a similar ticket discussion on the server cache path and wrappers recently you might want to review: https://github.com/zenphoto/zenphoto/issues/951
  • I went back to the host on this (Compila, now Vidahost)and they completed the installation for me. So problem solved.

    Best regards
    Bob
  • acrylian Administrator, Developer
    Thanks for the heads up!
Sign In or Register to comment.