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 April 3rd, 2006, 03:31 AM   #1 (permalink)
Junior Member
Verified Customer
 
Join Date: Apr 2006
Posts: 8
Cannot login to PP directly

I'm installing PP for the first time, integrating with VB3. Having changed the VB3 image paths in the StyleVars for the Default Style from relative to absolute, I am able to successfully view PP, and to reach the Admin panel (via the link in the PP navbar). However, I can only view PP if I am currently logged into the forum.

If I attempt to access PP or the PP Admin panel directly (i.e. before logging into the forum first), the login fails. On failure, an extract of the php error log reports:

"File does not exist: ... /public_html/photos/clientscript/vbulletin_md5.js"

Based on the paths and URL's that I've set in the PP settings and in config-inc ($PP_PATH) and config-int ($vbpath, $pppath, $url_path, $vb_urlpath), I would expect that PP would correctly locate ../clientscript within the VB3 path, but instead is looking for it under ../photos/ (my PP location)?


INSTALLATION DETAILS

o/s: FreeBSD
php: v4.3.11
mySql: v4.1.9
forum: vBulletin v3.5.3
____________________

COOKIE SETTINGS

In PP, I have the cookie settings as follows:
PhotoPost Cookie Path: /
Forum Cookie Prefix: bb
PhotoPost Cookie Domain: (blank)

In VB3 options, I have the cookie settings as follows:
Path to Save Cookies: /
Cookie Domain: (blank)
And in the VB3 config file:
$config['Misc']['cookieprefix'] = 'bb';
dr-agon is offline   Reply With Quote
Old April 3rd, 2006, 05:58 AM   #2 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,689
You have guests locked down to view nothing on your site meaning your using some vb login template shown over photopost. To have that work you would need to correctly edit the links in that vb template to point to the forum by full url not relative. Your login does not work because it is looking for it in the photos directory

Gotta love the relative urls in vbulletin
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.

Last edited by Chuck S; April 3rd, 2006 at 06:01 AM.
Chuck S is offline   Reply With Quote
Old April 3rd, 2006, 08:04 AM   #3 (permalink)
Junior Member
Verified Customer
 
Join Date: Apr 2006
Posts: 8
Internal Server Error

Many thanks. I had suspected that my customisation of the STANDARD ERROR template may have caused a problem over the weekend. So I reverted that template back to the original in my test install (and found another way of achieving the result I was aiming for so I can revert to the original in live also). I should have mentioned that I have been using my test install (/testvb/) since, with the standard template, to work on the PP integration.

With Chuck's pointer, I was able to eliminate the 3 errors that were appearing on my error log, relating to the following files not being found:

vbulletin_md5.js
vbulletin_global.js
vbulletin_menu.js

These were caused by relative references in the following VB3 standard templates: "STANDARD_ERROR" and "headinclude". I've amended these 2 templates and am not getting the errors in the log now...


Unfortunately, I mistook the errors in the log as being related to the main problem I'm having, since the behaviour reported above is still occuring and I'm getting the following when I attempt to log in to PP directly (which is what was being displayed before also, although I didn't mention it):

"Internal Server Error, this is an error with your script, check your error log for more information."

What's more, there's nothing being posted in the error log that I'm looking at. Since I'm not very technical, I'm wondering if there's more than one error log and I'm looking at the wrong one, or perhaps it's common for this generic error to not have an error message posted?

In any case, I'm not sure where to go from here?
dr-agon is offline   Reply With Quote
Old April 3rd, 2006, 08:18 AM   #4 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,689
I doubt your ever logging into Photopost directly since we do not show a login prompt in Photopost in vb integration.

http://www.domain.com/photos/

This is the url to your photopost that I see

What is the url you use to try and login EXACTLY?
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.

Last edited by Chuck S; April 5th, 2006 at 12:53 PM.
Chuck S is offline   Reply With Quote
Old April 3rd, 2006, 08:43 AM   #5 (permalink)
Junior Member
Verified Customer
 
Join Date: Apr 2006
Posts: 8
Url

Yes, that's the URL I'm using exactly.

Agreed, users will normally login via the forums and so bypass the problem. There are 2 specific exceptions that I'm trying to deal with, though:

1) If one member shares a PP link with another (say to a specific photo), then, unless they happen to be logged into the forum already, they will be directed to the login screen (since the forum requires Registration), and this login is routed from PP, and hence the user gets the Internal Server error.

2) I would like to access the Admin panel without going through the steps of logging into the forum, clicking on Photos in the VB3 navbar, then clicking on Admin on the PP navbar. Although, I can definitely live without this one...

so, it's really 1) above that I need a solution (or workaround!) for.

Many thanks!
dr-agon is offline   Reply With Quote
Old April 3rd, 2006, 08:49 AM   #6 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,689
As stated this issue with with your login template in vbulletin. You need to edit that template and correct that relative url to a full url to the vb login.php or the file will not be found.

I beleive the template you want to edit is this

STANDARD_ERROR
__________________
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 April 3rd, 2006, 09:37 AM   #7 (permalink)
Junior Member
Verified Customer
 
Join Date: Apr 2006
Posts: 8
Much better!

Fantastic!... thanks, Chuck. I looked at STANDARD ERROR again and corrected a couple of relative links I'd missed, and now the Member login works nicely.

The Admin login is still behaving strangely, though...Do you know of another standard VB3 template I need to correct to get the PP Admin panel login cleanly executed?

...If I go to http://domain.com/photos/adm-index.php and login, I get sent to the VB3 login screen and the address is shown as ..photos/misc.php. When I login there, it displays a redirect message, then displays a blank page. I can, however, get logged onto Admin, but it takes these 5 steps:
1) Log in to Forum
2) Goto PP home
3) Click on Admin...I get sent to the light blue PP admin login
4) Click Submit...takes me back to PP home
5) Click Admin a second time...I'm into PP admin panel.

Many thanks.

Last edited by Chuck S; April 5th, 2006 at 12:53 PM.
dr-agon is offline   Reply With Quote
Old April 3rd, 2006, 10:24 AM   #8 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,689
Check your cookie settings more than likely your missing the cookie prefix in your cookie settings which is normally bb in a default vb install
__________________
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 April 3rd, 2006, 11:48 AM   #9 (permalink)
Junior Member
Verified Customer
 
Join Date: Apr 2006
Posts: 8
Cookies

I've rechecked the cookies and they look spot on.

They are set as follows:

In PP, I have the cookie settings as follows:
PhotoPost Cookie Path: /
Forum Cookie Prefix: bb
PhotoPost Cookie Domain: (blank)

In VB3 options, I have the cookie settings as follows:
Path to Save Cookies: /
Cookie Domain: (blank)
And in the VB3 config file:
$config['Misc']['cookieprefix'] = 'bb';

Is there anywhere else that I should be setting the prefix?

I tried changing the Cookie domain to .nsrdragonstar.com, but then I get duplicate cookies, one with host .nsrdragonstar.com and one with host www.domain.com, and so it got worse...so, I changed it back to blank.

I double checked the settings table and that reflects what I set in the PP admin panel.

Last edited by Chuck S; April 5th, 2006 at 12:53 PM.
dr-agon is offline   Reply With Quote
Old April 3rd, 2006, 11:54 AM   #10 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,689
Change your domain back to .doman.com in both vb3 and photopost.

Clear all cookies in your computer and login again. There is only one cookie created
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.

Last edited by Chuck S; April 7th, 2006 at 07:19 AM.
Chuck S is offline   Reply With Quote
Old April 3rd, 2006, 12:12 PM   #11 (permalink)
Junior Member
Verified Customer
 
Join Date: Apr 2006
Posts: 8
Cookies

Yep, you're right. I've changed the domain to .nsrdragonstar.com in both PP and VB3, and it does actually create a unique set of cookies.

However, the PP Admin login behaviour is the same as when I had the domain as (blank). So, I'm stuck again. Any suggestions?

Last edited by dr-agon; April 3rd, 2006 at 03:25 PM.
dr-agon is offline   Reply With Quote
Old April 4th, 2006, 12:30 PM   #12 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,689
You do not have your cookies set right or the license number

Photopost cookie settings should be this

cookie path /

cookie prefix bb

cookie domain .domain.com

Your vb license number is at the top of every vb file and must be entered exactly in the config-inc.php file of photopost in the $vblicense variable.

Most common mistake on vb installs is customer does not input the proper prefix or incorrect vb license number and these are crutial. The vb password cookie is a encrypted hash of these two variables and the user password and the user will not authenticate without this.
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.

