PhotoPost Community

PhotoPost Community (http://www.photopost.com/forum/)
-   Photopost Pro Installation & Upgrades (http://www.photopost.com/forum/photopost-pro-installation-upgrades/)
-   -   Unable to access admin page (http://www.photopost.com/forum/photopost-pro-installation-upgrades/111149-unable-access-admin-page.html)

macreator December 25th, 2004 11:11 PM

Unable to access admin page
 
Hi, I'm quite new to PhotoPost so the answer to my question may be quite obvious.

I just installed PhotoPost on my site and logging-in to PhotoPost is fine but once I'm logged in I can't access the admin page to change PhotoPost settings. When I go to the adm-index.php page it gives me a message saying: "You are not a valid administrator or moderator!" Now, I'm pretty sure I am a valid admin :) and PhotoPost is using the same database as my PHPBB board and so log-in works fine but obviously the permissions aren't. Is there a way to solve this? Thanks so much. Happy Christmas.

Chuck S December 26th, 2004 08:47 AM

I think your issue might be related to that new terrible php safety release that hosts are jumping over installing everywhere that is wreaking havoc with everything

http://www.photopost.com/members/for...d.php?t=111150

macreator December 26th, 2004 01:08 PM

I tried this fix but it did not help. I'm not sure the problem has to do with cookies but perhaps it has something to do with usergroups. I don't recall anything in the PhotoPost install relating to usergroups so perhaps PhotoPost isn't recognizing I am an admin or I skipped over editing any usergroup info in the install? Any help is appreciated. Thanks.

Chuck S December 26th, 2004 01:49 PM

If your using phpbb and then there is no fix at this time as I explained here

http://www.photopost.com/members/for...=1#post1086145

macreator December 26th, 2004 06:25 PM

Now at this time I can not upload any images to the Gallery I assume because I can not access any settings in the admin panel correct? If I can upload images without the admin panel at this time that would be wonderful. When will there be a fix for this issue?

Chuck S December 26th, 2004 06:39 PM

As I stated above and explained in further detail in the other thread I linked this is an issue we are working on as several hosts have updated there servers to a new PHP release that is causing this problem.

There is no update on when a fix will be posted as the posted fix we have does not seem to work for everyone as you posted it did not work for you.

Chuck S December 27th, 2004 09:43 AM

fix posted in this thread

http://www.photopost.com/members/for...=1#post1086187

marit January 6th, 2005 01:10 PM

I had the same problem as you... I just installed Photopost today to use with my phpBB2 forum (version 2.0.11). I am the admin, but I could not access the admin panel. I searched here and came across this fix, but it didn't work for me.

I went in and checked the DB with phpMyAmin and found that only the user groups have been imported to the pp_usergroups table. The pp_users table is empty. So what I ended up doing was creating a new usergroups on my forum and then I manually added that group to the pp_usergroups table. I then set that group to have access to the admin panel (with me as the only user in the group) and voila! I had access to the admin panel.

It works perfectly fine to log in using the username and password from the forum, but Photo Post just isn't recognizing the permissions, I guess. And when I logged in to the admin panel, there is no listing for "Users" - only "User groups" (I looked in the online instruction manual and saw that there is supposed to be a "Users" listing, too).

I had no problems installing the program, so I'm guessing everything went well. I just think it's strange that the phpbb_user_groups table have been imported and not the phpbb_users table. Or is this how it's supposed to be? Will new registrations still be stored in the phpbb_users table?

Thanks for your help!

~Marit

Chuck S January 6th, 2005 01:32 PM

The php_users table does not get imported since we check for users against the php_users table not our own

macreator January 7th, 2005 10:43 PM

Quote:

Originally Posted by omegatron

This fix did not work for me. I am going to try the upgrades I see have been posted. Hopefully this will solve my problem otherwise I'll be in trouble.

Chuck S January 8th, 2005 09:03 AM

With 4.8.6 there is no issues with phpbb installs in fact I did two yesterday for customers. any fixes I posted where included in the build

supercub January 11th, 2005 10:34 AM

Newbie user here, I just installed 4.8.6 with PHPBB integration and also cannot get to my admin page using an admin from the phpbb system. I suspect I have done something stupid. "You are not a valid administrator or moderator!" is the message I receive.

I did put the patch in phpbb2.php you sugguested, but to no avail.

Thanks!

sj

Chuck S January 11th, 2005 11:49 AM

I do not know what everyone does wrong on phpbb installs. There are no issues with a phpbb install unless your using 4.8.5

There is no need to patch anything.

If you view your database table usergroups in phpmyadmin what entries are in there.

supercub January 11th, 2005 01:54 PM

My five groups, which are my pHpBB groups that transferred over are:

Cross Country
Members
Moderators
Rant and Raver
Skunks

I am not a member of the moderators group, since I am an admin. Do I need to add myself to that group for this to work?

sj

Chuck S January 11th, 2005 03:20 PM

Where are your phpbb usergroups that we normally have before you go adding additional ones?

$deleteq = "DELETE FROM {$Globals['pp_db_prefix']}usergroups";
$resultd = ppmysql_query($deleteq, $link);

$query = array();
$query[] = "INSERT INTO {$pp_db_prefix}usergroups VALUES ('1','Anonymous','','','','','',0,0,0,0,0)";
$query[] = "INSERT INTO {$pp_db_prefix}usergroups VALUES ('2','Admin',1,1,1,'','',1,1,1,1,0)";
$query[] = "INSERT INTO {$pp_db_prefix}usergroups VALUES ('3','Regular Users','',1,1,'','',1,1,0,1,0)";


There 3 are absolute and should be there as these are needed for things to work.

admin usergroups should have cpaccess set to 1

supercub January 12th, 2005 11:30 AM

Hmm, I run about 10 phpBB websites and have never seen those groups added by default in a phpbb system. Maybe in the newer versions as I have been just upgrading for years?

If I am understanding you correctly, I need these usergroup in the PHPBB usergroup file, or do I need them in the phpphotopost file? I did not know where your code snippet was from.


sj

Chuck S January 12th, 2005 11:32 AM

I am talking about the photopost usergroups table phpbb does not have a usergroups table ;)

supercub January 12th, 2005 11:36 AM

Ok, I didn't delete them, but I will add them!

Thanks.

sj

supercub January 12th, 2005 11:44 AM

Appears to have worked like a champ, THANKS!

sj

lunara January 13th, 2005 07:00 PM

Omegatron - I'm not sure, but this might be the problem. A user installed 4.8.6 and PHPBB and could upload etc. However, when we created usergroups for her new board and then went into Photopost admin under edit categories and clicked 'refresh usergroups from your forum software" that is when we started to have these problems.

The admin disappeared completely. I followed your other thread and made the changes to the showphoto and phpbb2 files. Now this is a new install of 4.8.6 so shouldn't they already have been fixed?

I hope this helps. I'm going into the table via PHPMyAdmin to fix that.

Thanks!


All times are GMT -5. The time now is 03:22 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