Comments (10)
Do you have admin routing enabled?
Edit: seems as the Session doesnt have the correct value for "Forum.isAdmin"
Make sure you have $this->Session->delete('Forum'); in your login action, and have Auth->autoRedirect = false in your Users/AppController
from forum.
The verifyAdmin() method either redirects to the last page you were on, or the login page. Seems like something else is going on?
https://github.com/milesj/cake-forum/blob/master/controllers/components/toolbar.php#L278
Can you debug the session and make sure Forum.isAdmin is true?
from forum.
Is this still relevant?
from forum.
Going to close this. If the problem persists, I would debug around a bit as no one else can reproduce this.
from forum.
Had the same issue as 100marks (EasyPHP 5.3.9) on Forum v3.2.0 RC3
The issue was here: https://github.com/milesj/cake-forum/blob/master/Controller/Component/ForumToolbarComponent.php#L76
The following change fixed my issue (!==, not !=)
if ($user_id && $this->Controller->Auth->user($this->config['userMap']['status']) !== $this->config['statusMap']['banned']) {
Hope this helps anybody else with this rare problem.
from forum.
!== seems like it would cause more problems, simply because '1' would not equal 1.
from forum.
I agree, I should probably specify this is a localhost change for me only, I expect != will work on production and it's likely an issue with my EasyPHP 5.3.9
Despite $this->config['userMap']['status'] being '1' and $this->config['statusMap']['banned'] being '2', the above condition would not pass because it believed they were both equal, that is why !== seemed to work oddly.
For now I have made a hack to check if it's localhost then use !== otherwise use != (dirty hack :|), unless you have any other ideas Miles? PS kudos on an awesome plugin.
from forum.
I'll look into it a bit further, quite an unusual scenario.
from forum.
I switched the logic around, can you try this?
https://github.com/milesj/cake-forum/commit/a2bd68eca960baf39e78988ef879957eeb801815
from forum.
Is this still an issue?
from forum.
Related Issues (20)
- Fatal error: Call to a member function nice() on a non-object HOT 3
- ForumExceptionRenderer Fatal Error HOT 2
- Memory Error When Editing Forum HOT 2
- no styles and scripts HOT 9
- issues install in cake php 1.3.14 HOT 7
- Install Issues in Cake 2.2.2 HOT 10
- AccessLevel.id vs AccessLevel.level HOT 4
- Localization Updates HOT 4
- Error: [CakeException] AclNode::node() - Couldn't find RequestObject node identified HOT 3
- Error after installation HOT 3
- Forum ACL in admin area HOT 3
- What user system? HOT 3
- 'Utility.Validateable', to ForumAppModel class HOT 1
- not an issue HOT 1
- failed to open stream HOT 3
- Scoped / Polymorphic Forums HOT 7
- Unsupported operand types HOT 5
- error messages HOT 3
- missing _ in View/Forum/help.ctp HOT 2
- Forum help HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from forum.