Bug report: "getWebAssetManager() on null" error during AJAX saves / 4AI compatibility (Joomla 6) - Forum | JoomShaper
Staff replied Helix Framework

Bug report: "getWebAssetManager() on null" error during AJAX saves / 4AI compatibility (Joomla 6)

Asked by marco 7 months ago Last activity 7 months ago

I am writing to report an issue I am experiencing on my Joomla 6 site, using the Helix Ultimate framework in combination with the 4AI extension.

When 4AI (or any similar extension) attempts to save or manipulate articles in the background using AJAX calls, I consistently get this fatal error: "Error loading data from server. Call to a member function getWebAssetManager() on null".

Upon investigating the issue, it turns out that the error is triggered by the editor button override files injected by Helix Ultimate. The exact files causing the crash are:

plugins/system/helixultimate/overrides/layouts/joomla/editors/buttons/button.php

templates/shaper_helixultimate/html/layouts/joomla/editors/buttons/button.php 

The error occurs because the code in these files attempts to load CSS/JS files by calling getWebAssetManager(), even when the system is processing a simple background data request (JSON/AJAX) that does not support this method.

For now, I can only get the site to work by manually deleting these two files via FTP, so that Joomla falls back to its default core files. Unfortunately, with every Helix Ultimate update, the files are recreated and the error returns, blocking my workflow again.

I kindly ask if you could fix this behavior in future releases of the framework (for example, by adding a simple check to verify that the document is actually an HTML document before calling the asset manager).

Thank you very much for your help and your excellent work!

2 replies

Mehtaz Afsana Borsha Staff

HI,

Thanks for contacting us and sorry for your issue. Could you please give me a screenshot/ screencast video of this bug? So that I can inform our developer team about it. It will help us to reproduce the bug.

-Regards.

marco Asked this

A video screenshot doesn't reveal anything more than what I've already written. I discovered the problem by disabling the installed extensions and verified that Helix is ​​causing the reported problem. Many users on the 4AI forum are reporting the problem with Helix installed. What I wrote in my first post didn't solve the problem; I deleted the files I had identified, but the problem persists. Your technicians will surely be able to find and fix the problem.

Mehtaz Afsana Borsha Staff

Ok I will inform our DEV team about it.

Log in to reply.