PhotoPost Community

PhotoPost Community (http://www.photopost.com/forum/)
-   Photopost Pro How Do I...? (http://www.photopost.com/forum/photopost-pro-how-do-i/)
-   -   Cant make changes in admin cp (http://www.photopost.com/forum/photopost-pro-how-do-i/146244-cant-make-changes-admin-cp.html)

scalemotorcars August 2nd, 2011 10:18 AM

Cant make changes in admin cp
 
Ok I know the problem but I cant seem to fix it. My Storage Options are set to the old server but I try to change them and all I get is the sidebar and a blank frame. Now when I did the migration I was able to change paths in the admin but for some reason I cant do it any longer. Anything I try to change just reverts tot he sidebar and blank frame.

I cant turn on or off the gallery.

I can see photos when logged in as admin. All members see is the closed message.

Completely stuck....:confused:

Chuck S August 2nd, 2011 10:43 AM

You can send a url and admin log to the contact us link I have never seen such an issue.

You can also try rerunning the install.php script installing into the same database tables and it should update all settings without deleting anything. Or alternatively edit that setting in your pp_ settings table to the correct server path.

scalemotorcars August 2nd, 2011 11:24 AM

Well I went with changing it in the DB and its displaying fine now but still couldn't open or close the gallery so I opened it in the DB. Fine now its open but I go to upload an image and still no luck it just loops back to the upload page.

scalemotorcars August 2nd, 2011 12:27 PM

Ok I finally found the install.php. This might be a dumb questions but wouldn't that overwrite the existing database. We don't want to do that.. :)

Chuck S August 2nd, 2011 12:32 PM

You can not overwrite a database persay. Running the install script into tables that exist will give you duplicate errors no big deal when installing the main stuff but alot of the install script is inputting urls server paths etc and we update the tables which means running the install will make sure all urls and server paths are what you want them to be.

scalemotorcars August 2nd, 2011 12:36 PM

Step 2 install error. As far as I can tell setting are right.
Quote:

Warning: is_file() [function.is-file]: open_basedir restriction in effect. File(/usr/bin/mogrify) is not within the allowed path(s): (/home/:/usr/lib/php:/usr/local/lib/php:/tmp) in /home/p16t2ugb/public_html/gallery/install.php on line 533


Step 2: Checking Your Server

This set will try to verify the location of MOGRIFY in your config-inc.php. If you have set these variables properly, you should get a OK FOUND message. This indicates that PhotoPost can see those files (but did not execute them). If you get a WARNING, you should edit your config-inc.php file to fill in proper path (remember, they should point to the file - not just the directory!).

Paths to executables may not contain spaces - if using long filenames, use the short version.

Testing MOGRIFY at: /usr/bin/mogrify.... WARNING!
Cannot find ImagicMagick's MOGRIFY command listed as: /usr/bin/mogrify
Be sure that the name of the executable is listed in this variable and that there are no spaces in the path to mogrify.There were 1 WARNING message(s). If you are okay with the warnings, you may continue, otherwise GO BACK to change your config-inc.php or click refresh to try again!
Verification Completed!

The next step will configure your database.
Now I thought my old PP was on MOGRIFY at least the old config file shows it but my forum is running GD. Should I remove MOGRIFY and use GD in the first install page?

scalemotorcars August 2nd, 2011 12:43 PM

Ya I just tool a look in the admin and its set to GD2 there and MOGIFY in Config. Could this be the issue?

Chuck S August 2nd, 2011 12:52 PM

You should be using GD2 that error is simply telling you that open_basedir is set therefore you can not use mogrify and any program outside your own server path. You just need to roll through an install specifying correct info to update your urls paths.

scalemotorcars August 2nd, 2011 01:06 PM

No luck now the entire gallery is gone.

Warning: chdir() [function.chdir]: No such file or directory (errno 2) in /home/p16t2ugb/public_html/gallery/header-inc.php on line 57

Warning: require(./global.php) [function.require]: failed to open stream: No such file or directory in /home/p16t2ugb/public_html/gallery/header-inc.php on line 58

Warning: require(./global.php) [function.require]: failed to open stream: No such file or directory in /home/p16t2ugb/public_html/gallery/header-inc.php on line 58

Fatal error: require() [function.require]: Failed opening required './global.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/p16t2ugb/public_html/gallery/header-inc.php on line 58

scalemotorcars August 2nd, 2011 01:09 PM

From this forum it seems to be the last step but I checked the config.int and it looks right.

// We need to know the server paths to both your vB installation and your PhotoPost installation
$vbpath = "/home/p16t2ugb/public_html/forum";
$pppath = "/home/p16t2ugb/public_html/gallery";

Chuck S August 2nd, 2011 01:27 PM

Your error is saying the complete opposite it is saying we can not find the vb global.php file based off the path entered there. I would triple check the forum path.

scalemotorcars August 2nd, 2011 01:37 PM

/home/p16t2ugb/public_html/forum

Right off my CP Panel and the exact same in PP Classifieds. ???

/home/p16t2ugb/public_html/classifieds

Chuck S August 2nd, 2011 01:56 PM

If your vb path is correct in the vbpath line in the config-int.php file your page should load the only time we see the error your stating is if the path is wrong sometimes users leave classifieds in the forum path which is wrong

scalemotorcars August 2nd, 2011 02:15 PM

Using forumpath.php I got the same exact line. Heres an exact copy of the config.int

Quote:

// We need to know the server paths to both your vB installation and your PhotoPost installation
$vbpath = "/home/p16t2ugb/public_html/forum";
$pppath = "/home/p16t2ugb/public_html/gallery";

// We need the URL path to your PhotoPost and vb installation
$url_path = "http://www.scalemotorcars.com/gallery";
$vb_urlpath = "http://www.scalemotorcars.com/forum";

// The URL of your photo dir where your images are stored (with / at end)
$data_dir = "http://www.scalemotorcars.com/gallery/data/";

// If your PhotoPost tables have a prefix, put it here
// Example:
// pp_ = "pp_";
$pp_db_prefix = "pp_";

// If you use the mobile phone integration, set this variable to the CatID for the gallery
define( MOBILE_CAT, -1 );

//------------------------------------- vB3 -----------------------------------------//
// VB3_INTEGRATION is for using vB3 or vB4 headers/footers and styles
// VB3_ENHANCEDINT is for Enhanced vB3 or vB4 Integration (using vB3 or vB4 elements in PhotoPost)
// requires that VB3_INTEGRATION also be set to 'on'
// VB3_COMMWYSIWYG is for turning on the WYSIWYG interface on the Post A Comment page
// if you set this to 'off' then only the standard input box will appear
//
// Set to 'on' to enable specific integrations
define(VB3_INTEGRATION, 'on');
define(VB3_ENHANCEDINT, 'on');
define(VB3_COMMWYSIWYG, 'on');
//-----------------------------------------------------------------------------------//


//------------------------------------- vB2 -----------------------------------------//
// VB2_INTEGRATION is if you are using vB2 and want to use the vB2 integration
define(VB2_INTEGRATION, 'off');
//-----------------------------------------------------------------------------------//


//---------------------------------- vB2 Portal -------------------------------------//
// To use set path and set flag to 'on'
define(VBP2_INTEGRATION, 'off');
$vbportal="/home/sites/yoursite/web/vbportal";
//----------------------------------------------------

scalemotorcars August 2nd, 2011 02:24 PM

Ok that was weird. I checked the file in my CP Panel and it wrong. On Filezilla it was right. Changed it and I now have the gallery back. I did notice a warning as I did a test upload. Photo uploaded fine and seems to work but can you tell me what this error is for?

Quote:

Warning: file_exists() [function.file-exists]: open_basedir restriction in effect. File(/usr/bin/jpegtran) is not within the allowed path(s): (/home/:/usr/lib/php:/usr/local/lib/php:/tmp) in /home/p16t2ugb/public_html/gallery/image-inc.php on line 754
In all options, Image processor is set to GD2

Configuration page still has this on last line.. /usr/bin/mogrify

scalemotorcars August 2nd, 2011 02:32 PM

You know while were at it any ideal why I also get this error when I log in.
Using vbseo 3.6 if that matters...

well that parsed the link it did read scalemotorcars/gallery

Chuck S August 2nd, 2011 02:32 PM

As previously noted above your new server has open_basedir set so you can not use any server program outside your own webroot. Therefore in global options in admin remove any paths to say jpegtran jhead etc as you can not use those.

scalemotorcars August 2nd, 2011 03:08 PM

Cool that fixed the error with upload. So my server is set to Safe Mode???

Any ideal about the redirect error?

Chuck S August 2nd, 2011 03:48 PM

open_baseir is on not safe mode. if safe mode was on you would not be able to upload.

cant say about any vb redirect thing without seeing what you mean.

scalemotorcars August 2nd, 2011 04:10 PM

1 Attachment(s)
If Im logged out and I happen to log in from any gallery page I get this redirect notice. All I have to do is click the forum but its still an error and my members might not feel as carefree about it.


All times are GMT -5. The time now is 10:30 AM.

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


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97