PDA

Zobacz pełną wersję : Problem z działaniem szablonu w joomla 1.6.3



papciopawcio
09-06-2011, 01:12
Witam!
Za pomocą programu Artisteer w wersji 2.3.0.21098 wygenerowałem swój szablon. Instalacja przebiegła pomyślnie, niestety strona oprócz "górnego logo" i tła wyświetla mi taki oto błąd:

Fatal error: Call to a member function getMessageQueue() on a non-object in /virtual/p/a/paweljoomla.ugu.pl/templates/zielony/functions.php on line 11

Kompletnie nie znam się na PHP więc zamieszczam fragment(początek) kodu z functions.php, który zawiera "linię 11". Domyślam się, że gdzieś tutaj tkwi problem.
Dodam jeszcze, że strona stoi na XAMPP. Z góry dziękuję za pomoc.

<?php
defined('_JEXEC') or die('Restricted access'); // no direct access

if (!defined('_ARTX_FUNCTIONS')) {

define('_ARTX_FUNCTIONS', 1);

function artxHasMessages()
{
global $mainframe;
$messages = $mainframe->getMessageQueue();
if (is_array($messages) && count($messages))
foreach ($messages as $msg)
if (isset($msg['type']) && isset($msg['message']))
return true;
return false;
}

function artxUrlToHref($url)
{
$result = '';
$p = parse_url($url);
if (isset($p['scheme']) && isset($p['host'])) {
$result = $p['scheme'] . '://';
if (isset($p['user'])) {
$result .= $p['user'];
if (isset($p['pass']))
$result .= ':' . $p['pass'];
$result .= '@';
}
$result .= $p['host'];
if (isset($p['port']))
$result .= ':' . $p['port'];
if (!isset($p['path']))
$result .= '/';
}
if (isset($p['path']))
$result .= $p['path'];
if (isset($p['query'])) {
$result .= '?' . str_replace('&', '&amp;', $p['query']);
}
if (isset($p['fragment']))
$result .= '#' . $p['fragment'];
return $result;
}

function artxReplaceButtonsRegex() {
return '' .
'~<input\b[^>]*'
. '(?:'