Shorty1968
Erfahrenes Mitglied
Hallo ich bekomme Folgende Fehlermeldung.
Der Orginal Code sieht so aus.
Ich habe es wie Folgt Versucht,ich habe das
durch
ersetz da bekomme ich.
Was habe ich Falsch gemacht und wie müsste es richtig sein?
Code:
Fatal error: PHP notice in file /var/www/vhosts/wbb-support.eu/httpdocs/wcf/lib/system/cache/CacheBuilderDefinitions.class.php (19): Undefined index: synonym
Information:error message: PHP notice in file /var/www/vhosts/wbb-support.eu/httpdocs/wcf/lib/system/cache/CacheBuilderDefinitions.class.php (19): Undefined index: synonymerror code: 0file: /var/www/vhosts/wbb-support.eu/httpdocs/wcf/lib/system/WCF.class.php (281)php version: 5.3.3-7+squeeze17wcf version: 1.1.10 pl 1 (Tempest)date: Thu, 29 May 2014 04:24:15 +0000request: /index.php?page=TutorialSystemTutorial&tutorialID=23referer: http://wbb-support.eu/index.php?page=TutorialSystemOverview
Stacktrace:#0 /var/www/vhosts/wbb-support.eu/httpdocs/wcf/lib/system/cache/CacheBuilderDefinitions.class.php(19): WCF::handleError(8, 'Undefined index...', '/var/www/vhosts...', 19, Array)
/var/www/vhosts/wbb-support.eu/httpdocs/wcf/lib/system/cache/CacheHandler.class.php(173): CacheBuilderDefinitions->getData(Array)
/var/www/vhosts/wbb-support.eu/httpdocs/wcf/lib/system/cache/CacheHandler.class.php(126): CacheHandler->rebuild(Array)
/var/www/vhosts/wbb-support.eu/httpdocs/wcf/lib/data/definition/DefinitionEditor.class.php(66): CacheHandler->get('cacheBuilderDef...')
/var/www/vhosts/wbb-support.eu/httpdocs/wcf/lib/data/message/bbcode/DefinitionBBCode.class.php(13): DefinitionEditor::getCache()
/var/www/vhosts/wbb-support.eu/httpdocs/wcf/lib/data/message/bbcode/BBCodeParser.class.php(351): DefinitionBBCode->getParsedTag(Array, 'Plugin', Array, Object(MessageParser))
/var/www/vhosts/wbb-support.eu/httpdocs/wcf/lib/data/message/bbcode/BBCodeParser.class.php(66): BBCodeParser->buildParsedString()
/var/www/vhosts/wbb-support.eu/httpdocs/wcf/lib/data/message/bbcode/MessageParser.class.php(87): BBCodeParser->parse('[color=#ff0000]...')
/var/www/vhosts/wbb-support.eu/httpdocs/wcf/lib/data/tutorialsystem/ViewableTutorialSystemTutorial.class.php(41): MessageParser->parse('[color=#ff0000]...', '1', '0', '1')
/var/www/vhosts/wbb-support.eu/httpdocs/wcf/templates/compiled/282_0_1_tutorialSystemTutorial.php(154): ViewableTutorialSystemTutorial->getFormattedMessage()
/var/www/vhosts/wbb-support.eu/httpdocs/wcf/lib/system/template/Template.class.php(267): include('/var/www/vhosts...')
/var/www/vhosts/wbb-support.eu/httpdocs/wcf/lib/page/AbstractPage.class.php(100): Template->display('tutorialSystemT...')
/var/www/vhosts/wbb-support.eu/httpdocs/wcf/lib/page/TutorialSystemTutorialPage.class.php(335): AbstractPage->show()
/var/www/vhosts/wbb-support.eu/httpdocs/wcf/lib/page/AbstractPage.class.php(46): TutorialSystemTutorialPage->show()
/var/www/vhosts/wbb-support.eu/httpdocs/wcf/lib/util/RequestHandler.class.php(64): AbstractPage->__construct()
/var/www/vhosts/wbb-support.eu/httpdocs/wcf/lib/util/RequestHandler.class.php(92): RequestHandler->__construct('TutorialSystemT...', Array, 'page')
/var/www/vhosts/wbb-support.eu/httpdocs/index.php(8): RequestHandler::handle(Array)
{main}
PHP:
<?php
// wcf imports
require_once(WCF_DIR.'lib/system/cache/CacheBuilder.class.php');
require_once(WCF_DIR.'lib/data/definition/Definition.class.php');
class CacheBuilderDefinitions implements CacheBuilder {
/**
* @see CacheBuilder::getData()
*/
public function getData($cacheResource) {
$data = array();
// definition
$sql = "SELECT *
FROM wcf".WCF_N."_definition
ORDER BY word DESC";
$result = WCF::getDB()->sendQuery($sql);
while ($row = WCF::getDB()->fetchArray($result)) {
$row['synonym'] = ArrayUtil::trim(explode(',', $row['synonym']));
$data[$row['definitionID']] = new Definition(null, $row);
}
return $data;
}
}
?>
Code:
$data = array();
Code:
if (!isset($data = array())
Code:
Parse error: syntax error, unexpected '=', expecting ',' or ')' in /var/www/vhosts/wbb-support.eu/httpdocs/wcf/lib/system/cache/CacheBuilderDefinitions.class.php on line 11