• A new version of Full Calendar is now available.

    See the details here

Fixed Class "Fabrik\Helpers\JURI" not found

hello,
I created a list and the attached form without problem.
but when I want to add a new record or edit an existing record I have the following error message:
"Class "Fabrik Helpers JURI" not found.

Applications used:
-Joomla 4
-Fabrik 4 beta
 
Other information:
Joomla 4.2.7
PHP 8.1.15 or 8.2.2

error message:

upload_2023-2-15_17-2-10.png
 
Please change
libraries\fabrik\fabrik\Helpers\Html.php line517
from
$url .= '&referrer=' . urlencode(JURI::getInstance()->toString());
to
$url .= '&referrer=' . urlencode(Uri::getInstance()->toString());
 
Out of interest:
What is the email button for? I never used it and I can't see meaningful function (it's just opening the form again).
 
Panel Plesk Apache fpm-fcgi
PHP 8.2.15
mysql MariaDB 10.11.7
clean installation of joomla 5.0.2
Fabrik 4.0 installation

Error:
Class "JURI" not found

Cannot enter any link in the administrator menu. It will be time to reinstall and start.
I put it only for informational purposes.
I'll start again with Joomla 4
 
I configure the file: configuration.php
public $error_reporting = 'development';

and shows: error 500
"500 - Whoops, looks like something went wrong."
 
Not the error reporting level but J! "Debug System". This should give you the error stack.
1708273852713.png
 
I can no longer enter the Joomla administration panel.
It only shows error 500

public $debug = true;

It only shows error 500
 
Thank you very much, but it is only for your information. The website was newly installed and I did not lose any information.
I'm going to start over with Joomla 4.
We will do tests later with Joomla 5.
Many thanks for your work.
 
Error reporting in J4 no longer uses the development option, it uses lower case maximum.

That may be what is causing your 500 error. At any rate you can set it to none and as long as debug is true you should get the call stack.
 
Following the Joomla site update from 4.4.6 to 5.1.2 and the related update of Fabrik Base to version 4.2 (version 4.0Zeta was disabled) I encounter the error: 0 Class "JURI" not found
Call Stacks
# FunctionLocation
1 () JROOT/plugins/system/fabrik/defines.php:34
2 require_once() JROOT/plugins/system/fabrik/fabrik.php:148
3 PlgSystemFabrik->__construct() JROOT/libraries/src/Extension/ExtensionManagerTrait.php:242
4 Joomla\CMS\Application\CMSApplication->loadPluginFromFilesystem() JROOT/libraries/src/Extension/ExtensionManagerTrait.php:160
5 Joomla\CMS\Application\CMSApplication->loadExtension() JROOT/libraries/src/Extension/ExtensionManagerTrait.php:99
6 Joomla\CMS\Application\CMSApplication->bootPlugin() JROOT/libraries/src/Plugin/PluginHelper.php:232
7 Joomla\CMS\Plugin\PluginHelper::import() JROOT/libraries/src/Plugin/PluginHelper.php:192
8 Joomla\CMS\Plugin\PluginHelper::importPlugin() JROOT/libraries/src/Application/CMSApplication.php:765
9 Joomla\CMS\Application\CMSApplication->initialiseApp() JROOT/libraries/src/Application/AdministratorApplication.php:321
10 Joomla\CMS\Application\AdministratorApplication->initialiseApp() JROOT/libraries/src/Application/AdministratorApplication.php:174
11 Joomla\CMS\Application\AdministratorApplication->doExecute() JROOT/libraries/src/Application/CMSApplication.php:306
12 Joomla\CMS\Application\CMSApplication->execute() JROOT/administrator/includes/app.php:58
13 require_once() JROOT/administrator/index.php:32 To access the site's features I must disable the Fabrik

Server Information:
PHP active on Linux
Mysql database type
Database version 8.0.34-26
Collation database utf8mb4_0900_ai_ci
Database connection collation utf8mb4_0900_ai_ci
Database Connection Encryption None
Database Server Supports Connection Encryption Yes
PHP version 8.2.20 (tested on php 8.1)
Apache Web Server
WebServer PHP interface fpm-fcgi
Joomla! version Joomla! 5.1.2 Stable
Joomla Backward Compatibility Plugin Disabled
User Agent Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/127.0.0.0 Safari/537.36
 
It seems you have the Behaviour - Backward Compatibility plugin disabled.
In phpMyAdmin table #__extensins search and enable
1722433116008.png



Or
https://bitbucket.org/fabrikar/fabrik/commits/bc514dadb18b098381bc6a03792d46b50ca09c34

Although I assume there may be some more places which need the Backward Comptibility plugin.

Edit:
There are a lot of places where the old classes are used...

Don't disable the Behaviour - Backward Compatibility plugin.
The fix above will keep Joomla backend running, so the plugin can be accessed via J! backend Extension Manager.
 
Last edited:
Back
Top