HTML Logo by World Wide Web Consortium (www.w3.org). Click to learn more about our commitment to accessibility and standards.

Moving forward with Composr

ocPortal has been relaunched as Composr CMS, which is now in beta. ocPortal 9 will be superseded by Composr 10.

Head over to compo.sr for our new site, and to our migration roadmap. Existing ocPortal member accounts have been mirrored.


Question regarding logging in

Login / Search

 [ Join | More ]
 Add topic 
Posted
Rating:
#64227 (In Topic #13850)
Avatar

Fan in training

Hi,

After installing ocPortal on my webhosts' server, I have encountered an issue with logging in. This is probably something I have missed but during the installation I was offered no option as to what login credentials I wanted, so automatically assumed they were the same as the ones in phpBB, as I have tied the two together.

But this fails to work, either. I've gone into phpMyAdmin and looked up the members table and found three users, "Guest", "Admin" and "test". I've tried logging in as admin using the password I had specified on the installation of phpBB but to no avail and really don't know what to do next.

I get these error messages on attempting to login to domain.com/adminzone/index.php and index.php in the root directory:
A problem has been detected with your web server that may cause your login to fail - if it does, click back and read the rest of this message. Some servers are poorly configured, and invisibly redirect traffic from one URL to another, and this invisible redirection results in lost submitted form data. Try changing your base URL in the config editor so that it contains www. then come back to this URL (make sure to refresh the page) and try again. If problems persist, contact your web host. This autodetection will not be done once you have opened your website.

"admin" does not have access to the zone adminzone.

I don't know exactly why it's asking me to click "Back", back to where exactly?! I have tried the advice recommended and been into the config editor but nothing is happening.

Can someone help me, please? :)

Thanks in advance!


Back to the top
 
Posted
Rating:
#64228
Avatar

It should just be normal phpBB logins.

What version are you on?

Did you import to phpBB from something else previously? (in which case it's conceivable the passwords are in a format ocPortal doesn't understand).

Also if phpBB has a difference between username and display name (I can't remember off-hand) try the opposite of what you're using.

Or probably most likely, that error you see maybe telling the truth ;). Try what it says ;).

The back button is on all error screens, just to help you get back to where you were before the error, nothing to read into, and I appreciate what you're saying about it.


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#64229
Avatar

Fan in training

Chris Graham said

It should just be normal phpBB logins.

What version are you on?

Did you import to phpBB from something else previously? (in which case it's conceivable the passwords are in a format ocPortal doesn't understand).

Also if phpBB has a difference between username and display name (I can't remember off-hand) try the opposite of what you're using.

Or probably most likely, that error you see maybe telling the truth ;). Try what it says ;).

The back button is on all error screens, just to help you get back to where you were before the error, nothing to read into, and I appreciate what you're saying about it.

Hi Chris, the version of phpBB I am using is a fresh install (no imports from elsewhere), but the latest being: phpBB "Olympus" 3.0.7-PL1

And the version of ocPortal is the latest.
Both the phpBB forums and ocPortal are connected via the same database as I specified this during installation.

I looked at the error and added "www." infront of the domain name, after http:// but this didn't seem to make any difference, despite having CTRL+F5'd the page a couple of times!

The strange thing is, it can login to index.php (in the root public_html) fine using "admin" and my password specified with phpBB, but in adminzone it just throws up those error messages saying I can't access it, with the two error messages as shown above.

I think this one is the most likely culprit, but I'm not too sure how to nip it in the bud, or so-to-speak!

"admin" does not have access to the zone adminzone.


Any further assistance would be gratefully appreciated! Thank you!
Back to the top
 
Posted
Rating:
#64230
Avatar

Just changing the URL on it's own isn't enough, you need to go to /config_editor.php and change it in there (otherwise the login form just directs right back to the domain in the base URL that was configured).

Also whilst you're there check your cookie settings are valid. If in doubt I'd try blanking the domain and path out.


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#64231
Avatar

Fan in training

Chris Graham said

Just changing the URL on it's own isn't enough, you need to go to /config_editor.php and change it in there (otherwise the login form just directs right back to the domain in the base URL that was configured).

Also whilst you're there check your cookie settings are valid. If in doubt I'd try blanking the domain and path out.

EDIT:
Sorry - I meant, I did change the URL in the config editor file but just resulted in the same problem! :p

The config editor recommends not changing the URL of the cookie domains or path as it could cause logging out problems.
Back to the top
 
Posted
Rating:
#64238
Avatar

If you clear the cookies for the site on your own computer it'll be fine, it's not a permanent thing. IIRC the config editor is smart enough to try and do that for you.


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#64244
Avatar

Well-settled

hi,
 Did you by any chance use the same admin user name from phpbb3 when you were installing ocPortal or are both the ocportal & phpbbe user admin named "admin'?

Chris if you recall, I had to use two differant admin names one of Violative from phpbb3 and the other Siteadmin cause when ocPortal imported the phpbb3 members the admin Violative was also imported, but something would break if I had also have an admin named Violative already in ocPortal. I also found out when importing from phpbb3 into OCP don't import the configs!

  Hope I can be understood. I hate writting!
Back to the top
 
Posted
Rating:
#64246

Non-joined user

Hi, I never got the option to specify the admin login details during the ocPortal installation. The admin account is there bug for some reason does  not want to login the adminzone.

I only specified the phpBB login details during the installation of phpBB and the credentials work both with phpBB and ocPortal but I just cannot login to adminzone on ocPortal with those credentials.

It's really baffling me!
Back to the top
 
Posted
Rating:
#64247
Avatar

Fan in training

Sorry, that guest post was me but I forgot to login.

Chris, I cleared my browser cookies and cleared the fields for the cookies in the config-editor which didn't resolve it either.
Back to the top
 
Posted
Rating:
#64248
Avatar

Fan in training

Decided to give up with the phpBB thing, don't know what it's playing at. Re-installed and will just use the inbuilt ocPortal forums for now, until a fix becomes available.

Thanks for trying anyway folks. :)
Back to the top
 
Posted
Rating:
#64263
Avatar

It may have been due to what this note in the nuances of forum integration tutorial says…
phpBB is unlike the other supported forums when it comes to determining who is a member of staff or not. phpBB stores this as a user-level for each user, rather than encoding it in the properties of a usergroup.
We've had problems with user levels in the past, it may be due to that. I'm going to run a test myself now using a clean phpBB3 install.


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#64265
Avatar

This should fix the phpBB problem.

Attachment
sources/forum/phpbb3.php
» Download: phpbb3.php (42 Kb, 171 downloads so far)


It seems that the admin levels aren't set on default accounts, and even when they are, the ID numbers for the levels vary across sites (hence why this has kept breaking for people).

The fix changes it to use the default usergroups, which I now see are hard-coded as uneditable.

I also noticed there was an error related to missing pages.
Attachment
sources/menus.php
» Download: menus.php (30 Kb, 158 downloads so far)



Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#64279
Avatar

Well-settled

Thank you, Chris
Back to the top
 
There are too many online users to list.
Control functions:

Quick reply   Contract

Your name:
Your message: