How To / General

Joomdle Moodle Wrapper

  • Web Buster UK Ltd
  • Topic Author
  • Offline
  • Premium Member
  • Premium Member
More
3 months 1 week ago #1 by Web Buster UK Ltd
Joomdle Moodle Wrapper was created by Web Buster UK Ltd
Hi Antonio,

We've just upgraded to Joomla 5 from Joomla 3 and encountered an issue with the moodle wrapper.

In Joomla 3, we were using "/component/joomdle?view=wrapper&moodle_page_type=fullurl&gotourl={moodleURL}" as links to open moodle within a joomdle wrapper in Joomla. However using the same URL in Joomla 5 we encounters this error:

0 Undefined constant "STRING"
Call Stack
# Function Location
1 () JROOT/components/com_joomdle/views/wrapper/view.html.php:118
2 JoomdleViewWrapper->display() JROOT/libraries/src/MVC/Controller/BaseController.php:697
3 Joomla\CMS\MVC\Controller\BaseController->display() JROOT/components/com_joomdle/controller.php:41
4 JoomdleController->display() JROOT/libraries/src/MVC/Controller/BaseController.php:730
5 Joomla\CMS\MVC\Controller\BaseController->execute() JROOT/components/com_joomdle/joomdle.php:15
6 require_once() JROOT/libraries/src/Dispatcher/LegacyComponentDispatcher.php:71
7 Joomla\CMS\Dispatcher\LegacyComponentDispatcher::Joomla\CMS\Dispatcher\{closure}() JROOT/libraries/src/Dispatcher/LegacyComponentDispatcher.php:73
8 Joomla\CMS\Dispatcher\LegacyComponentDispatcher->dispatch() JROOT/libraries/src/Component/ComponentHelper.php:361
9 Joomla\CMS\Component\ComponentHelper::renderComponent() JROOT/libraries/src/Application/SiteApplication.php:217
10 Joomla\CMS\Application\SiteApplication->dispatch() JROOT/libraries/src/Application/SiteApplication.php:271
11 Joomla\CMS\Application\SiteApplication->doExecute() JROOT/libraries/src/Application/CMSApplication.php:304
12 Joomla\CMS\Application\CMSApplication->execute() JROOT/includes/app.php:58
13 require_once() JROOT/index.php:32

Please Log in or Create an account to join the conversation.

More
3 months 1 week ago #2 by Antonio Durán
Replied by Antonio Durán on topic Joomdle Moodle Wrapper
Hi.

To fix it, edit file: components/com_joomdle/views/wrapper/view.html.php:
Line 118. Change STRING by 'STRING'

Please Log in or Create an account to join the conversation.