@QXQXQXQX QYXRYXPQYXQXQXRYXRYX@RYX QXQXQXLYX@MYX@NYXxRXuRXRX;YX=YXsetError(Text::_('JLIB_APPLICATION_ERROR_NOT_EXIST')); } else { $this->setError($table->getError()); } return false; } // If there is no checked_out or checked_out_time field, just return true. if (!$table->hasField('checked_out') || !$table->hasField('checked_out_time')) { return true; } $user = $this->getCurrentUser(); // When the user is a guest, don't do a checkout if (!$user->id) { return false; } $checkedOutField = $table->getColumnAlias('checked_out'); // Check if this is the user having previously checked out the row. if ($table->$checkedOutField > 0 && $table->$checkedOutField != $user->id) { $this->setError(Text::_('JLIB_APPLICATION_ERROR_CHECKOUT_USER_MISMATCH')); return false; } // Attempt to check the row out. if (!$table->checkOut($user->id, $pk)) { $this->setError($table->getError()); return false; } } return true; } /** * Method to validate the form data. * * @param Form $form The form to validate against. * @param array $data The data to validate. * @param string $group The name of the field group to validate. * * @return array|boolean Array of filtered data if valid, false otherwise. * * @see FormRule * @see InputFilter * @since 1.6 */ public function validate($form, $data, $group = null) { $dispatcher = $this->getDispatcher(); // Include the plugins for the delete events. PluginHelper::importPlugin($this->events_map['validate'], null, true, $dispatcher); if (!empty($dispatcher->getListeners('onUserBeforeDataValidation'))) { @trigger_error( 'The `onUserBeforeDataValidation` event is deprecated and will be removed in 6.0.' . 'Use the `onContentValidateData` event instead.', E_USER_DEPRECATED ); $data = $dispatcher->dispatch('onUserBeforeDataValidation', new Model\BeforeValidateDataEvent('onUserBeforeDataValidation', [ 'subject' => $form, 'data' => &$data, // @todo: Remove reference in Joomla 6, see BeforeValidateDataEvent::__constructor() ]))->getArgument('data', $data); } $data = $dispatcher->dispatch('onContentBeforeValidateData', new Model\BeforeValidateDataEvent('onContentBeforeValidateData', [ 'subject' => $form, 'data' => &$data, // @todo: Remove reference in Joomla 6, see AfterRenderModulesEvent::__constructor() ]))->getArgument('data', $data); // Filter and validate the form data. $return = $form->process($data, $group); // Check for an error. if ($return instanceof \Exception) { $this->setError($return->getMessage()); return false; } // Check the validation results. if ($return === false) { // Get the validation messages from the form. foreach ($form->getErrors() as $message) { $this->setError($message); } return false; } $data = $return; // Tags B/C break at 3.1.2 if (!isset($data['tags']) && isset($data['metadata']['tags'])) { $data['tags'] = $data['metadata']['tags']; } return $data; } }
Warning: Class "Joomla\CMS\MVC\Model\FormModel" not found in /datas/yulpa173848/sites/test2025.samclap-ufolep.fr/htdocs/libraries/loader.php on line 576
Attempted to load class "FormModel" from namespace "Joomla\CMS\MVC\Model". Did you forget a "use" statement for another namespace? (500 Whoops, looks like something went wrong.)

Attempted to load class "FormModel" from namespace "Joomla\CMS\MVC\Model".
Did you forget a "use" statement for another namespace?

Exceptions 2

