Nach dem Update von 8.1.5 auf 9.1.0
hab ich mit folgendem Codeschnipsel, den ich bei vielen Websites eingebaut habe, Probleme:
Code: Alles auswählen
<meta itemprop="name" content="<?php echo $GLOBALS['we_doc']->getElement('Title'); ?>">
<meta itemprop="description" content="<?php echo $GLOBALS['we_doc']->getElement('Description'); ?>">
<meta itemprop="image" content="http://<?php echo $_SERVER['SERVER_NAME']; ?><we:img id="1033" />">
<meta property="og:url" content="http://<?php echo $_SERVER['SERVER_NAME']; ?><we:ifObject><we:url type="object" id="self" /><we:else /><we:url id="self" /></we:ifObject>">
<meta property="og:type" content="website">
<meta property="og:title" content="<?php echo $GLOBALS['we_doc']->getElement('Title'); ?>">
<meta property="og:description" content="<?php echo $GLOBALS['we_doc']->getElement('Description'); ?>">
<meta property="og:image" content="http://<?php echo $_SERVER['SERVER_NAME']; ?><we:img id="1034" />">
<meta name="twitter:card" content="summary">
<meta name="twitter:title" content="<?php echo $GLOBALS['we_doc']->getElement('Title'); ?>">
<meta name="twitter:description" content="<?php echo $GLOBALS['we_doc']->getElement('Description'); ?>">
<meta name="twitter:image" content="http://<?php echo $_SERVER['SERVER_NAME']; ?><we:img id="1035" />">
<meta name="twitter:url" content="http://<?php echo $_SERVER['SERVER_NAME']; ?><we:ifObject><we:url type="object" id="self" /><we:else /><we:url id="self" /></we:ifObject>">
<meta name="twitter:creator" content="" />
Code: Alles auswählen
An error occurred while executing this script.
Error type: Exception
Error message:
Call to protected method we_contents_base::getElement() from global scope
Script name: webEdition/generated/templates/at/datenbank/news/start-mit-news.php
Line number: 17
Backtrace #0 /var/www/vhosts/inntaler-holzfachmarkt.at/httpdocs/webEdition/generated/templates/at/datenbank/news/start-mit-news.php(17):
#0 /var/www/vhosts/inntaler-holzfachmarkt.at/httpdocs/webEdition/we/include/we_showDocument.inc.php(103): include()
#1 /var/www/vhosts/inntaler-holzfachmarkt.at/httpdocs/at/index.php(4): require('...')
#2 {main}
Bitte um Hilfe!
Christoph