if ($this->config->get('main_sef') == 'datecategory' || $this->config->get('main_sef') == 'category') {
// Get the current primary category
$category = $this->getPrimaryCategory();
$categoryPermalink = $category->getAlias();
// Date and category based permalink type
if ($this->config->get('main_sef') == 'datecategory') {
$permalink = $categoryPermalink . '/' . $datePermalink . '/' . $permalink;
} else {
$segments[]= $post->getPrimaryCategory()->getAlias();
}
// Since the cache library is already using the post library to re-render the post table data, just use the permalink.
if ($includeAlias) {
$segments[] = $post->getAlias();
}
if (isset($query['format']) == 'amp') {
$segments[] = 'amp';
*/
class EasyblogRouter extends Joomla\CMS\Component\Router\RouterBase
{
public function build(&$query)
{
$segments = EasyBlogRouterBase::buildRoute($query);
return $segments;
}
public function parse(&$segments)
{
$item = empty($query['Itemid']) ? null : $this->menu->getItem($query['Itemid']);
// Build the component route
$component = preg_replace('/[^A-Z0-9_\.-]/i', '', $query['option']);
$crouter = $this->getComponentRouter($component);
$parts = $crouter->build($query);
$tmp = trim(implode('/', $parts));
// Build the application route
if ($item !== null && $query['option'] === $item->component) {
if (!$item->home) {
if (!\array_key_exists('build' . $stage, $this->rules)) {
throw new \InvalidArgumentException(sprintf('The %s stage is not registered. (%s)', $stage, __METHOD__));
}
foreach ($this->rules['build' . $stage] as $rule) {
\call_user_func_array($rule, array(&$this, &$uri));
}
}
/**
* Create a uri based on a full or partial URL string
// Do the preprocess stage of the URL build process
$this->processBuildRules($uri, self::PROCESS_BEFORE);
// Do the main stage of the URL build process
$this->processBuildRules($uri);
// Do the postprocess stage of the URL build process
$this->processBuildRules($uri, self::PROCESS_AFTER);
$this->cache[$key] = clone $uri;
if (!isset(self::$_router[$client])) {
throw new \RuntimeException(Text::sprintf('JLIB_APPLICATION_ERROR_ROUTER_LOAD', $client), 500);
}
// Build route.
$uri = self::$_router[$client]->build($url);
$scheme = array('path', 'query', 'fragment');
/*
* Get the secure/unsecure URLs.
*
}
$app = Factory::getApplication();
$client = $app->getName();
return static::link($client, $url, $xhtml, $tls, $absolute);
} catch (\RuntimeException $e) {
// @deprecated 4.0 Before 3.9.0 this method failed silently on router error. This B/C will be removed in Joomla 4.0.
return null;
}
}
}
if ((strpos($item->flink, 'index.php?') !== false) && strcasecmp(substr($item->flink, 0, 4), 'http')) {
$item->flink = Route::_($item->flink, true, $itemParams->get('secure'));
} else {
$item->flink = Route::_($item->flink);
}
// We prevent the double encoding because for some reason the $item is shared for menu modules and we get double encoding
// when the cause of that is found the argument should be removed
$item->title = htmlspecialchars($item->title, ENT_COMPAT, 'UTF-8', false);
defined('_JEXEC') or die;
use Joomla\CMS\Helper\ModuleHelper;
use Joomla\Module\Menu\Site\Helper\MenuHelper;
$list = MenuHelper::getList($params);
$base = MenuHelper::getBase($params);
$active = MenuHelper::getActive($params);
$default = MenuHelper::getDefault();
$active_id = $active->id;
$default_id = $default->id;
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 = array('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;
}
'file' => 'index.php',
'directory' => JPATH_THEMES,
'debug' => JDEBUG,
'csp_nonce' => $this->app->get('csp_nonce'),
'templateInherits' => $template->parent,
'params' => $template->params,
]
);
$this->app->setBody($data);
$this->renderDocument(
$rule,
$error,
$this->getSuggested(
$rule,
$page
)
);
}
$renderer = $this->factory->getA(
'Weeblr\Forseo\Platform\Helpers\Errorpages\\' . $platformType . 'renderer'
);
$renderer->render(
$applicableRule,
$error,
$page
);
die();
{
$this->factory->getA(Helper\Errorpage::class)
->render(
$rules,
$error,
$this->currentPage
);
}
}
/**
{
$params[0] = call_user_func_array($callbackRecord['callback'], $params);
}
else
{
call_user_func_array($callbackRecord['callback'], $params);
}
}
}
$newValue = null;
{
return Factory::get()->getThe('platform')->executeHook($filter, $params);
}
else
{
Factory::get()->getThe('platform')->executeHook($filter, $params);
}
}
/**
* Whether a given hook has callbacks registered.
*
* @return mixed|null
*/
public function run(...$args)
{
$this->execute(false, $args);
}
/**
* Execute all callbacks registered for a hook id
* in order of priority, only on first call.
*
* @return void
*
*/
$this->factory->getThe('hook')->run(
'forseo_on_404_error',
$error
);
break;
case 500:
public function handleError(PlatformEvent\ErrorEvent $event)
{
// pass on to 4SEO: if handled, it won't return.
call_user_func_array(
$this->appHandler,
[$event->getError()]
);
}
}
if ($event->isStopped())
{
return $event;
}
$listener($event);
}
}
return $event;
}
$event = new $className($eventName, $args);
} else {
throw new \InvalidArgumentException('The arguments must either be an event or an array');
}
$result = $dispatcher->dispatch($eventName, $event);
// @todo - There are still test cases where the result isn't defined, temporarily leave the isset check in place
return !isset($result['result']) || \is_null($result['result']) ? [] : $result['result'];
}
}
'application' => $this,
]
);
// Trigger the onError event.
$this->triggerEvent('onError', $event);
ExceptionHandler::handleException($event->getError());
}
// Trigger the onBeforeRespond event.
// 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';
Error
|
---|
Error: Call to a member function getAlias() on bool at /home/authorsinfo/public_html/administrator/components/com_easyblog/includes/post/post.php:6742 at EasyBlogPost->getAlias() (/home/authorsinfo/public_html/components/com_easyblog/router.php:166) at EasyBlogRouterBase::buildRoute(array('option' => 'com_easyblog', 'view' => 'entry', 'id' => '448', 'Itemid' => '244')) (/home/authorsinfo/public_html/components/com_easyblog/router.php:1328) at EasyblogRouter->build(array('option' => 'com_easyblog', 'view' => 'entry', 'id' => '448', 'Itemid' => '244')) (/home/authorsinfo/public_html/libraries/src/Router/SiteRouter.php:441) at Joomla\CMS\Router\SiteRouter->buildSefRoute(object(SiteRouter), object(Uri)) (/home/authorsinfo/public_html/libraries/src/Router/Router.php:405) at Joomla\CMS\Router\Router->processBuildRules(object(Uri)) (/home/authorsinfo/public_html/libraries/src/Router/Router.php:192) at Joomla\CMS\Router\Router->build('index.php/pages/login') (/home/authorsinfo/public_html/libraries/src/Router/Route.php:141) at Joomla\CMS\Router\Route::link('site', 'index.php/pages/login', true, 0, false) (/home/authorsinfo/public_html/libraries/src/Router/Route.php:93) at Joomla\CMS\Router\Route::_('index.php/pages/login') (/home/authorsinfo/public_html/modules/mod_menu/src/Helper/MenuHelper.php:156) at Joomla\Module\Menu\Site\Helper\MenuHelper::getList(object(Registry)) (/home/authorsinfo/public_html/modules/mod_menu/mod_menu.php:16) at include('/home/authorsinfo/public_html/modules/mod_menu/mod_menu.php') (/home/authorsinfo/public_html/libraries/src/Dispatcher/ModuleDispatcher.php:52) at Joomla\CMS\Dispatcher\ModuleDispatcher::Joomla\CMS\Dispatcher\{closure}('/home/authorsinfo/public_html/modules/mod_menu/mod_menu.php', null) (/home/authorsinfo/public_html/libraries/src/Dispatcher/ModuleDispatcher.php:55) at Joomla\CMS\Dispatcher\ModuleDispatcher->dispatch() (/home/authorsinfo/public_html/libraries/src/Helper/ModuleHelper.php:281) at Joomla\CMS\Helper\ModuleHelper::renderRawModule(object(stdClass), object(Registry), array('name' => 'footer2', 'style' => 'sp_xhtml')) (/home/authorsinfo/public_html/libraries/src/Helper/ModuleHelper.php:161) at Joomla\CMS\Helper\ModuleHelper::renderModule(object(stdClass), array('name' => 'footer2', 'style' => 'sp_xhtml')) (/home/authorsinfo/public_html/libraries/src/Document/Renderer/Html/ModuleRenderer.php:99) at Joomla\CMS\Document\Renderer\Html\ModuleRenderer->render(object(stdClass), array('name' => 'footer2', 'style' => 'sp_xhtml'), null) (/home/authorsinfo/public_html/libraries/src/Document/Renderer/Html/ModulesRenderer.php:50) at Joomla\CMS\Document\Renderer\Html\ModulesRenderer->render('footer2', array('name' => 'footer2', 'style' => 'sp_xhtml'), null) (/home/authorsinfo/public_html/libraries/src/Document/HtmlDocument.php:565) at Joomla\CMS\Document\HtmlDocument->getBuffer('modules', 'footer2', array('name' => 'footer2', 'style' => 'sp_xhtml')) (/home/authorsinfo/public_html/libraries/src/Document/HtmlDocument.php:848) at Joomla\CMS\Document\HtmlDocument->_renderTemplate() (/home/authorsinfo/public_html/libraries/src/Document/HtmlDocument.php:633) at Joomla\CMS\Document\HtmlDocument->render(false, array('template' => 'travelin', 'file' => 'index.php', 'directory' => '/home/authorsinfo/public_html/templates', 'debug' => false, 'csp_nonce' => null, 'templateInherits' => '', 'params' => object(Registry))) (/home/authorsinfo/public_html/plugins/system/forseo/platform/helpers/errorpages/j4renderer.php:100) at Weeblr\Forseo\Platform\Helpers\Errorpages\J4renderer->renderDocument(object(Rule), object(EasyBlogException), array('/index.php/component/jreviews/tag/country/united-states/?criteria=1?Itemid=1677' => 'United States', '/index.php/component/jreviews/tag/writtenby/melissa-ann/?criteria=1?Itemid=1677' => 'Melissa Ann', '/index.php/component/jreviews/tag/writtenby/muffy-wilson/?criteria=1?Itemid=1677' => 'Muffy Wilson', '/index.php/component/jreviews/tag/genre/inspirational-romance/?criteria=1?Itemid=1677' => 'Inspirational Romance')) (/home/authorsinfo/public_html/plugins/system/forseo/platform/helpers/errorpages/renderer.php:103) at Weeblr\Forseo\Platform\Helpers\Errorpages\Renderer->render(object(Rule), object(EasyBlogException), object(Page)) (/home/authorsinfo/public_html/plugins/system/forseo/vendor/weeblr/forseo/helper/errorpage.php:62) at Weeblr\Forseo\Helper\Errorpage->render(array(object(Rule), object(Rule)), object(EasyBlogException), object(Page)) (/home/authorsinfo/public_html/plugins/system/forseo/vendor/weeblr/forseo/controller/pagedatacollector.php:939) at Weeblr\Forseo\Controller\Pagedatacollector->onError(object(EasyBlogException)) at call_user_func_array(array(object(Pagedatacollector), 'onError'), array(object(EasyBlogException))) (/home/authorsinfo/public_html/plugins/system/forseo/vendor/weeblr/wblib/v2/packages/platform/joomla/platform.php:2126) at Weeblr\Wblib\Forseo\Platform\JoomlaPlatform->executeHook(false, array(object(EasyBlogException))) (/home/authorsinfo/public_html/plugins/system/forseo/vendor/weeblr/wblib/v2/packages/system/hook.php:173) at Weeblr\Wblib\Forseo\System\Hook->execute(false, array('forseo_on_404_error', object(EasyBlogException))) (/home/authorsinfo/public_html/plugins/system/forseo/vendor/weeblr/wblib/v2/packages/system/hook.php:116) at Weeblr\Wblib\Forseo\System\Hook->run('forseo_on_404_error', object(EasyBlogException)) (/home/authorsinfo/public_html/plugins/system/forseo/vendor/weeblr/forseo/controller/error.php:153) at Weeblr\Forseo\Controller\Error->errorHandler(object(EasyBlogException)) at call_user_func_array(array(object(Error), 'errorHandler'), array(object(EasyBlogException))) (/home/authorsinfo/public_html/plugins/system/forseo/platform/errorhandlerj4.php:82) at Weeblr\Forseo\Platform\Errorhandlerj4->handleError(object(ErrorEvent)) (/home/authorsinfo/public_html/libraries/vendor/joomla/event/src/Dispatcher.php:486) at Joomla\Event\Dispatcher->dispatch('onError', object(ErrorEvent)) (/home/authorsinfo/public_html/libraries/src/Application/EventAware.php:107) at Joomla\CMS\Application\WebApplication->triggerEvent('onError', object(ErrorEvent)) (/home/authorsinfo/public_html/libraries/src/Application/CMSApplication.php:321) at Joomla\CMS\Application\CMSApplication->execute() (/home/authorsinfo/public_html/includes/app.php:61) at require_once('/home/authorsinfo/public_html/includes/app.php') (/home/authorsinfo/public_html/index.php:32) |