PhotoPost Photo Gallery Sales PhotoPost Sales Toll Free Phone Number
Mon-Fri 9am-4pm EST
  PhotoPost Photo Sharing Photo Gallery    Visualize community tm
| | | | | | | | |

Go Back   PhotoPost Community > PhotoPost Support > PhotoPost Pro Support Forums > Photopost Pro Installation & Upgrades

Photopost Pro Installation & Upgrades If you're having install or upgrade problems

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
Old November 9th, 2004, 05:41 AM   #1 (permalink)
Registered User
 
memdy's Avatar
 
Join Date: Sep 2002
Location: Tampa, Florida
Posts: 60
open_basedir error during 4.8.2 upgrade

We just moved to a new server and we are having problems with the open_basedir issue, after reading several posts it looks like the open_basedir errors were corrected/compensated for in the latest version. So we attempted an upgrade. But ....

While running 4.8.2 upgrade.php script I get this error at the top of the page.

---------- error msg -----------

Warning: open_basedir restriction in effect. File is in wrong directory in /home/httpd/vhosts/offshoreonly.com/httpdocs/gallery/config-inc.php on line 11

--------- error msg --------------

How do we correct the open_basedir errors?

Specs
--------------
PP 4.8.2
RedHat9
URL: http://www.offshoreonly.com/gallery
PHP Info: http://www.offshoreonly.com/gallery/phpinfo.php
Apache 2.0
PHP 4.2.2
memdy is offline   Reply With Quote
Old November 9th, 2004, 05:56 AM   #2 (permalink)
Registered User
 
memdy's Avatar
 
Join Date: Sep 2002
Location: Tampa, Florida
Posts: 60
That categories aren't showing up as well, the stats say the pics are still there but they aren't showing and i can't login to the admin either.
memdy is offline   Reply With Quote
Old November 9th, 2004, 06:53 AM   #3 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,699
In config-inc.php


if ( !isset($skip_exheader) ) {
include "header-inc.php";
}


change to

if ( !isset($skip_exheader) ) {
include "/home/httpd/vhosts/offshoreonly.com/httpdocs/galleryheader-inc.php";
}
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is offline   Reply With Quote
Old November 9th, 2004, 07:24 AM   #4 (permalink)
Registered User
 
memdy's Avatar
 
Join Date: Sep 2002
Location: Tampa, Florida
Posts: 60
I tried both

if ( !isset($skip_exheader) ) {
include "/home/httpd/vhosts/offshoreonly.com/httpdocs/galleryheader-inc.php";
}

and
if ( !isset($skip_exheader) ) {
include "/home/httpd/vhosts/offshoreonly.com/httpdocs/header-inc.php";
}

both produce the error msg below at the top of the page

----------------error msg ----------------------------

Warning: Failed opening '/home/httpd/vhosts/offshoreonly.com/httpdocs/header-inc.php' for inclusion (include_path='.:/usr/share/pear') in /home/httpd/vhosts/offshoreonly.com/httpdocs/gallery/config-inc.php on line 19

-------------- end error msg ----------------------------

Lost my vb3 style integration as well
memdy is offline   Reply With Quote
Old November 9th, 2004, 12:04 PM   #5 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,699
Notice you forgot the / between gallery and header on that one line above

galleryheader-inc.php

should be

gallery/header-inc.php
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is offline   Reply With Quote
Old November 9th, 2004, 03:10 PM   #6 (permalink)
Registered User
 
memdy's Avatar
 
Join Date: Sep 2002
Location: Tampa, Florida
Posts: 60
Good catch, thanks. So it looks better now, but what happened to all my categories and pics after the upgrade?
memdy is offline   Reply With Quote
Old November 9th, 2004, 04:03 PM   #7 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,699
I do not know what you mean an upgrade doesnt delete anything.

what steps did you do when you upgraded?
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is offline   Reply With Quote
Old November 9th, 2004, 04:35 PM   #8 (permalink)
Registered User
 
memdy's Avatar
 
Join Date: Sep 2002
Location: Tampa, Florida
Posts: 60
1. uploaded all the files for 4.8.2
2. ran /upgrades/upgrade.php
3. upgrade ran successfully, only seemed to be a handful of DB changes
4. i'm now unable to login to the Admin and all the categories are missing
5. The statistics say there are still 4,000 pictures but they are not displayed
memdy is offline   Reply With Quote
Old November 10th, 2004, 10:04 PM   #9 (permalink)
Registered User
 
memdy's Avatar
 
Join Date: Sep 2002
Location: Tampa, Florida
Posts: 60
I tried restoring my original 4.7 version and the errors are still there, it's obviously something to do with how the new server is setup and interacts with PP, but what? vBulletin and the rest of the site are working just fine.

Browse to the URL to see the errors with 4.7 (maybe i better go back to 4.8):
http://www.offshoreonly.com/gallery/index.php
memdy is offline   Reply With Quote
Old November 10th, 2004, 10:05 PM   #10 (permalink)
Registered User
 
memdy's Avatar
 
Join Date: Sep 2002
Location: Tampa, Florida
Posts: 60
Oh yeah, but the categories and pics are back after going back to 4.7. Should I try the upgrade again or fix the user_basedir problem first?
memdy is offline   Reply With Quote
Old November 10th, 2004, 10:07 PM   #11 (permalink)
Registered User
 
memdy's Avatar
 
Join Date: Sep 2002
Location: Tampa, Florida
Posts: 60
I'm having a similiar problem with the classifieds too, i think they may be related.

user_basedir error after moving to new server
memdy is offline   Reply With Quote
Old November 11th, 2004, 12:01 PM   #12 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,699
Have you set your pp_path in the config file to this

/home/httpd/vhosts/offshoreonly.com/httpdocs/gallery
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is offline   Reply With Quote
Old November 11th, 2004, 04:14 PM   #13 (permalink)
Registered User
 
memdy's Avatar
 
Join Date: Sep 2002
Location: Tampa, Florida
Posts: 60
Here is a copy of my config-inc.php and header-inc.php files

http://www.offshoreonly.com/gallery/config-inc.php.txt

http://www.offshoreonly.com/gallery/header-inc.php.txt

The only place i know to set the pp_path is in the admin GUI, where is the config file for that? It shows correctly in the GUI.

I did edit the pp-inc.php to fix the templates error message, by adding my path here.

// Little cleanup in case config-inc.php isn't current
if ( !defined('TMPL_PATH') ) {
define('TMPL_PATH', '/home/httpd/vhosts/offshoreonly.com/httpdocs/gallery/templates/');
}
memdy is offline   Reply With Quote
Old November 11th, 2004, 06:42 PM   #14 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,699
You using a prior version and not the current thats fine what you did
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is offline   Reply With Quote
Old November 11th, 2004, 08:27 PM   #15 (permalink)
Registered User
 
memdy's Avatar
 
Join Date: Sep 2002
Location: Tampa, Florida
Posts: 60
The categories and pics are back, but i'm still getting the user_basedir errors.

-------------- begin errors -----------------

Warning: open_basedir restriction in effect. File is in wrong directory in /home/httpd/vhosts/offshoreonly.com/httpdocs/gallery/pp-inc.php on line 54

Warning: open_basedir restriction in effect. File is in wrong directory in /home/httpd/vhosts/offshoreonly.com/httpdocs/gallery/pp-inc.php on line 54

Warning: open_basedir restriction in effect. File is in wrong directory in /home/httpd/vhosts/offshoreonly.com/httpdocs/gallery/pp-inc.php on line 157

Warning: open_basedir restriction in effect. File is in wrong directory in /home/httpd/vhosts/offshoreonly.com/httpdocs/gallery/pp-inc.php on line 157

Warning: open_basedir restriction in effect. File is in wrong directory in /home/httpd/vhosts/offshoreonly.com/httpdocs/gallery/pp-inc.php on line 158

Warning: open_basedir restriction in effect. File is in wrong directory in /home/httpd/vhosts/offshoreonly.com/httpdocs/gallery/pp-inc.php on line 158

Warning: open_basedir restriction in effect. File is in wrong directory in /home/httpd/vhosts/offshoreonly.com/httpdocs/gallery/pp-inc.php on line 2071

Warning: open_basedir restriction in effect. File is in wrong directory in /home/httpd/vhosts/offshoreonly.com/httpdocs/gallery/pp-inc.php on line 2071

Warning: open_basedir restriction in effect. File is in wrong directory in /home/httpd/vhosts/offshoreonly.com/httpdocs/gallery/index.php on line 30

Warning: open_basedir restriction in effect. File is in wrong directory in /home/httpd/vhosts/offshoreonly.com/httpdocs/gallery/index.php on line 30

Warning: open_basedir restriction in effect. File is in wrong directory in /home/httpd/vhosts/offshoreonly.com/httpdocs/gallery/index.php on line 31

Warning: open_basedir restriction in effect. File is in wrong directory in /home/httpd/vhosts/offshoreonly.com/httpdocs/gallery/index.php on line 31

