zenpress install fatal error Warning: file_exists

First off Thank you for putting so much time into something that you are giving away for free!

I've set up zen-photo at the following location
http://www.vtbeach.com/condo-photos/

I have a wordpress blog at this location
http://www.condosrehobothbeach.com/condo-info/

I've got as far as activating the plugin and seeing the ZP icon in wordpress but the following is the error code I get when I click the icon.

I am not a programmer and seem to be having some problems that the following error code may be able to assist me in finding a solution.

The Zen photo site is on a godaddy site and I quite honestly don't know what the full path to the server is. Is there an easy way to find out?

Thank you in advance!!!! If you are looking for donations I am happy to send some $$ for a solution.

Warning: file_exists() [function.file-exists]: open_basedir restriction in effect. File(/vtbeach.com/condo-photos/zen/zp-config.php) is not within the allowed path(s): (/var/www/vhosts/condosrehobothbeach.com/httpdocs:/tmp) in /var/www/vhosts/condosrehobothbeach.com/httpdocs/condo-info/wp-includes/js/tinymce/plugins/zenpress/popup_zp.php on line 54

Warning: file_exists() [function.file-exists]: open_basedir restriction in effect. File(/vtbeach.com/condo-photos/zen/config.php) is not within the allowed path(s): (/var/www/vhosts/condosrehobothbeach.com/httpdocs:/tmp) in /var/www/vhosts/condosrehobothbeach.com/httpdocs/condo-info/wp-includes/js/tinymce/plugins/zenpress/popup_zp.php on line 57

Comments

  • did you set the paths under wordpress

    You need to set the base path which (according to your post) should be :
    http://www.vtbeach.com/condo-photos/

    and your Zenphoto admin path which (according to your post) should be :
    /var/www/vhosts/vtbeach.com/condo-photos/zen/

    now those are simply guesses.. I may or may not be right

    One concern of mine for you is you are working off of 2 seperate domain names. Not sure if they are on 2 seperate servers or what the configuration is but definately check your paths under wordpress->options->zenpress

    to be more certian about your paths.. stuff a phpinfo(); into blank page and upload it to your server and check for your actual paths
  • They are indeed on different servers. Will this be a problem?
  • I must have misunderstood about the blank page because here are my results

    http://vtbeach.com/path.php
  • Ok, I did a little more research and changed the http://vtbeach.com/path.php page so that I get some output.

    Can someone smarter than myself tell me what my path should be?

    is it .:/usr/local/lib/php

    or

    /home/content/o/c/e/oceanatlantic/html

    or

    /bin:/usr/bin:/usr/local/bin

    ??? As i said I'm not a programmer and I'm a little lost. I've been working on this all day with very slow progress. I had a lot quicker luck with wordpress and zen-photo than I am having with this. It's probable something very simple.
  • lines 54 and 57 from the error code. Do I need to change these paths as well?

    if (!file_exists($zp_admin_path.'/zp-config.php')) {
    $zp_eh->addWarning(__('File zp-config.php not found. Looking for config.php','zenpress'));
    // Support for past Zenphoto versions
    if (!file_exists($zp_admin_path.'/config.php')) {
    $zp_eh->addFatal(__('Cannot find Zenphoto configuration file.','zenpress'));
  • without having the ability to test this I would say you will not be able to do this.

    You cannot grab the zp-config.php from a remote system and use its information. That would be a pretty big security hole. Cause if you could then I could and everyone else.. catch my drift..

    Without having the ability to test this I would say you cannot do that.. but maybe someone can confirm...
  • I guess I'll be installing zen-photo on my other server.....

    I was going to use the godaddy server as an image server because bandwidth there costs me less, but if I have to I guess I'll stick it on my rackspace server. I plan on hosting hundreds of photos.

    There are however plugins that will display flickr. com images on wordpress and i was originally thinking I could do the same with zen.
  • @Coastal-

    There are indeed plugins for zenphoto as well. Zenpress is a plugin that allows you to add photos in your posts through wordpress from your zenphoto gallery. I use it myself at http://www.bushwoodworking.com. Zenpress is made by a nice guy named Simbul (who sometimes lurks here from time to time) and is located here: http://simbul.bzaar.net/zenpress/

    There is also a zenshow plugin, which allows you to display a specified number of images, or albums, or even random images from your gallery. It is also used at my link above for the random header image I show (I customized the sizing a bit myself to fit the theme). Zenshow is usually located here: http://www.ruicruz.com/zenshow/ but the site is off (down) right now (not sure why). I can send you a copy of the latest version if you want, please email me at craig (at) thinkdreams.com.
  • I know a little about zenpress. I have it installed and am trying to get it to work. But my question is can it call photos from a different server? I have one server with wordpress on it and another server with Zen-photo. If I were only planning on using 10-20 photos I would be happy to put it on the same server but I plan on hosting hundreds and having a good deal of traffic.
  • Zenpress I believe requires the ability to access zp-config information, and as such, would probably not work, and if it did would be efficient to do so across multiple ISP linkages.

    If you are planning on having lots of traffic, a local install would be best anyway, as -theoretically- what happens if one ISP is down, and people cannot get to the other system. For example, your wordpress blog running on rackspace, has a zenshow or zenpress plugin installed, but your goDaddy account is down. Then, neither you nor your internet customers will be able to access pictures.

    I'm coming from a network administration standpoint and it's a good practice to always want to make sure you have your resources in the same spot for both security and performance reasons.

    This is just a suggestion, I would "pilot" or test the solution first using a demo database setup, and see what your results are.
  • And sorry, I meant to say inefficient in the above post, not efficient.
Sign In or Register to comment.