Support

Admin Tools

#16944 About #16898: ACL Manager reverts to lft=1 when fixing any other assets issue

Posted in ‘Admin Tools for Joomla! 4 & 5’
This is a public ticket

Everybody will be able to see its contents. Do not include usernames, passwords or any other sensitive information.

Environment Information

Joomla! version
n/a
PHP version
n/a
Admin Tools version
n/a

Latest post by nicholas on Thursday, 01 August 2013 15:19 CDT

user9198
Applied the fix you recommended at #16898 but ACL Manager reverts to lft=1 when fixing any other assets issue right after..
Hope this helps,
Rgrds,

Added: You have said in that post #16898 that was introduced by 2.5.13 upgrade,,,
>> I have checked an old copy version (locally) of my site still running over j2.5.11 and there, the root asset already has lft = 1 ... That's making me think if it is really a bug surely was introduced much more time ago... Or isn't it a bug?
>> Please, let me know your final thoughts about
Thanks in advance,
Rgrds,

nicholas
Akeeba Staff
Manager
Yes it does, because that's what the default Joomla! behaviour is. The root asset node always has lft=1. What was introduced in 2.5.12 is a bug in the PHP code that handles assets. It cocks up and tries to find a root asset node with lft=0, but only if you have multiple nodes with level=0. I don't know how the latter happens. It seems that most sites don't experience that, which makes it extra difficult from me to convince people that it is really a bug and not just a broken site. So, my final thought is that we have yet another bug in Joomla! we can't fix.

Nicholas K. Dionysopoulos

Lead Developer and Director

πŸ‡¬πŸ‡·Greek: native πŸ‡¬πŸ‡§English: excellent πŸ‡«πŸ‡·French: basic β€’ πŸ• My time zone is Europe / Athens
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

user9198
Thanks Nicholas,
I really trust you then, I have fixed that manually but worries me that ACL Manager may restore lft=1 in future if any additional assets issues could arise, being warned by ACL Manager and fixed them (easily happens when adding a new extension without correct assets).
Rgrds,

nicholas
Akeeba Staff
Manager
Yeah, I know.

Nicholas K. Dionysopoulos

Lead Developer and Director

πŸ‡¬πŸ‡·Greek: native πŸ‡¬πŸ‡§English: excellent πŸ‡«πŸ‡·French: basic β€’ πŸ• My time zone is Europe / Athens
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

user9198
Sorry to post again...
Perhaps, the way to around that, having ACL Manager installed, to inform your friend (ACL Manager developer) and perhaps he can make ACL Manager to always take care if it, forcing the lft=0 at every 'fix assets' run.
>> Just and idea! ;-)

nicholas
Akeeba Staff
Manager
I think I've found the problem. It seems to have been caused at some point by ACL Manager. On my site I have half a dozen old articles which didn't have an asset when I imported them from K2. ACL Manager fixed that for me, creating new assets which had parent_id = 0. These were triggering the bug* in Joomla!. I changed the parent_id to the asset ID of com_content and that fixed the problem I had. I can't be sure that it won't happen again the next time I run into asset-less content and try fixing it with ACL Manager. So here's my really final thought: Joomla!'s asset tracking is broken by design.

* Whether it's a bug it's debatable. This is how it's been implemented in the JTableNested since Joomla! 1.6, even though it is NOT how it was implemented in the actual database. I am still not sure what did change in Joomla! 2.5.12 and I'm not too keen to find out. I lost way too much time on this already!

Nicholas K. Dionysopoulos

Lead Developer and Director

πŸ‡¬πŸ‡·Greek: native πŸ‡¬πŸ‡§English: excellent πŸ‡«πŸ‡·French: basic β€’ πŸ• My time zone is Europe / Athens
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

Support Information

Working hours: We are open Monday to Friday, 9am to 7pm Cyprus timezone (EET / EEST). Support is provided by the same developers writing the software, all of which live in Europe. You can still file tickets outside of our working hours, but we cannot respond to them until we're back at the office.

Support policy: We would like to kindly inform you that when using our support you have already agreed to the Support Policy which is part of our Terms of Service. Thank you for your understanding and for helping us help you!