Bug Report: "getWebAssetManager() On Null" Error During AJAX Saves / 4AI Compatibility (Joomla 6) - Question | JoomShaper

Bug Report: "getWebAssetManager() On Null" Error During AJAX Saves / 4AI Compatibility (Joomla 6)

M

marco

Helix Framework 2 weeks 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!

0
3 Answers
Mehtaz Afsana Borsha
Mehtaz Afsana Borsha
Accepted Answer
Support Agent 2 weeks ago #217771

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.

0
M
marco
Accepted Answer
2 weeks ago #217787

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.

0
Mehtaz Afsana Borsha
Mehtaz Afsana Borsha
Accepted Answer
Support Agent 1 week ago #217920

Ok I will inform our DEV team about it.

0