DennisSuitters / AuroraCMS

The Australian Open Source Content Management System
https://diemendesign.github.io/AuroraCMS/
MIT License
15 stars 2 forks source link

Settings tab innitial not working in administration. #3

Closed ghost closed 3 years ago

ghost commented 3 years ago

While entering administration the settings-tab is not working. It only works if you visite an other tab first.

image

DennisSuitters commented 3 years ago

What is the # reference in the URL? It's more than likely not matching. I did fix a couple in the last couple of days that I noticed weren't matching.

ghost commented 3 years ago

When i'm going into the backend / administration area and click directly on Settings the sub-items are not showing. It refers to /settings ( not to an #settings ). The "open" class is not appearing on the <li>. Only if you click another option first.

DennisSuitters commented 3 years ago

I edited you comment so I could see the hidden tags. I'm not sure what's going on there. I tried to replicate your issue, but it's working fine for me. I tried in Chrome and Firefox in Linux atm.

I just pushed some updates. You will need to update the database as there is additions with this update. I should start doing update packages that contain database changes, and get the update system working.

DennisSuitters commented 3 years ago

Oh, you can find the database as core/aurora.sql

ghost commented 3 years ago

Check, I will do a fresh install from the repo, so i'm sure everything is clean as can be. I'll keep you posted.

DennisSuitters commented 3 years ago

No worries, thanks for point out issues.

ghost commented 3 years ago

Not working yet, all menu-items with submenu-items load the **<main></main>** exept the Settings. Only after clicking first on another menu item (it does not matter if this menu-item has submenu items or not.)

DennisSuitters commented 3 years ago

Are all the "Account Permissions" enabled in the settings tab for the account your signed into, and the rank set to "Administrator" or "Developer"?

ghost commented 3 years ago

Hahaha, tested both type whith all permissions on, now i'm adminstrator who couldn't change back to developer ;) I feel a fresh install is comming up.

DennisSuitters commented 3 years ago

lol, just edit the row in the database, change table login set rank to 1000

ghost commented 3 years ago

Found something, in core/layout/sidebar.php changed line 63 : FROM: echo'<li class="'.($args[0]=='settings'?' open':'').'">'. TO: echo'<li class="'.($view=='settings'?' open':'').'">'.

Settings sub-items now showing up.

DennisSuitters commented 3 years ago

I made that change and it still worked for me. Strange that with the original $args[0] it worked on my system, and not on yours. Regardless, it still works with the your change, so I'll leave it at that.

ghost commented 3 years ago

Ok for now ;) Still got some other strange menu / submenu / viewpane behaviours, going to setup lamp-machine to test the differences.