Last edited by Chuck S; April 5th, 2006 at 12:53 PM.
Chuck S is offline   Reply With Quote
Old April 4th, 2006, 01:27 PM   #13 (permalink)
Junior Member
Verified Customer
 
Join Date: Apr 2006
Posts: 8
Checked again

Hi Chuck

I've checked these items once again, and they are both set correctly. Cookie's show up in the PP Admin exactly as you have indicated, and the licence number is in config-inc.php - I even cut and paste from a VB script again just to make certain, and get same result.

My current thinking is that it may have something to do with the fact that both VB3 and PP have a file called misc.php, and that they are getting mixed up due to a relative reference in some standard VB template that is being called. The reason being that when I do get logged into the PP admin panel the address bar shows /photos/adm-index.php, but when I try to login directly (and get the blank screen) the address bar shows /photos/misc.php. Unfortunately I haven't found such a template yet.

Many thanks

Last edited by dr-agon; April 4th, 2006 at 01:30 PM.
dr-agon is offline   Reply With Quote
Old April 4th, 2006, 04:09 PM   #14 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,689
I can only tell you what I see.

Your Photopost is completely integrated with vb fine. It shows the admin button and your logged in with Photopost and vb but when you click the admin button you need to login again.

There are many threads on this and the only issue this can be that I know of is the fact the cookie prefix or license number are incorrect.

Now do a test undo that very restrictive login thing you have for vb and see if things work properly
__________________
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 April 5th, 2006, 12:03 PM   #15 (permalink)
Junior Member
Verified Customer
 
Join Date: Apr 2006
Posts: 8
All resolved...with a little help!

OK, thanks for your commitment to seeing this through, Chuck. Here's the story of where I'm at and how I got there...

...I tried what you suggested, to try relaxing the options. The way I lock the whole site out to non-members is to set the default "Can View Forum" permissions for the "Unregistered / Not Logged In" to No. So, I changed this to Yes, and tried again..no difference.

At this point my wife began to get fed up with my whining and sat down with me for some debugging (she used to be a Unix programmer), and in the course of that discussion, it was identified that when I switched the integration of PP with my VB3 test instance, instead of the live one, I didn't change the User database setting in config-inc. This is what led to be a strange login loop that was making it so tough to get into the PP admin! I fixed the config file, and now I can get into PP admin via the Admin link on the PP home page (i.e. so long as I log into the user front end first).

I still cannot log straight into PP admin directly from adm-index.php (displays a blank screen), but I figure that maybe it was never intended to get directly into admin without first logging into the front end, in a VB integrated configuration. In any case I'm happy going via PP home page.

In summary, the key to the problems I was having was down to the relative URLs in the VB3 STANDARD_ERROR and headinclude templates.

Thanks again, Chuck.
dr-agon is offline   Reply With Quote
Old April 5th, 2006, 12:40 PM   #16 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,689
Yep no problems
__________________
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 September 17th, 2006, 09:41 PM   #17 (permalink)
Member
Verified Customer
 
Join Date: Sep 2006
Posts: 35
Could somebody point me in the right direction here. Not being a php or html person. Is the relative URL, the bit following the "src= and what should the path be.

<script type="text/javascript" src="clientscript/vbulletin_global.js?v=$vboptions[simpleversion]"></script>

My forums are on /home/carandim/public_html/forums.

Oh, and they are vB3.6.0
Sky Pilot is offline   Reply With Quote
Old September 18th, 2006, 08:45 AM   #18 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,689
we auto rewrite relative urls but yes after the src="
__________________
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
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
What does this mean, Security Alert! The PHP CGI cannot be accessed directly? mike001 Photopost Pro Installation & Upgrades 1 December 20th, 2005 05:41 PM
users can access images directly but shouldn't be able to Happy Camper Installs and Upgrade - vBulletin 3.0.X 10 August 29th, 2005 07:43 AM
No way to renew or cancel ad directly? robferrari Classifieds Bug Reports 5 August 18th, 2005 08:40 AM
Upload files directly from the server imported_420 Installs and Upgrade - vBulletin 3.0.X 5 December 28th, 2004 01:13 AM


All times are GMT -5. The time now is 05:40 AM.

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