PDA

Zobacz pełną wersję : nie moge zapisać artykułu joomla 3 fatal error



jerz23
27-02-2017, 01:00
Witam, dopiero zaczynam przygode z joomla. oraz jestem nowy na forum, jesli to zle miejsce na zadanie tego pytania prosze administratora o przeniesienie.
Mam problem z dodaniem artykulu. Gdy wciskam zapisz wyskakuje: Fatal error: Call to undefined method CategoriesHelper::validateCategoryId() in /home/u152887467/public_html/administrator/components/com_content/models/article.php on line 506

tak jak mowilem dopiero zaczynam i nie mam pomyslu jak rozwiazac ten problem.
<tbody>
Wersja Joomla!
Joomla! 3.6.5 Stable [ Noether ] 1-December-2016 22:46 GMT


Wersja platformy Joomla!
Joomla Platform 13.1.0 Stable [ Curiosity ] 24-Apr-2013 00:00 GMT




</tbody>
z gory dziekuje za pomoc.

jkaminski
27-02-2017, 10:32
A jakiego szablonu używasz? Może w tym leży problem?

jerz23
27-02-2017, 12:59
witam, gantry 5 kraken

Jola
27-02-2017, 14:43
Czy to nowa instalacja Joomla czy wersja migrowana?
Która dokładnie wersja Joomla?

jerz23
27-02-2017, 16:26
Czy to nowa instalacja Joomla czy wersja migrowana?
Która dokładnie wersja Joomla? tak nowa instalacja.
Wersja Joomla!


Joomla! 3.6.5 Stable [ Noether ] 1-December-2016 22:46 GMT


Wersja platformy Joomla!
Joomla Platform 13.1.0 Stable [ Curiosity ] 24-Apr-2013 00:00 GMT

Jola
27-02-2017, 19:13
Która wersja PHP?
Sprawdź czy masz plik:
administrator/components/com_categories/helpers/categories.php

palyga007
27-02-2017, 19:35
Pytanie czy jeśli to jest faktycznie "Start" to nie prościej byłoby po prostu tą witrynę od nowa zainstalować :)
Fajnie dowiedzieć się dlaczego nie działa, ale pytanie czy czas na to poświęcony nie jest czasem zmarnowanym.

jerz23
27-02-2017, 21:02
Która wersja PHP?
Sprawdź czy masz plik:
administrator/components/com_categories/helpers/categories.php
wersja PHP 5.6.30
plik categories.php wygląda tak

<?php
/**
* @package Joomla.Administrator
* @subpackage com_categories
*
* @copyright Copyright (C) 2005 - 2015 Open Source Matters, Inc. All rights reserved.
* @license GNU General Public License version 2 or later; see LICENSE.txt
*/

defined('_JEXEC') or die;

/**
* Categories helper.
*
* @since 1.6
*/
class CategoriesHelper
{
/**
* Configure the Submenu links.
*
* @param string $extension 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, true)
|| $lang->load($component, JPath::clean(JPATH_ADMINISTRATOR . '/components/' . $component), null, false, true);

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 integer $categoryId The category ID.
*
* @return JObject
*
* @since 1.6
* @deprecated 3.2 Use JHelperContent::getActions() instead
*/
public static function getActions($extension, $categoryId = 0)
{
// Log usage of deprecated function
JLog::add(__METHOD__ . '() is deprecated, use JHelperContent::getActions() with new arguments order instead.', JLog::WARNING, 'deprecated');

// Get list of actions
$result = JHelperContent::getActions($extension, 'category', $categoryId);

return $result;
}

/**
* Gets a list of associations for a given item.
*
* @param integer $pk Content item key.
* @param string $extension Optional extension name.
*
* @return array of associations.
*/
public static function getAssociations($pk, $extension = 'com_content')
{
$associations = array();
$db = JFactory::getDbo();
$query = $db->getQuery(true)
->from('#__categories as c')
->join('INNER', '#__associations as a ON a.id = c.id AND a.context=' . $db->quote('com_categories.item'))
->join('INNER', '#__associations as a2 ON a.key = a2.key')
->join('INNER', '#__categories as c2 ON a2.id = c2.id AND c2.extension = ' . $db->quote($extension))
->where('c.id =' . (int) $pk)
->where('c.extension = ' . $db->quote($extension));
$select = array(
'c2.language',
$query->concatenate(array('c2.id', 'c2.alias'), ':') . ' AS id'
);
$query->select($select);
$db->setQuery($query);
$contentitems = $db->loadObjectList('language');

// Check for a database error.
if ($error = $db->getErrorMsg())
{
JError::raiseWarning(500, $error);

return false;
}

foreach ($contentitems as $tag => $item)
{
// Do not return itself as result
if ((int) $item->id != $pk)
{
$associations[$tag] = $item->id;
}
}

return $associations;
}
}

- - - Updated - - -


Pytanie czy jeśli to jest faktycznie "Start" to nie prościej byłoby po prostu tą witrynę od nowa zainstalować
Fajnie dowiedzieć się dlaczego nie działa, ale pytanie czy czas na to poświęcony nie jest czasem zmarnowanym.
instalacja jest od podstaw jednak sporo już wprowadziłem danych do witryny. musiał bym zacząć od nowa a to z 14dni w plecy.

Jola
28-02-2017, 00:35
Nie wiem w jaki sposób instalowałeś Joomla.
To nie jest prawidłowy plik dla wersji 3.6.5
Pobierz Joomla z tego (http://www.joomla.pl/pobierz-joomla) źródła, rozpakuj i nadpisz swoją instalację (oprócz katalogu installation)
Jeśli używasz i modyfikowałeś standardowy szablon Joomla, to pomiń w nadpisywaniu również ten szablon.