View Single Post
Old March 5th, 2005, 02:34 PM   #3 (permalink)
jcall
Registered User
 
Join Date: Dec 2004
Posts: 26
<disclaimer>
This is a long, verbose post. I tried to be as narrative as possible while troubleshooting, to answer any questions that might arise as to what I've tested and changed, as well as the results I've seen.

Read on.
</disclaimer>

I'd already edited both files, checked for whitespace before the <? php (didn't find any) and after the ?>. phpbb2.php had one extra line, which I deleted. The error persists. I've tried in IE and Firefox.

I'll re-upload, minus the 2 config files, as you suggested.

I just re-uploaded every file except for the config-inc.php and config-int.php. I uploaded not just the main directory, but *all* files from the photopost5.zip file, including stylesheets, language files, etc. I verified the permissions on the upload and data (and subdirs) directories - - they were still 777.

Now, let's try again. First, IE. Seems ok (after I renamed install.php) at first glance, my browser remembered the cookie and I'm logged in. I can't logout. Says that logout is successful, but then I'm still logged in. I'll close the browser, re-open it, clear history, cache and cookies, close the browser, re-open it, and try again.

Ok, now I'm not logged in. I'll login. Can't login. I tried 2 different users. It says that they're both invalid user/password combinations. I login to phpbb as one of those users, then switch back to PP. I'm logged in, with an Admin link (but I'm not an admin). Admin area appears to work, though I only have the "General" box on the left, not the entire set of admin links. Is this the way it's supposed to work?

Let's see if I can logout. I'll try the normal link, and if that doesn't work, I'll try the one inside the admin.

Logout link on index.php failed to log me out (just as before). Logout link on adm-index.php also failed to log me out (just as before). Logging out via phpBB works just fine. I suppose that this has an easy workaround - - just replace the targets for the PP logout links with the phpBB logout links. It's a duct-tape fix, but it'd work.

I'll put my header and footer back on to see what that does. I wonder if that was somehow causing the other problems.

Header and footer now back on - - no additional problems or problems solved, just the header and footer (which is what one would expect).

I'll put my customized default.css on next.

New default.css seems just fine as well.

I registered a new user, and experienced all the same behavior as explained above (i.e. can only login/logout from phpBB, have an Admin link w/limited menu).

I went into the admin menu, as the full admin user, and changed my integration to use a MySQL user with RW rights to the phpBB database (I'd been using a user with read-only rights). Same login/logout problems. Changed my phpBB2 "Domain Name" setting from croppinparadise.com to www.croppinparadise.com. Same problem.

I added trailing slashes to the "Server Path to Forum directory" and "Server Path to PhotoPost directory" config items. No change, so I removed the trailing slashes.

Noticed that "down for maintenance" is still spelled incorrectly. Fixed that.

I really have no idea what could have been causing the "header already sent" and "Top Posters" problems, as that's the 2nd time I've re-uploaded all the files. I wonder if one CR/LF was still in "DOS" style after the FTP transfer. In any case, the only apparent problems left are these:

1) Login/logout from PP doesn't seem to work, though login/logout from integrated phpBB works just fine.
2) Once you can login, everyone gets an Admin link, with a subset normal Admin area. Is this normal?

I wonder if I messed things up somehow when I created those 3 usergroups in phpMyAdmin. Let's go have a look.

PP Admin - - the only group with a "yes" under "Admin Access?" is the Admin group. The only user in this phpBB group is the main admin user (who is also the only one who gets a "full" admin link.

Let's see if I can find that in the code. What? I can now magically login/logout from PP. I wonder if I just had to CTRL-F5 after changing the phpBB domain name. ???

I'll change the integration user back to the RO user and see if login/logout still works. Changed it to the RO user - - now I can't login/logout via PP anymore. Changed it back to the RW user. Still can't login/logout. ??? Changed it to a "full" access user. Still can't login/logout. What's going on? This is bizarre.

Chuck - - if you can try and chew on that, I'll try and find the part of the code that decides whether or not to show the Admin link.

Wait - - that's not the important part - - the important part is whether or not they should have access to adm-index.php, even if they type it in manually. That will take a bit more digging, unless you know how to fix that one.

-jared

Last edited by jcall; March 5th, 2005 at 02:36 PM.
jcall is offline   Reply With Quote