Black Friday 2026 50% off every plan Our biggest deal of the year on #1 Joomla products.
Ends in 12d 07h 17m 29s
Claim 50% off
Staff replied Templates

Class "JDispatcher" not found & Class "JRequest" not found errors

Asked by Oliver Johnson 4 years ago Last activity 4 years ago

Since upgrading to Joomla 4 I get the above errors when viewing certain pages on my site.

I have a contact page which was created in SP Page Builder which now produces a Class "JDispatcher" not found error

Also every single joomla article in the blog which was also created using SP Page Builder as the editor now produces a Class "JRequest" not found error when viewing the full article.

I've tried uninstalling any 3rd party components and plugins (even though everything was J4 compatible) to see if that would fix the issue but it made no difference. Therefore I can only conclude that it's either an issue with the Travelia template or SP Page Builder

7 replies

Toufiq Senior Staff

Hi there,

Thanks for contacting us. Sorry for the inconvenience. Follow the instructions.

Delete the ajax_contact folder

templates/your_template/sppagebuilder/sppagebuilder/addons/ajax_contact

-Thanks

Oliver Johnson Asked this
4 years ago · edited

Hi that's worked for the contact page but its made no difference to the Class "JRequest" not found error when viewing Joomla articles in the blog section.

Also on one article, that I had open when I deleted the folder, it's completely killed the page and I now get:

Fatal error: Cannot declare class SppagebuilderAddonAjax_contact, because the name is already in use in /home/customer/www/my-domain/public_html/templates/shaper_travelia/sppagebuilder/addons/ajax_contact/site.php on line 0

Toufiq Senior Staff
4 years ago · edited

Please check now and let me know. Thanks

Oliver Johnson Asked this

That's all working now, thank you. Can I ask what you changed as I have another site I'm upgrading to J4 shortly and would like to avoid the same issue?

Many Thanks

Toufiq Senior Staff

I have modified some code. If you need more help, please let me know. Thanks

VierlingMt
4 years ago · edited

I have the same issue at [hidden content].
Folder templates/your_template/sppagebuilder/sppagebuilder/addons/ajax_contact does not exist.
Can you help, please?

Here my log with activated debugging:

error - Uncaught Throwable of type Error thrown with message "Class 'JRequest' not found". Stack trace: #0 [ROOT]/libraries/src/Dispatcher/ModuleDispatcher.php(52): include() #1 [ROOT]/libraries/src/Dispatcher/ModuleDispatcher.php(55): Joomla\CMS\Dispatcher\ModuleDispatcher::Joomla\CMS\Dispatcher{closure}('/www/htdocs/w01...', NULL) #2 [ROOT]/libraries/src/Helper/ModuleHelper.php(281): Joomla\CMS\Dispatcher\ModuleDispatcher->dispatch() #3 [ROOT]/libraries/src/Helper/ModuleHelper.php(161): Joomla\CMS\Helper\ModuleHelper::renderRawModule(Object(stdClass), Object(Joomla\Registry\Registry), Array) #4 [ROOT]/components/com_sppagebuilder/addons/module/site.php(55): Joomla\CMS\Helper\ModuleHelper::renderModule(Object(stdClass), Array) #5 [ROOT]/components/com_sppagebuilder/parser/addon-parser.php(728): SppagebuilderAddonModule->render() #6 [ROOT]/components/com_sppagebuilder/parser/addon-parser.php(414): AddonParser::getAddonHtmlView(Object(stdClass), Object(stdClass), 'page-1') #7 [ROOT]/components/com_sppagebuilder/views/page[TMP]l/default.php(100): AddonParser::viewAddons(Array, 0, 'page-1') #8 [ROOT]/libraries/src/MVC/View/HtmlView.php(410): include('/www/htdocs/w01...') #9 [ROOT]/libraries/src/MVC/View/HtmlView.php(203): Joomla\CMS\MVC\View\HtmlView->loadTemplate(NULL) #10 [ROOT]/components/com_sppagebuilder/views/page/view.html.php(51): Joomla\CMS\MVC\View\HtmlView->display(NULL) #11 [ROOT]/libraries/src/MVC/Controller/BaseController.php(639): SppagebuilderViewPage->display() #12 [ROOT]/components/com_sppagebuilder/controller.php(80): Joomla\CMS\MVC\Controller\BaseController->display(false, Array) #13 [ROOT]/libraries/src/MVC/Controller/BaseController.php(672): SppagebuilderController->display() #14 [ROOT]/components/com_sppagebuilder/sppagebuilder.php(26): Joomla\CMS\MVC\Controller\BaseController->execute('') #15 [ROOT]/libraries/src/Dispatcher/LegacyComponentDispatcher.php(71): require_once('/www/htdocs/w01...') #16 [ROOT]/libraries/src/Dispatcher/LegacyComponentDispatcher.php(73): Joomla\CMS\Dispatcher\LegacyComponentDispatcher::Joomla\CMS\Dispatcher{closure}('/www/htdocs/w01...') #17 [ROOT]/libraries/src/Component/ComponentHelper.php(355): Joomla\CMS\Dispatcher\LegacyComponentDispatcher->dispatch() #18 [ROOT]/libraries/src/Application/SiteApplication.php(200): Joomla\CMS\Component\ComponentHelper::renderComponent('com_sppagebuild...') #19 [ROOT]/libraries/src/Application/SiteApplication.php(241): Joomla\CMS\Application\SiteApplication->dispatch() #20 [ROOT]/libraries/src/Application/CMSApplication.php(294): Joomla\CMS\Application\SiteApplication->doExecute() #21 [ROOT]/includes/app.php(61): Joomla\CMS\Application\CMSApplication->execute() #22 [ROOT]/index.php(32): require_once('/www/htdocs/w01...') #23 {main}

I'll move back and restore my J3-Backup, the site needs to run. Maybe the coding gives you a hint. Thanks a lot.

Toufiq Senior Staff

@VierlingMt Please create a new forum post with your site crdentials & let me know. Thanks

Log in to reply.