Symfony\Component\ErrorHandler\Error\ ClassNotFoundError

  1. /**
  2.  * Prototype admin model.
  3.  *
  4.  * @since  1.6
  5.  */
  6. abstract class AdminModel extends FormModel
  7. {
  8.     /**
  9.      * The type alias for this content type (for example, 'com_content.article').
  10.      *
  11.      * @var    string
  1.          *
  2.          * @param  string $file
  3.          * @return void
  4.          */
  5.         self::$includeFile \Closure::bind(static function($file) {
  6.             include $file;
  7.         }, nullnull);
  8.     }
  9. }
  1.      */
  2.     public function loadClass($class)
  3.     {
  4.         if ($file $this->findFile($class)) {
  5.             $includeFile self::$includeFile;
  6.             $includeFile($file);
  7.             return true;
  8.         }
  9.         return null;
ClassLoader->loadClass('Joomla\\CMS\\MVC\\Model\\AdminModel') in /datas/yulpa173848/sites/test2025.samclap-ufolep.fr/htdocs/libraries/src/Autoload/ClassLoader.php (line 59)
  1.      *
  2.      * @since   3.4
  3.      */
  4.     public function loadClass($class)
  5.     {
  6.         if ($result $this->loader->loadClass($class)) {
  7.             \JLoader::applyAliasFor($class);
  8.         }
  9.         return $result;
  10.     }
  1. /**
  2.  * Template style model.
  3.  *
  4.  * @since  1.6
  5.  */
  6. class StyleModel extends AdminModel
  7. {
  8.     /**
  9.      * The help screen key for the module.
  10.      *
  11.      * @var     string
  1.          *
  2.          * @param  string $file
  3.          * @return void
  4.          */
  5.         self::$includeFile \Closure::bind(static function($file) {
  6.             include $file;
  7.         }, nullnull);
  8.     }
  9. }
  1.      */
  2.     public function loadClass($class)
  3.     {
  4.         if ($file $this->findFile($class)) {
  5.             $includeFile self::$includeFile;
  6.             $includeFile($file);
  7.             return true;
  8.         }
  9.         return null;
ClassLoader->loadClass('Joomla\\Component\\Templates\\Administrator\\Model\\StyleModel') in /datas/yulpa173848/sites/test2025.samclap-ufolep.fr/htdocs/libraries/src/Autoload/ClassLoader.php (line 59)
  1.      *
  2.      * @since   3.4
  3.      */
  4.     public function loadClass($class)
  5.     {
  6.         if ($result $this->loader->loadClass($class)) {
  7.             \JLoader::applyAliasFor($class);
  8.         }
  9.         return $result;
  10.     }
ClassLoader->loadClass('Joomla\\Component\\Templates\\Administrator\\Model\\StyleModel')
class_exists('Joomla\\Component\\Templates\\Administrator\\Model\\StyleModel') in /datas/yulpa173848/sites/test2025.samclap-ufolep.fr/htdocs/libraries/src/MVC/Factory/MVCFactory.php (line 299)
  1.             $prefix Factory::getApplication();
  2.         }
  3.         $className trim($this->namespace'\\') . '\\' ucfirst($prefix) . '\\' $suffix;
  4.         if (!class_exists($className)) {
  5.             return null;
  6.         }
  7.         return $className;
  8.     }
