Skip to content

Admins cannot administrate #385

Closed
Closed

Description

@m00nglum

I figured this probably warranted a topic of its own.

I have fresh install of w2p on my debian bookworm system with Apache/2.4.62 (Debian) and PHP 8.2.28.

Neither the default admin account, nor any accounts I put in the Admin role, can delete created users, or make simple changes to their preferences (like theme).

I tried to address this by adding permissions to the default Admin role. It will not let me add anything to do with user administration. I tried to create a new 'ultraAdmin' group where I planned to give it everything to do with users and access -- but in both cases, when I try to add 'User Administration', I get this error:

add_acl(): AXO Object Section Value: app Value: users DOES NOT exist in the database. Skipping...

the same thing happens when I try to add 'User Table'. When I try to add something more innocuous like 'Links' or 'SmartSearch', it will add it just fine -- it simply doesn't want to let my admins administer users for some reason.

I noticed under the 'PERMISSION RESULT TABLE' that my admins (including default admin) have 0's for everything in the ACL module (with a 'soft-deny' value in the 'ACL_ID' column). Perhaps this is why... but I cannot find a way to give permissions to this module... it is never listed under 'Modules' when ascribing permissions.

Maybe this has to do with why end-users cannot reset their passwords... I'm not sure, that is not critical to me at this point however... but if I cannot administer users, then I cannot use W2p... so I'm hoping there is a fix.

Thank you again.

Activity

  1. self-assigned this
    on Apr 9, 2025
  2. caseysoftware commented on Apr 9, 2025

    @caseysoftware
    Member

    I'll check into this one asap.

    What version of web2project did you upgrade from?

  3. added theissue type on Apr 9, 2025
  4. m00nglum commented on Apr 10, 2025

    @m00nglum
    Author

    Hi.

    Thank you for your response. I didn't upgrade. I just installed, brand-new and fresh using the w2p 4.0.1 tar ball (stable). Initially, I wanted to upgrade from my old dotproject install, but I had too many problems. I think, perhaps, my dp version was too old. The config.php followed a different format and I was coming from php5... it got messy and fought me the whole way. So, I decided to start clean.

    Please let me know if you need anything else to troubleshoot this. I can start over if necessary, I'm not in too deep. I appreciate your help.

  5. caseysoftware commented on Apr 10, 2025

    @caseysoftware
    Member

    Ah, I need to update the dp conversion process. There are some database issues that occur and don't get detected as errors.

    It's part of the long list here: #346

  6. m00nglum commented on Jul 11, 2025

    @m00nglum
    Author

    Hi.

    I was wondering if there was any headway on this? I have some big projects coming up, and I'd like to use your software to manage them. Is there a patch, or a nightly build that might address this?

    Thanks!

  7. caseysoftware commented on Aug 5, 2025

    @caseysoftware
    Member

    The fresh install should be working fine. I haven't re-worked through the dotproject conversion process yet. At first glance, it appears to work but doesn't.

    Behind the scenes, I found that more recent versions of mysql throws errors and web2project just swallows them without stopping the process or even notifying you and then marks the conversion as complete. Therefore, lots of things are broken but you have no clue how, why, or when.

    I'm wrapping some things this week and hope to get back into this within a week or two.

  8. m00nglum commented on Aug 12, 2025

    @m00nglum
    Author

    But it isn't working. The problem was that I could not administrate my users. I couldn't couldn't even delete a created user. The issue with DP conversion I don't care about (personally). I can start over with a blank db. I do understand that others may care, but I just don't want to de-rail from the purpose of the post. The original problem is that the administrator account(s) cannot administrate over the users, and I cannot assign admin rights. This is a big deal, as I will have to administer the users that are added to the project.

  9. caseysoftware commented on Aug 12, 2025

    @caseysoftware
    Member

    My bad, I misunderstood.. probably because I waited so long to pick up this thread.

    What version of mysql are you using?

  10. m00nglum commented on Aug 12, 2025

    @m00nglum
    Author

    I was using debian bookworm with mariadb-server-10.5. Now that trixie is out, however, I will probably move to trixie soon. I understand that is on 11.8.x.

    Thank you very much!

  11. caseysoftware commented on Aug 12, 2025

    @caseysoftware
    Member

    I haven't done any testing with Maria.. is it fully compatible? Any chance you could test with mysql?

  12. m00nglum commented on Aug 12, 2025

    @m00nglum
    Author

    Yes, it is. Debian doesn't have mysql...because of the oracle buyout a while back. They try to stick to purely open source solutions. MariaDB is a fork, and you still use the same mysql commands to administrate it. I've never known anything to know the difference. It is supposed to be a drop-in replacement:

    https://mariadb.com/docs/release-notes/community-server/about/compatibility-and-differences/mariadb-vs-mysql-compatibility

    I had been running dotproject for a decade at least on mariadb, and it did have any issues.

  13. m00nglum commented on Aug 26, 2025

    @m00nglum
    Author

    Oops, I meant: "Did not have any issues".

  14. caseysoftware commented on Oct 16, 2026

    @caseysoftware
    Member

    Fixed on dev-5.0.0, will ship in 5.0:

    d88f1fd2: migration 064 removes the duplicate gacl_axo rows (app/users, app/events) left by migrations 048/049 and restores the unique index, so User Administration and Calendar permissions can be granted again ("AXO … users DOES NOT exist").
    ac63e72b: saving another user's preferences checked canEdit('admin'); the module has been users since 048.
    0db81ed5: restores the "delete User" action on the user view page (its delIt() was missing, and the Permissions/Roles tabs' functions could be called by mistake).
    d0008a14: the upgrader now reports migration errors instead of silently dropping them.

    Upgrading runs 064 automatically.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions