templaza / astroid-framework

Powerful framework for designers and developers to create responsive, fast & robust Joomla based websites and templates.
https://astroidframe.work/
GNU General Public License v3.0
76 stars 12 forks source link

Malfunction with "Articles Anywhere" from Regular Labs #645

Closed Oxaluz closed 2 months ago

Oxaluz commented 2 months ago

I have installed the current version of the “Articles Anywhere” plugin and now I get the following error message when using it in the frontend editor

Warning
: Constant ASTROID_TEMPLATE_NAME already defined in
C:\xampp\htdocs\sgsn_site_new\libraries\astroid\framework\library\astroid\Template.php
on line 96

0
Undefined constant "Astroid\ASTROID_MEDIA_TEMPLATE_PATH"
Oxaluz commented 2 months ago

...some additional info:

0

Undefined constant "Astroid\ASTROID_MEDIA_TEMPLATE_PATH"

Zur Startseite
ERROR 0 - Undefined constant "Astroid\ASTROID_MEDIA_TEMPLATE_PATH" in C:\xampp\htdocs\sgsn_site_new\libraries\astroid\framework\library\astroid\Document.php:1233

Call Stack

# | Function | Location -- | -- | -- 1 | () | JROOT\libraries\astroid\framework\library\astroid\Document.php:1233 2 | Astroid\Document->astroidCSS() | JROOT\libraries\astroid\framework\library\astroid\Helper\Head.php:88 3 | Astroid\Helper\Head::styles() | JROOT\libraries\astroid\framework\library\astroid\Site.php:40 4 | Astroid\Site->onBeforeRender() | JROOT\plugins\system\astroid\src\Extension\AstroidPlugin.php:65 5 | Joomla\Plugin\System\Astroid\Extension\AstroidPlugin->onBeforeRender() | JROOT\libraries\src\Plugin\CMSPlugin.php:289 6 | Joomla\CMS\Plugin\CMSPlugin->Joomla\CMS\Plugin\{closure}() | JROOT\libraries\vendor\joomla\event\src\Dispatcher.php:454 7 | Joomla\Event\Dispatcher->dispatch() | JROOT\plugins\system\regularlabs\src\Application.php:75 8 | RegularLabs\Plugin\System\RegularLabs\Application->render() | JROOT\plugins\system\regularlabs\src\QuickPage.php:70 9 | RegularLabs\Plugin\System\RegularLabs\QuickPage::getHtml() | JROOT\plugins\system\regularlabs\src\QuickPage.php:50 10 | RegularLabs\Plugin\System\RegularLabs\QuickPage::render() | JROOT\plugins\system\regularlabs\regularlabs.php:92 11 | PlgSystemRegularLabs->onAfterRoute() | JROOT\libraries\src\Plugin\CMSPlugin.php:289 12 | Joomla\CMS\Plugin\CMSPlugin->Joomla\CMS\Plugin\{closure}() | JROOT\libraries\vendor\joomla\event\src\Dispatcher.php:454 13 | Joomla\Event\Dispatcher->dispatch() | JROOT\libraries\vendor\joomla\application\src\AbstractApplication.php:99 14 | Joomla\Application\AbstractApplication->dispatchEvent() | JROOT\libraries\src\Application\SiteApplication.php:798 15 | Joomla\CMS\Application\SiteApplication->route() | JROOT\libraries\src\Application\SiteApplication.php:244 16 | Joomla\CMS\Application\SiteApplication->doExecute() | JROOT\libraries\src\Application\CMSApplication.php:306 17 | Joomla\CMS\Application\CMSApplication->execute() | JROOT\includes\app.php:58 18 | require_once() | JROOT\index.php:32
sonvnn commented 2 months ago

I tried a quickfix in https://github.com/templaza/astroid-framework/commit/7b2125d17d87c96e051c9d988c83902d5e734bdc Please help me download v3-branch and retest again. If this issue still happen please send me your admin account via sonlv@templaza.com. I will help you check it.

Best Regards, Sonny

Oxaluz commented 2 months ago

It looks like it's working. At least the error message is gone.

regards Oxaluz

sonvnn commented 2 months ago

@Oxaluz Thank you! I marked this issue is resolved.