MVCFactory->getClassName('Model\\StyleModel', 'Administrator') in /datas/yulpa173848/sites/test2025.samclap-ufolep.fr/htdocs/libraries/src/MVC/Factory/MVCFactory.php (line 156)
  1.             );
  2.             $prefix Factory::getApplication()->getName();
  3.         }
  4.         $className $this->getClassName('Model\\' ucfirst($name) . 'Model'$prefix);
  5.         if (!$className) {
  6.             return null;
  7.         }
  1.         if ($cache->contains($cacheId)) {
  2.             $templates $cache->get($cacheId);
  3.         } else {
  4.             $templates $this->bootComponent('templates')->getMVCFactory()
  5.                 ->createModel('Style''Administrator')->getSiteTemplates();
  6.             foreach ($templates as &$template) {
  7.                 // Create home element
  8.                 if ($template->home == && !isset($template_home) || $this->getLanguageFilter() && $template->home == $tag) {
  9.                     $template_home = clone $template;
  1.     public function render(\Throwable $error): string
  2.     {
  3.         $app Factory::getApplication();
  4.         // Get the current template from the application
  5.         $template $app->getTemplate(true);
  6.         // Push the error object into the document
  7.         $this->getDocument()->setError($error);
  8.         // Add registry file for the template asset
  1.                     'subject'  => $app,
  2.                     'document' => $renderer->getDocument(),
  3.                 ])
  4.             );
  5.             $data $renderer->render($error);
  6.             // If nothing was rendered, just use the message from the Exception
  7.             if (empty($data)) {
  8.                 $data $error->getMessage();
  9.             }
  1.      * @since   3.10.0
  2.      */
  3.     public static function handleException(\Throwable $error)
  4.     {
  5.         static::logException($error);
  6.         static::render($error);
  7.     }
  8.     /**
  9.      * Render the error page based on an exception.
  10.      *
  1.             );
  2.             // Trigger the onError event.
  3.             $this->dispatchEvent('onError'$event);
  4.             ExceptionHandler::handleException($event->getError());
  5.         }
  6.         // Trigger the onBeforeRespond event.
  7.         $this->dispatchEvent(
  8.             'onBeforeRespond',
  1. // Set the application as global app
  2. \Joomla\CMS\Factory::$application $app;
  3. // Execute the application.
  4. $app->execute();
require_once('/datas/yulpa173848/sites/test2025.samclap-ufolep.fr/htdocs/includes/app.php') in /datas/yulpa173848/sites/test2025.samclap-ufolep.fr/htdocs/index.php (line 32)
  1.  * define() is used rather than "const" to not error for PHP 5.2 and lower
  2.  */
  3. define('_JEXEC'1);
  4. // Run the application - All executable code should be triggered through this file
  5. require_once dirname(__FILE__) . '/includes/app.php';

Error

Class "Joomla\CMS\MVC\Model\FormModel" not found

  1. /**
  2.  * Prototype admin model.
  3.  *
  4.  * @since  1.6
  5.  */
  6. abstract class AdminModel extends FormModel
  7. {
  8.     /**
  9.      * The type alias for this content type (for example, 'com_content.article').
  10.      *
  11.      * @var    string
  1.          *
  2.          * @param  string $file
  3.          * @return void
  4.          */
  5.         self::$includeFile \Closure::bind(static function($file) {
  6.             include $file;
  7.         }, nullnull);
  8.     }
  9. }
  1.      */
  2.     public function loadClass($class)
  3.     {
  4.         if ($file $this->findFile($class)) {
  5.             $includeFile self::$includeFile;
  6.             $includeFile($file);
  7.             return true;
  8.         }
  9.         return null;
ClassLoader->loadClass('Joomla\\CMS\\MVC\\Model\\AdminModel') in /datas/yulpa173848/sites/test2025.samclap-ufolep.fr/htdocs/libraries/src/Autoload/ClassLoader.php (line 59)
  1.      *
  2.      * @since   3.4
  3.      */
  4.     public function loadClass($class)
  5.     {
  6.         if ($result $this->loader->loadClass($class)) {
  7.             \JLoader::applyAliasFor($class);
  8.         }
  9.         return $result;
  10.     }
  1. /**
  2.  * Template style model.
  3.  *
  4.  * @since  1.6
  5.  */
  6. class StyleModel extends AdminModel
  7. {
  8.     /**
  9.      * The help screen key for the module.
  10.      *
  11.      * @var     string
  1.          *
  2.          * @param  string $file
  3.          * @return void
  4.          */
  5.         self::$includeFile \Closure::bind(static function($file) {
  6.             include $file;
  7.         }, nullnull);
  8.     }
  9. }
  1.      */
  2.     public function loadClass($class)
  3.     {
  4.         if ($file $this->findFile($class)) {
  5.             $includeFile self::$includeFile;
  6.             $includeFile($file);
  7.             return true;
  8.         }
  9.         return null;
ClassLoader->loadClass('Joomla\\Component\\Templates\\Administrator\\Model\\StyleModel') in /datas/yulpa173848/sites/test2025.samclap-ufolep.fr/htdocs/libraries/src/Autoload/ClassLoader.php (line 59)
  1.      *
  2.      * @since   3.4
  3.      */
  4.     public function loadClass($class)
  5.     {
  6.         if ($result $this->loader->loadClass($class)) {
  7.             \JLoader::applyAliasFor($class);
  8.         }
  9.         return $result;
  10.     }
ClassLoader->loadClass('Joomla\\Component\\Templates\\Administrator\\Model\\StyleModel')
class_exists('Joomla\\Component\\Templates\\Administrator\\Model\\StyleModel') in /datas/yulpa173848/sites/test2025.samclap-ufolep.fr/htdocs/libraries/src/MVC/Factory/MVCFactory.php (line 299)
  1.             $prefix Factory::getApplication();
  2.         }
  3.         $className trim($this->namespace'\\') . '\\' ucfirst($prefix) . '\\' $suffix;
  4.         if (!class_exists($className)) {
  5.             return null;
  6.         }
  7.         return $className;
  8.     }
