Class "JDispatcher" Not Found & Class "JRequest" Not Found Errors - Question | JoomShaper
Black Friday sale is live with flat 50% OFF. Sale ends soon! Grab your deal now!

Class "JDispatcher" Not Found & Class "JRequest" Not Found Errors

OJ

Oliver Johnson

Template 3 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

0
7 Answers
Toufiq
Toufiq
Accepted Answer
Senior Staff 3 years ago #64034

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

0
OJ
Oliver Johnson
Accepted Answer
3 years ago #64063

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

0
Toufiq
Toufiq
Accepted Answer
Senior Staff 3 years ago #64120

Please check now and let me know. Thanks

0
OJ
Oliver Johnson
Accepted Answer
3 years ago #64212

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

1
Toufiq
Toufiq
Accepted Answer
Senior Staff 3 years ago #64307

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

-1
V
VierlingMt
Accepted Answer
3 years ago #90406

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.

0
Toufiq
Toufiq
Accepted Answer
Senior Staff 3 years ago #90470

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

0