Warning: open_basedir restriction in effect. File is in wrong directory in /home/httpd/vhosts/offshoreonly.com/httpdocs/gallery/login-inc.php on line 15

Warning: open_basedir restriction in effect. File is in wrong directory in /home/httpd/vhosts/offshoreonly.com/httpdocs/gallery/login-inc.php on line 15

------------------ end errors -------------------

How do I fix this open_basedir problem?

URL to Gallery: http://www.offshoreonly.com/gallery
memdy is offline   Reply With Quote
Old November 11th, 2004, 08:30 PM   #16 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,699
Yep your php is locked and these must be set. I would if I where you download 4.8 which has the pp_path variable before every file call
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is offline   Reply With Quote
Old November 11th, 2004, 08:32 PM   #17 (permalink)
Registered User
 
memdy's Avatar
 
Join Date: Sep 2002
Location: Tampa, Florida
Posts: 60
Upgrading now .....be right back
memdy is offline   Reply With Quote
Old November 11th, 2004, 09:19 PM   #18 (permalink)
Registered User
 
memdy's Avatar
 
Join Date: Sep 2002
Location: Tampa, Florida
Posts: 60
After uploading all the files for the upgrade, except config-inc.php and install.php then I went to /upgrades/upgrade.php and i got this error

-------------- begin error message --------------------

Warning: open_basedir restriction in effect. File is in wrong directory in /home/httpd/vhosts/offshoreonly.com/httpdocs/gallery/upgrades/upgrade.php on line 15

Fatal error: Failed opening required 'config-inc.php' (include_path='.:/usr/share/pear') in /home/httpd/vhosts/offshoreonly.com/httpdocs/gallery/upgrades/upgrade.php on line 15

-------------------- end error msg -------------------------

So I edited upgrade.php and put "../" in front of the config-inc.php like this....

require "../config-inc.php";

That seemed to solve the upgrade.php errors, i ran 4.7x->4.8 ( i was running 4.7j)

Upgrade script ran but got errors. Here's the output:

----------------- begin --------------------------
Preparing to reorganize admin options...
ALTER TABLE categories DROP INDEX lastphoto failed with error: Can't DROP 'lastphoto'. Check that column/key exists
ALTER TABLE categories DROP INDEX thumbnail failed with error: Can't DROP 'thumbnail'. Check that column/key exists
ALTER TABLE iponline DROP INDEX userid failed with error: Can't DROP 'userid'. Check that column/key exists
ALTER TABLE photos DROP INDEX approved failed with error: Can't DROP 'approved'. Check that column/key exists
ALTER TABLE photos DROP INDEX date failed with error: Can't DROP 'date'. Check that column/key exists


Done! You can now remove this file and check out your new Admin Options layout!

--------------- end ---------------------

Should I be concerned about the above errors? The upgrade looks successful, all the categories and pics are there.

Next i edit the header-inc.php to integrate with vBulletin again, then i get errors.

------------------ begin error msg ----------------------------
Warning: open_basedir restriction in effect. File is in wrong directory in /home/httpd/vhosts/offshoreonly.com/httpdocs/gallery/pp-inc.php on line 63

Fatal error: Failed opening required './languages/english/pp-inc.php' (include_path='.:/usr/share/pear') in /home/httpd/vhosts/offshoreonly.com/httpdocs/gallery/pp-inc.php on line 63
----------------- end error msg --------------------------------

So now what?
memdy is offline   Reply With Quote
Old November 12th, 2004, 08:44 AM   #19 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,699
What is your config-inc.php pp_path set to?

Here is line 63

require "{$Globals['PP_PATH']}/languages/$pplang/pp-inc.php";


Do you see why I am asking you what it is set to?
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is offline   Reply With Quote
Old November 12th, 2004, 09:19 AM   #20 (permalink)
Registered User
 
memdy's Avatar
 
Join Date: Sep 2002
Location: Tampa, Florida
Posts: 60
Thanks OT i don't know why of all the times i've installed PP this was such a beast. It's working now. The PP path was set to "." i guess i was looking right over it each time. Is that in config file somewhere or only set in the DB? Surely i would have seen it in a config file somewhere.
memdy is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
open_basedir errors after php upgrade Quincy Wisdom Photopost Pro Installation & Upgrades 4 April 2nd, 2005 08:25 AM
open_basedir error upon integration with vB3 Quincy Wisdom Classifieds Installation & Upgrades 2 February 20th, 2005 04:15 PM
More open_basedir errors bamaster ReviewPost Bug Reports 5 January 1st, 2005 09:54 AM


All times are GMT -5. The time now is 06:35 PM.

Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0