I get in my Contao 2.11.11 installation with the module MetaModels 1.0.x the error:
Fatal error: Could not load class MetaModels\Attribute\TranslatedReference
I could narrow the problem down to the file system/modules/metamodelsattribute_translatedcombinedvalues/MetaModels/Attribute/TranslatedCombinedValues/TranslatedCombinedValues.php
There first the namespace
is set and then the class TranslatedReference
is called, which created the fatal error.
namespace MetaModels\Attribute\TranslatedCombinedValues;
use MetaModels\Attribute\TranslatedReference;
use MetaModels\Helper\ContaoController;
class TranslatedCombinedValues extends TranslatedReference
{
// ...
}
How can I debug why the class couldn't be called.
Apparently as the namespace
was okay I just had to call the correct class name:
namespace MetaModels\Attribute\TranslatedCombinedValues;
//use MetaModels\Attribute\TranslatedReference;
//use MetaModels\Helper\ContaoController;
use MetaModelAttributeTranslatedReference;
//class TranslatedCombinedValues extends TranslatedReference
class TranslatedCombinedValues extends MetaModelAttributeTranslatedReference
{
// ...
}