?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo $this->language; ?>" lang="<?php echo $this->language; ?>" dir="<?php echo $this->direction; ?>">
<head>
<title><?php echo $this->error->code ?> - <?php echo $this->title; ?></title>
<link rel="stylesheet" href="<?php echo $this->baseurl; ?>/templates/system/css/error.css" type="text/css" />
<?php if($this->direction == 'rtl') : ?>
<link rel="stylesheet" href="<?php echo $this->baseurl ?>/templates/system/css/error_rtl.css" type="text/css" />
<?php endif; ?>
</head>
// Store the file path
$this->_file = $directory . '/' . $filename;
// Get the file content
ob_start();
require $directory . '/' . $filename;
$contents = ob_get_clean();
}
return $contents;
}
$this->baseurl = Uri::base(true);
$this->params = $params['params'] ?? new Registry();
$this->template = $template;
// Load
$this->_template = $this->_loadTemplate($baseDir, $file);
return $this;
}
/**
*
* @since 1.7.0
*/
public function parse($params = [])
{
return $this->_fetchTemplate($params)->_parseTemplate();
}
/**
* Outputs the template to the browser.
*
public function render($caching = false, $params = [])
{
$this->_caching = $caching;
if (empty($this->_template)) {
$this->parse($params);
}
if (\array_key_exists('csp_nonce', $params) && $params['csp_nonce'] !== null) {
$this->cspNonce = $params['csp_nonce'];
}
$this->debug = $params['debug'] ?? false;
$this->error = $this->_error;
$params['file'] = 'error.php';
return parent::render($cache, $params);
}
/**
* Render the backtrace
*
ob_end_clean();
}
$this->getDocument()->setTitle(Text::_('Error') . ': ' . $error->getCode());
return $this->getDocument()->render(
false,
[
'template' => $template->template,
'directory' => JPATH_THEMES,
'debug' => JDEBUG,
'subject' => $app,
'document' => $renderer->getDocument(),
])
);
$data = $renderer->render($error);
// If nothing was rendered, just use the message from the Exception
if (empty($data)) {
$data = $error->getMessage();
}
* @since 3.10.0
*/
public static function handleException(\Throwable $error)
{
static::logException($error);
static::render($error);
}
/**
* Render the error page based on an exception.
*
);
// Trigger the onError event.
$this->dispatchEvent('onError', $event);
ExceptionHandler::handleException($event->getError());
}
// Trigger the onBeforeRespond event.
$this->dispatchEvent(
'onBeforeRespond',
// Set the application as global app
\Joomla\CMS\Factory::$application = $app;
// Execute the application.
$app->execute();
* define() is used rather than "const" to not error for PHP 5.2 and lower
*/
define('_JEXEC', 1);
// Run the application - All executable code should be triggered through this file
require_once dirname(__FILE__) . '/includes/app.php';
*
* @return object|array
*
* @since 5.0.0
*/
protected function onSetData(object|array $value): object|array
{
return $value;
}
/**
$ucfirst = ucfirst($name);
$methodName1 = 'onSet' . $ucfirst;
$methodName2 = 'set' . $ucfirst;
if (method_exists($this, $methodName1)) {
$value = $this->{$methodName1}($value);
} elseif (method_exists($this, $methodName2)) {
@trigger_error(
sprintf(
'Use method "%s" for value pre-processing is deprecated, and will not work in Joomla 6. Use "%s" instead. Event %s',
$methodName2,
public function __construct(string $name, array $arguments = [])
{
parent::__construct($name, $arguments);
foreach ($arguments as $argumentName => $value) {
$this->setArgument($argumentName, $value);
}
}
/**
* Get an event argument value.
);
}
$this->constructed = true;
parent::__construct($name, $arguments);
}
/**
* Set the value of an event argument.
*
// Reshape the arguments array to preserve b/c with legacy listeners
if ($this->legacyArgumentsOrder) {
$arguments = $this->reshapeArguments($arguments, $this->legacyArgumentsOrder);
}
parent::__construct($name, $arguments);
if (!\array_key_exists('subject', $this->arguments)) {
throw new \BadMethodCallException("Argument 'subject' of event {$name} is required but has not been provided");
}
if ($args instanceof Event) {
$event = $args;
} elseif (\is_array($args)) {
$className = self::getEventClassByEventName($eventName);
$event = new $className($eventName, $args);
} else {
throw new \InvalidArgumentException('The arguments must either be an event or an array');
}
$result = $dispatcher->dispatch($eventName, $event);
Form::addFormPath(JPATH_SITE . '/components/com_users/forms');
$form = Form::getInstance('com_users.registration', 'registration');
//$form = Factory::getContainer()->get(FormFactoryInterface::class)->createForm('com_users.registration',array('xml','registration'));
$data = null;
//$dispatcher->trigger('onContentPrepareForm', array($form, $data));
$app->triggerEvent('onContentPrepareForm', array($form, $data));
$all_groups = $form->getFieldsets();
$field_groups = array();
foreach (array_reverse($all_groups) as $key => $value) {
if((strrpos($key, 'fields')) === false) continue;
?>
<div class="mod_smsregistration">
<?php if($user->id == 0 ){ ?>
<?php require JPATH_BASE .'/modules/mod_smsregistration/tmpl/login.php'; ?>
<?php require JPATH_BASE .'/modules/mod_smsregistration/tmpl/register.php'; ?>
<?php require JPATH_BASE .'/modules/mod_smsregistration/tmpl/reset.php'; ?>
<?php require JPATH_BASE .'/modules/mod_smsregistration/tmpl/confirm.php'; ?>
<?php require JPATH_BASE .'/modules/mod_smsregistration/tmpl/password.php'; ?>
<?php } else { ?>
<?php require JPATH_BASE .'/modules/mod_smsregistration/tmpl/user_menu.php'; ?>
require_once JPATH_SITE."/administrator/components/com_smsregistration/helpers/sendsms.php";
endif;
if(!class_exists('SRHelper')) :
require_once JPATH_SITE.'/administrator/components/com_smsregistration/helpers/smsregistration.php';
endif;
require JModuleHelper::getLayoutPath('mod_smsregistration', 'default');
unset($displayData);
} else {
extract($displayData);
}
include $path;
};
$loader($path, $this->getLayoutData());
}
}
}
include $path;
};
$loader($path, $this->getLayoutData());
}
}
$dispatcher = $app->bootModule($module->module, $app->getName())->getDispatcher($module, $app);
// Check if we have a dispatcher
if ($dispatcher) {
ob_start();
$dispatcher->dispatch();
$module->content = ob_get_clean();
}
// Add the flag that the module content has been rendered
$module->contentRendered = true;
// Get module parameters
$params = new Registry($module->params);
// Render the module content
static::renderRawModule($module, $params, $attribs);
// Return early if only the content is required
if (!empty($attribs['contentOnly'])) {
return $module->content;
}
$module->contentRendered = true;
return $module->content;
}
return ModuleHelper::renderModule($module, $attribs);
}
}
$user = Factory::getUser();
$frontediting = ($app->isClient('site') && $app->get('frontediting', 1) && !$user->guest);
$menusEditing = ($app->get('frontediting', 1) == 2) && $user->authorise('core.edit', 'com_menus');
foreach (ModuleHelper::getModules($position) as $mod) {
$moduleHtml = $renderer->render($mod, $params, $content);
if ($frontediting && trim($moduleHtml) != '' && $user->authorise('module.edit.frontend', 'com_modules.module.' . $mod->id)) {
$displayData = ['moduleHtml' => &$moduleHtml, 'module' => $mod, 'position' => $position, 'menusediting' => $menusEditing];
LayoutHelper::render('joomla.edit.frontediting_modules', $displayData);
}
$cbuffer[$hash] = $tmpdata;
$cache->store($cbuffer, 'cbuffer_' . $type);
} else {
$this->setBuffer($renderer->render($name, $attribs, null), $type, $name, $title);
}
return parent::$_buffer[$type][$name][$title];
}
$replace = [];
$with = [];
foreach ($this->_template_tags as $jdoc => $args) {
$replace[] = $jdoc;
$with[] = $this->getBuffer($args['type'], $args['name'], $args['attribs']);
}
return str_replace($replace, $with, $this->_template);
}
}
if (\array_key_exists('csp_nonce', $params) && $params['csp_nonce'] !== null) {
$this->cspNonce = $params['csp_nonce'];
}
$data = $this->_renderTemplate();
parent::render($caching, $params);
return $data;
}
if ($this->isClient('site') && $this->get('caching') && $this->get('caching', 2) == 2 && !Factory::getUser()->get('id')) {
$caching = true;
}
// Render the document.
$data = $this->document->render($caching, $this->docOptions);
// Set the application output data.
$this->setBody($data);
// Trigger the onAfterRender event.
$this->set('themeInherits', $template->parent);
break;
}
parent::render();
}
/**
* Route the application.
*
$this->doExecute();
// If we have an application document object, render it.
if ($this->document instanceof \Joomla\CMS\Document\Document) {
// Render the application output.
$this->render();
}
// If gzip compression is enabled in configuration and the server is compliant, compress the output.
if ($this->get('gzip') && !\ini_get('zlib.output_compression') && \ini_get('output_handler') !== 'ob_gzhandler') {
$this->compress();
// Set the application as global app
\Joomla\CMS\Factory::$application = $app;
// Execute the application.
$app->execute();
* define() is used rather than "const" to not error for PHP 5.2 and lower
*/
define('_JEXEC', 1);
// Run the application - All executable code should be triggered through this file
require_once dirname(__FILE__) . '/includes/app.php';
[2/2]
Error
|
---|
Error: Cannot access protected property TypeError::$code at /home/falaghso/public_html/templates/falagh/error.php:24 at require() (/home/falaghso/public_html/libraries/src/Document/HtmlDocument.php:731) at Joomla\CMS\Document\HtmlDocument->_loadTemplate('/home/falaghso/public_html/templates/falagh', 'error.php') (/home/falaghso/public_html/libraries/src/Document/HtmlDocument.php:785) at Joomla\CMS\Document\HtmlDocument->_fetchTemplate(array('template' => 'falagh', 'directory' => '/home/falaghso/public_html/templates', 'debug' => true, 'csp_nonce' => null, 'templateInherits' => '', 'params' => object(Registry), 'file' => 'error.php')) (/home/falaghso/public_html/libraries/src/Document/HtmlDocument.php:622) at Joomla\CMS\Document\HtmlDocument->parse(array('template' => 'falagh', 'directory' => '/home/falaghso/public_html/templates', 'debug' => true, 'csp_nonce' => null, 'templateInherits' => '', 'params' => object(Registry), 'file' => 'error.php')) (/home/falaghso/public_html/libraries/src/Document/HtmlDocument.php:640) at Joomla\CMS\Document\HtmlDocument->render(false, array('template' => 'falagh', 'directory' => '/home/falaghso/public_html/templates', 'debug' => true, 'csp_nonce' => null, 'templateInherits' => '', 'params' => object(Registry), 'file' => 'error.php')) (/home/falaghso/public_html/libraries/src/Document/ErrorDocument.php:139) at Joomla\CMS\Document\ErrorDocument->render(false, array('template' => 'falagh', 'directory' => '/home/falaghso/public_html/templates', 'debug' => true, 'csp_nonce' => null, 'templateInherits' => '', 'params' => object(Registry), 'file' => 'error.php')) (/home/falaghso/public_html/libraries/src/Error/Renderer/HtmlRenderer.php:70) at Joomla\CMS\Error\Renderer\HtmlRenderer->render(object(TypeError)) (/home/falaghso/public_html/libraries/src/Exception/ExceptionHandler.php:136) at Joomla\CMS\Exception\ExceptionHandler::render(object(TypeError)) (/home/falaghso/public_html/libraries/src/Exception/ExceptionHandler.php:73) at Joomla\CMS\Exception\ExceptionHandler::handleException(object(TypeError)) (/home/falaghso/public_html/libraries/src/Application/CMSApplication.php:336) at Joomla\CMS\Application\CMSApplication->execute() (/home/falaghso/public_html/includes/app.php:58) at require_once('/home/falaghso/public_html/includes/app.php') (/home/falaghso/public_html/index.php:32) |
[1/2]
TypeError
|
---|
TypeError: Joomla\CMS\Event\Model\FormEvent::onSetData(): Argument #1 ($value) must be of type object|array, null given, called in /home/falaghso/public_html/libraries/src/Event/AbstractEvent.php on line 227 at /home/falaghso/public_html/libraries/src/Event/Model/FormEvent.php:116 at Joomla\CMS\Event\Model\FormEvent->onSetData(null) (/home/falaghso/public_html/libraries/src/Event/AbstractEvent.php:227) at Joomla\CMS\Event\AbstractEvent->setArgument('data', null) (/home/falaghso/public_html/libraries/src/Event/AbstractEvent.php:115) at Joomla\CMS\Event\AbstractEvent->__construct('onContentPrepareForm', array('subject' => object(Form), 'data' => null)) (/home/falaghso/public_html/libraries/src/Event/AbstractImmutableEvent.php:51) at Joomla\CMS\Event\AbstractImmutableEvent->__construct('onContentPrepareForm', array('subject' => object(Form), 'data' => null)) (/home/falaghso/public_html/libraries/src/Event/Model/FormEvent.php:56) at Joomla\CMS\Event\Model\FormEvent->__construct('onContentPrepareForm', array('subject' => object(Form), 'data' => null)) (/home/falaghso/public_html/libraries/src/Application/EventAware.php:106) at Joomla\CMS\Application\WebApplication->triggerEvent('onContentPrepareForm', array(object(Form), null)) (/home/falaghso/public_html/modules/mod_smsregistration/tmpl/register.php:24) at require('/home/falaghso/public_html/modules/mod_smsregistration/tmpl/register.php') (/home/falaghso/public_html/modules/mod_smsregistration/tmpl/default.php:38) at require('/home/falaghso/public_html/modules/mod_smsregistration/tmpl/default.php') (/home/falaghso/public_html/modules/mod_smsregistration/mod_smsregistration.php:40) at include('/home/falaghso/public_html/modules/mod_smsregistration/mod_smsregistration.php') (/home/falaghso/public_html/libraries/src/Dispatcher/ModuleDispatcher.php:52) at Joomla\CMS\Dispatcher\ModuleDispatcher::Joomla\CMS\Dispatcher\{closure}('/home/falaghso/public_html/modules/mod_smsregistration/mod_smsregistration.php', null) (/home/falaghso/public_html/libraries/src/Dispatcher/ModuleDispatcher.php:55) at Joomla\CMS\Dispatcher\ModuleDispatcher->dispatch() (/home/falaghso/public_html/libraries/src/Helper/ModuleHelper.php:291) at Joomla\CMS\Helper\ModuleHelper::renderRawModule(object(stdClass), object(Registry), array('name' => 'topleft')) (/home/falaghso/public_html/libraries/src/Helper/ModuleHelper.php:162) at Joomla\CMS\Helper\ModuleHelper::renderModule(object(stdClass), array('name' => 'topleft')) (/home/falaghso/public_html/libraries/src/Document/Renderer/Html/ModuleRenderer.php:99) at Joomla\CMS\Document\Renderer\Html\ModuleRenderer->render(object(stdClass), array('name' => 'topleft'), null) (/home/falaghso/public_html/libraries/src/Document/Renderer/Html/ModulesRenderer.php:51) at Joomla\CMS\Document\Renderer\Html\ModulesRenderer->render('topleft', array('name' => 'topleft'), null) (/home/falaghso/public_html/libraries/src/Document/HtmlDocument.php:575) at Joomla\CMS\Document\HtmlDocument->getBuffer('modules', 'topleft', array('name' => 'topleft')) (/home/falaghso/public_html/libraries/src/Document/HtmlDocument.php:894) at Joomla\CMS\Document\HtmlDocument->_renderTemplate() (/home/falaghso/public_html/libraries/src/Document/HtmlDocument.php:647) at Joomla\CMS\Document\HtmlDocument->render(false, array('template' => 'falagh', 'file' => 'index.php', 'params' => object(Registry), 'csp_nonce' => null, 'templateInherits' => null, 'directory' => '/home/falaghso/public_html/templates')) (/home/falaghso/public_html/libraries/src/Application/CMSApplication.php:1073) at Joomla\CMS\Application\CMSApplication->render() (/home/falaghso/public_html/libraries/src/Application/SiteApplication.php:732) at Joomla\CMS\Application\SiteApplication->render() (/home/falaghso/public_html/libraries/src/Application/CMSApplication.php:311) at Joomla\CMS\Application\CMSApplication->execute() (/home/falaghso/public_html/includes/app.php:58) at require_once('/home/falaghso/public_html/includes/app.php') (/home/falaghso/public_html/index.php:32) |