MVCFactory->getClassName('Model\\StyleModel', 'Administrator') in /datas/yulpa173848/sites/test2025.samclap-ufolep.fr/htdocs/libraries/src/MVC/Factory/MVCFactory.php (line 156)
  1.             );
  2.             $prefix Factory::getApplication()->getName();
  3.         }
  4.         $className $this->getClassName('Model\\' ucfirst($name) . 'Model'$prefix);
  5.         if (!$className) {
  6.             return null;
  7.         }
  1.         if ($cache->contains($cacheId)) {
  2.             $templates $cache->get($cacheId);
  3.         } else {
  4.             $templates $this->bootComponent('templates')->getMVCFactory()
  5.                 ->createModel('Style''Administrator')->getSiteTemplates();
  6.             foreach ($templates as &$template) {
  7.                 // Create home element
  8.                 if ($template->home == && !isset($template_home) || $this->getLanguageFilter() && $template->home == $tag) {
  9.                     $template_home = clone $template;
  1.                 // Set metadata
  2.                 $document->setMetaData('rights'$this->get('MetaRights'));
  3.                 // Get the template
  4.                 $template $this->getTemplate(true);
  5.                 // Store the template and its params to the config
  6.                 $this->set('theme'$template->template);
  7.                 $this->set('themeParams'$template->params);
  1.                 ['option' => 'com_users''view' => 'profile''layout' => 'edit'],
  2.             ]);
  3.         }
  4.         // Dispatch the application
  5.         $this->dispatch();
  6.         // Mark afterDispatch in the profiler.
  7.         JDEBUG $this->profiler->mark('afterDispatch') : null;
  8.     }
  1.             $this->sanityCheckSystemVariables();
  2.             $this->setupLogging();
  3.             $this->createExtensionNamespaceMap();
  4.             // Perform application routines.
  5.             $this->doExecute();
  6.             // If we have an application document object, render it.
  7.             if ($this->document instanceof \Joomla\CMS\Document\Document) {
  8.                 // Render the application output.
  9.                 $this->render();
  1. // Set the application as global app
  2. \Joomla\CMS\Factory::$application $app;
  3. // Execute the application.
  4. $app->execute();
require_once('/datas/yulpa173848/sites/test2025.samclap-ufolep.fr/htdocs/includes/app.php') in /datas/yulpa173848/sites/test2025.samclap-ufolep.fr/htdocs/index.php (line 32)
  1.  * define() is used rather than "const" to not error for PHP 5.2 and lower
  2.  */
  3. define('_JEXEC'1);
  4. // Run the application - All executable code should be triggered through this file
  5. require_once dirname(__FILE__) . '/includes/app.php';

Stack Traces 2

[2/2] ClassNotFoundError
Symfony\Component\ErrorHandler\Error\ClassNotFoundError:
Attempted to load class "FormModel" from namespace "Joomla\CMS\MVC\Model".
Did you forget a "use" statement for another namespace?

  at /datas/yulpa173848/sites/test2025.samclap-ufolep.fr/htdocs/libraries/src/MVC/Model/AdminModel.php:42
  at include()
     (/datas/yulpa173848/sites/test2025.samclap-ufolep.fr/htdocs/libraries/vendor/composer/ClassLoader.php:576)
  at Composer\Autoload\{closure}('/datas/yulpa173848/sites/test2025.samclap-ufolep.fr/htdocs/libraries/vendor/composer/../../../libraries/src/MVC/Model/AdminModel.php')
     (/datas/yulpa173848/sites/test2025.samclap-ufolep.fr/htdocs/libraries/vendor/composer/ClassLoader.php:427)
  at Composer\Autoload\ClassLoader->loadClass('Joomla\\CMS\\MVC\\Model\\AdminModel')
     (/datas/yulpa173848/sites/test2025.samclap-ufolep.fr/htdocs/libraries/src/Autoload/ClassLoader.php:59)
  at Joomla\CMS\Autoload\ClassLoader->loadClass('Joomla\\CMS\\MVC\\Model\\AdminModel')
     (/datas/yulpa173848/sites/test2025.samclap-ufolep.fr/htdocs/administrator/components/com_templates/src/Model/StyleModel.php:39)
  at include('/datas/yulpa173848/sites/test2025.samclap-ufolep.fr/htdocs/administrator/components/com_templates/src/Model/StyleModel.php')
     (/datas/yulpa173848/sites/test2025.samclap-ufolep.fr/htdocs/libraries/vendor/composer/ClassLoader.php:576)
  at Composer\Autoload\{closure}('/datas/yulpa173848/sites/test2025.samclap-ufolep.fr/htdocs/administrator/components/com_templates/src/Model/StyleModel.php')
     (/datas/yulpa173848/sites/test2025.samclap-ufolep.fr/htdocs/libraries/vendor/composer/ClassLoader.php:427)
  at Composer\Autoload\ClassLoader->loadClass('Joomla\\Component\\Templates\\Administrator\\Model\\StyleModel')
     (/datas/yulpa173848/sites/test2025.samclap-ufolep.fr/htdocs/libraries/src/Autoload/ClassLoader.php:59)
  at Joomla\CMS\Autoload\ClassLoader->loadClass('Joomla\\Component\\Templates\\Administrator\\Model\\StyleModel')
  at class_exists('Joomla\\Component\\Templates\\Administrator\\Model\\StyleModel')
     (/datas/yulpa173848/sites/test2025.samclap-ufolep.fr/htdocs/libraries/src/MVC/Factory/MVCFactory.php:299)
  at Joomla\CMS\MVC\Factory\MVCFactory->getClassName('Model\\StyleModel', 'Administrator')
     (/datas/yulpa173848/sites/test2025.samclap-ufolep.fr/htdocs/libraries/src/MVC/Factory/MVCFactory.php:156)
  at Joomla\CMS\MVC\Factory\MVCFactory->createModel('Style', 'Administrator')
     (/datas/yulpa173848/sites/test2025.samclap-ufolep.fr/htdocs/libraries/src/Application/SiteApplication.php:477)
  at Joomla\CMS\Application\SiteApplication->getTemplate(true)
     (/datas/yulpa173848/sites/test2025.samclap-ufolep.fr/htdocs/libraries/src/Error/Renderer/HtmlRenderer.php:50)
  at Joomla\CMS\Error\Renderer\HtmlRenderer->render(object(Error))
     (/datas/yulpa173848/sites/test2025.samclap-ufolep.fr/htdocs/libraries/src/Exception/ExceptionHandler.php:136)
  at Joomla\CMS\Exception\ExceptionHandler::render(object(Error))
     (/datas/yulpa173848/sites/test2025.samclap-ufolep.fr/htdocs/libraries/src/Exception/ExceptionHandler.php:73)
  at Joomla\CMS\Exception\ExceptionHandler::handleException(object(Error))
     (/datas/yulpa173848/sites/test2025.samclap-ufolep.fr/htdocs/libraries/src/Application/CMSApplication.php:336)
  at Joomla\CMS\Application\CMSApplication->execute()
     (/datas/yulpa173848/sites/test2025.samclap-ufolep.fr/htdocs/includes/app.php:58)
  at require_once('/datas/yulpa173848/sites/test2025.samclap-ufolep.fr/htdocs/includes/app.php')
     (/datas/yulpa173848/sites/test2025.samclap-ufolep.fr/htdocs/index.php:32)                
[1/2] Error
Error:
Class "Joomla\CMS\MVC\Model\FormModel" not found

  at /datas/yulpa173848/sites/test2025.samclap-ufolep.fr/htdocs/libraries/src/MVC/Model/AdminModel.php:42
  at include()
     (/datas/yulpa173848/sites/test2025.samclap-ufolep.fr/htdocs/libraries/vendor/composer/ClassLoader.php:576)
  at Composer\Autoload\{closure}('/datas/yulpa173848/sites/test2025.samclap-ufolep.fr/htdocs/libraries/vendor/composer/../../../libraries/src/MVC/Model/AdminModel.php')
     (/datas/yulpa173848/sites/test2025.samclap-ufolep.fr/htdocs/libraries/vendor/composer/ClassLoader.php:427)
  at Composer\Autoload\ClassLoader->loadClass('Joomla\\CMS\\MVC\\Model\\AdminModel')
     (/datas/yulpa173848/sites/test2025.samclap-ufolep.fr/htdocs/libraries/src/Autoload/ClassLoader.php:59)
  at Joomla\CMS\Autoload\ClassLoader->loadClass('Joomla\\CMS\\MVC\\Model\\AdminModel')
     (/datas/yulpa173848/sites/test2025.samclap-ufolep.fr/htdocs/administrator/components/com_templates/src/Model/StyleModel.php:39)
  at include('/datas/yulpa173848/sites/test2025.samclap-ufolep.fr/htdocs/administrator/components/com_templates/src/Model/StyleModel.php')
     (/datas/yulpa173848/sites/test2025.samclap-ufolep.fr/htdocs/libraries/vendor/composer/ClassLoader.php:576)
  at Composer\Autoload\{closure}('/datas/yulpa173848/sites/test2025.samclap-ufolep.fr/htdocs/administrator/components/com_templates/src/Model/StyleModel.php')
     (/datas/yulpa173848/sites/test2025.samclap-ufolep.fr/htdocs/libraries/vendor/composer/ClassLoader.php:427)
  at Composer\Autoload\ClassLoader->loadClass('Joomla\\Component\\Templates\\Administrator\\Model\\StyleModel')
     (/datas/yulpa173848/sites/test2025.samclap-ufolep.fr/htdocs/libraries/src/Autoload/ClassLoader.php:59)
  at Joomla\CMS\Autoload\ClassLoader->loadClass('Joomla\\Component\\Templates\\Administrator\\Model\\StyleModel')
  at class_exists('Joomla\\Component\\Templates\\Administrator\\Model\\StyleModel')
     (/datas/yulpa173848/sites/test2025.samclap-ufolep.fr/htdocs/libraries/src/MVC/Factory/MVCFactory.php:299)
  at Joomla\CMS\MVC\Factory\MVCFactory->getClassName('Model\\StyleModel', 'Administrator')
     (/datas/yulpa173848/sites/test2025.samclap-ufolep.fr/htdocs/libraries/src/MVC/Factory/MVCFactory.php:156)
  at Joomla\CMS\MVC\Factory\MVCFactory->createModel('Style', 'Administrator')
     (/datas/yulpa173848/sites/test2025.samclap-ufolep.fr/htdocs/libraries/src/Application/SiteApplication.php:477)
  at Joomla\CMS\Application\SiteApplication->getTemplate(true)
     (/datas/yulpa173848/sites/test2025.samclap-ufolep.fr/htdocs/libraries/src/Application/SiteApplication.php:175)
  at Joomla\CMS\Application\SiteApplication->dispatch()
     (/datas/yulpa173848/sites/test2025.samclap-ufolep.fr/htdocs/libraries/src/Application/SiteApplication.php:273)
  at Joomla\CMS\Application\SiteApplication->doExecute()
     (/datas/yulpa173848/sites/test2025.samclap-ufolep.fr/htdocs/libraries/src/Application/CMSApplication.php:306)
  at Joomla\CMS\Application\CMSApplication->execute()
     (/datas/yulpa173848/sites/test2025.samclap-ufolep.fr/htdocs/includes/app.php:58)
  at require_once('/datas/yulpa173848/sites/test2025.samclap-ufolep.fr/htdocs/includes/app.php')
     (/datas/yulpa173848/sites/test2025.samclap-ufolep.fr/htdocs/index.php:32)