I've been looking for a solution to this problem for a couple of days but I'm getting nowhere. I've just set up a Joomla site but when I try to save a new category I get the error below. I've tried uninstalling and reinstalling Joomla 4 times, even tried a different version, and I've done it at root and in a sub folder. I'm now pretty sure this isn't either me making a stupid mistake or a corrupted Joomla file and multiple searches have not turned up a fix. I'm stuck.
If anyone can point me in the right direction I'd appreciate it.
categories.phpWarning: CategoriesHelper::require_once(\nas37ent\Domains\n \nimbusantiques.co.uk\user\htdocs\new-site\administrator\components\com_content\helpers\ content.php) [categorieshelper.require-once]: failed to open stream: No such file or directory in \\nas37ent\Domains\n\xxxxxxxxxxxxxx.co.uk\user\htd ocs\new-site\administrator\components\com_categories\helpe rs\categories.php on line 46
Fatal error: CategoriesHelper::require_once() [function.require]: Failed opening required '\nas37ent\Domains\n\nimbusantiques.co.uk\user\htd ocs\new-site\administrator\components\com_content\helpers\ content.php' (include_path='.;C:\php\pear') in \\nas37ent\Domains\n\xxxxxxxxxxxxxx.co.uk\user\htd ocs\new-site\administrator\components\com_categories\helpe rs\categories.php on line 46
Code:<?php /** * @copyright Copyright (C) 2005 - 2012 Open Source Matters, Inc. All rights reserved. * @license GNU General Public License version 2 or later; see LICENSE.txt */ // No direct access defined('_JEXEC') or die; /** * Categories helper. * * @package Joomla.Administrator * @subpackage com_categories * @since 1.6 */ class CategoriesHelper { /** * Configure the Submenu links. * * @param string The extension being used for the categories. * * @return void * @since 1.6 */ public static function addSubmenu($extension) { // Avoid nonsense situation. if ($extension == 'com_categories') { return; } $parts = explode('.', $extension); $component = $parts[0]; if (count($parts) > 1) { $section = $parts[1]; } // Try to find the component helper. $eName = str_replace('com_', '', $component); $file = JPath::clean(JPATH_ADMINISTRATOR.'/components/'.$component.'/helpers/'.$eName.'.php'); if (file_exists($file)) { require_once $file; $prefix = ucfirst(str_replace('com_', '', $component)); $cName = $prefix.'Helper'; if (class_exists($cName)) { if (is_callable(array($cName, 'addSubmenu'))) { $lang = JFactory::getLanguage(); // loading language file from the administrator/language directory then // loading language file from the administrator/components/*extension*/language directory $lang->load($component, JPATH_BASE, null, false, false) || $lang->load($component, JPath::clean(JPATH_ADMINISTRATOR.'/components/'.$component), null, false, false) || $lang->load($component, JPATH_BASE, $lang->getDefault(), false, false) || $lang->load($component, JPath::clean(JPATH_ADMINISTRATOR.'/components/'.$component), $lang->getDefault(), false, false); call_user_func(array($cName, 'addSubmenu'), 'categories'.(isset($section)?'.'.$section:'')); } } } } /** * Gets a list of the actions that can be performed. * * @param string $extension The extension. * @param int $categoryId The category ID. * * @return JObject * @since 1.6 */ public static function getActions($extension, $categoryId = 0) { $user = JFactory::getUser(); $result = new JObject; $parts = explode('.', $extension); $component = $parts[0]; if (empty($categoryId)) { $assetName = $component; $level = 'component'; } else { $assetName = $component.'.category.'.(int) $categoryId; $level = 'category'; } $actions = JAccess::getActions($component, $level); foreach ($actions as $action) { $result->set($action->name, $user->authorise($action->name, $assetName)); } return $result; } }


Reply With Quote

Bookmarks