I'm a bit confused - Since the last update my extensions are not able anymore to find / access the UserClass / ListClass provided by AcyMailing inside my Custom Form Field. As far as I can see we have only updated AcyMailing to v. 9.9.2 - files are there and permission is 0644.
`
...
namespace NXD\Component\%COMPONENTNAME%\Administrator\Model;
\defined('_JEXEC') or die;
use AcyMailing\Classes\ListClass;
...
`
A few weeks ago this worked well and there was nothing more to do beside this use statement...
I'm facing it once in the backend for my Custom Field (Select List) and once in the Frontend where i subscribe users on an event registration where I am using "use AcyMailing\Classes\UserClass".
It's all Joomla! internal no external script - When I copy the page to my local machine (MAMP - on macOS) everything runs smooth But on the server We get Error 0 Class "AcyMailing\Classes\ListClass" not found.
Also on the Server in the Staging Env the same error is thrown.
- PHP 8.3.12 (Apache FPM)
- No .htacess
- Joomla 5.1.x and now 5.2.0
- AcyMailing 9.9.2
I could indeed write a direct db access to get the lists but for the users the class is offering a good way to store a user correct and in one go...
PHP Error Log / Server Log does not have any entry - also Mod_Security
Any hints what I could check?
Edit:
I had to add the following code before "using":
$ds = DIRECTORY_SEPARATOR;
$acyHelper = rtrim(JPATH_ADMINISTRATOR, $ds).$ds.'components'.$ds.'com_acym'.$ds.'helpers'.$ds.'helper.php';
if (!include_once($acyHelper)) {
echo 'This code can not work without the AcyMailing Component';
return false;
}
use AcyMailing\Classes\ListClass;
What I do not understand is how it had worked before without that in backend and frontent...