Hallo,
ich brauche eine Ausgabe aller verwendeten Felder von einem Mitglied.
Nur zum Anzeigen, nicht Editierbar.
Mit Contao 3 ging das noch mit MEMBER PAGE.
Nach dem update auf Contao 4 funktioniert die Seite nicht mehr.
Im Log finde ich das folgendes (leeres Logfile -> einmaliger Aufruf der Seite):
Code:
[2018-07-09 21:09:12] request.INFO: Matched route "contao_frontend". {"route":"contao_frontend","route_parameters":{"_token_check":true,"_controller":"Contao\\CoreBundle\\Controller\\FrontendController::indexAction","_scope":"frontend","alias":"persoenliche-daten-als-liste","_route":"contao_frontend"},"request_uri":"https://meine Seite.de/persoenliche-daten-als-liste.html","method":"HEAD"} []
[2018-07-09 21:09:12] security.INFO: Attempting SimplePreAuthentication. {"key":"frontend","authenticator":"Contao\\CoreBundle\\Security\\ContaoAuthenticator"} []
[2018-07-09 21:09:12] request.INFO: Matched route "contao_frontend". {"route":"contao_frontend","route_parameters":{"_token_check":true,"_controller":"Contao\\CoreBundle\\Controller\\FrontendController::indexAction","_scope":"frontend","alias":"persoenliche-daten-als-liste","_route":"contao_frontend"},"request_uri":"https://meine Seite.de/persoenliche-daten-als-liste.html","method":"GET"} []
[2018-07-09 21:09:12] security.INFO: Attempting SimplePreAuthentication. {"key":"frontend","authenticator":"Contao\\CoreBundle\\Security\\ContaoAuthenticator"} []
[2018-07-09 21:09:12] app.CRITICAL: An exception occurred. {"exception":"[object] (Symfony\\Component\\Debug\\Exception\\FatalErrorException(code: 0): Compile Error: Cannot use 'String' as class name as it is reserved at /var/customers/webs/weller/meine Seite.de/vendor/contao/core-bundle/src/Resources/contao/library/Contao/String.php:27)"} []
[2018-07-09 21:09:12] request.INFO: Matched route "contao_catch_all". {"route":"contao_catch_all","route_parameters":{"_scope":"frontend","_token_check":true,"_controller":"Contao\\CoreBundle\\Controller\\FrontendController::indexAction","_url_fragment":"assets/tinymce4/tinymce.gzip.js","_route":"contao_catch_all"},"request_uri":"https://meine Seite.de/assets/tinymce4/tinymce.gzip.js","method":"HEAD"} []
[2018-07-09 21:09:12] security.INFO: Attempting SimplePreAuthentication. {"key":"frontend","authenticator":"Contao\\CoreBundle\\Security\\ContaoAuthenticator"} []
[2018-07-09 21:09:12] request.INFO: Matched route "contao_catch_all". {"route":"contao_catch_all","route_parameters":{"_scope":"frontend","_token_check":true,"_controller":"Contao\\CoreBundle\\Controller\\FrontendController::indexAction","_url_fragment":"assets/tinymce4/tinymce.gzip.js","_route":"contao_catch_all"},"request_uri":"https://meine Seite.de/assets/tinymce4/tinymce.gzip.js","method":"GET"} []
[2018-07-09 21:09:12] security.INFO: Attempting SimplePreAuthentication. {"key":"frontend","authenticator":"Contao\\CoreBundle\\Security\\ContaoAuthenticator"} []
[2018-07-09 21:09:12] request.ERROR: Uncaught PHP Exception Symfony\Component\HttpKernel\Exception\NotFoundHttpException: "Page not found: https://meine Seite.de/assets/tinymce4/tinymce.gzip.js" at /var/customers/webs/weller/meine Seite.de/vendor/contao/core-bundle/src/EventListener/ExceptionConverterListener.php line 112 {"exception":"[object] (Symfony\\Component\\HttpKernel\\Exception\\NotFoundHttpException(code: 0): Page not found: https://meine Seite.de/assets/tinymce4/tinymce.gzip.js at /var/customers/webs/weller/meine Seite.de/vendor/contao/core-bundle/src/EventListener/ExceptionConverterListener.php:112, Contao\\CoreBundle\\Exception\\PageNotFoundException(code: 0): Page not found: https://meine Seite.de/assets/tinymce4/tinymce.gzip.js at /var/customers/webs/weller/meine Seite.de/vendor/contao/core-bundle/src/Resources/contao/controllers/FrontendIndex.php:64)"} []
[2018-07-09 21:09:13] request.INFO: Matched route "contao_catch_all". {"route":"contao_catch_all","route_parameters":{"_scope":"frontend","_token_check":true,"_controller":"Contao\\CoreBundle\\Controller\\FrontendController::indexAction","_url_fragment":"assets/jquery/ui/JQUERY_UI/jquery-ui.min.js","_route":"contao_catch_all"},"request_uri":"https://meine Seite.de/assets/jquery/ui/JQUERY_UI/jquery-ui.min.js","method":"HEAD"} []
[2018-07-09 21:09:13] security.INFO: Attempting SimplePreAuthentication. {"key":"frontend","authenticator":"Contao\\CoreBundle\\Security\\ContaoAuthenticator"} []
[2018-07-09 21:09:13] request.INFO: Matched route "contao_catch_all". {"route":"contao_catch_all","route_parameters":{"_scope":"frontend","_token_check":true,"_controller":"Contao\\CoreBundle\\Controller\\FrontendController::indexAction","_url_fragment":"assets/jquery/ui/JQUERY_UI/jquery-ui.min.js","_route":"contao_catch_all"},"request_uri":"https://meine Seite.de/assets/jquery/ui/JQUERY_UI/jquery-ui.min.js","method":"GET"} []
[2018-07-09 21:09:13] security.INFO: Attempting SimplePreAuthentication. {"key":"frontend","authenticator":"Contao\\CoreBundle\\Security\\ContaoAuthenticator"} []
[2018-07-09 21:09:13] request.ERROR: Uncaught PHP Exception Symfony\Component\HttpKernel\Exception\NotFoundHttpException: "Page not found: https://meine Seite.de/assets/jquery/ui/JQUERY_UI/jquery-ui.min.js" at /var/customers/webs/weller/meine Seite.de/vendor/contao/core-bundle/src/EventListener/ExceptionConverterListener.php line 112 {"exception":"[object] (Symfony\\Component\\HttpKernel\\Exception\\NotFoundHttpException(code: 0): Page not found: https://meine Seite.de/assets/jquery/ui/JQUERY_UI/jquery-ui.min.js at /var/customers/webs/weller/meine Seite.de/vendor/contao/core-bundle/src/EventListener/ExceptionConverterListener.php:112, Contao\\CoreBundle\\Exception\\PageNotFoundException(code: 0): Page not found: https://meine Seite.de/assets/jquery/ui/JQUERY_UI/jquery-ui.min.js at /var/customers/webs/weller/meine Seite.de/vendor/contao/core-bundle/src/Resources/contao/controllers/FrontendIndex.php:64)"} []
Das ist das Template.
Die Site läuft unter PHP 7.2.1, kann es sein das deswegen was nicht mehr geht?
Code:
<div class="layout_full block <?php echo $this->class; ?>">
<?php if (count($this->pages) > 1): ?>
<div id="pagetabs">
<ul>
<?php foreach ($this->pages as $page): ?>
<?php $class = array(); ?>
<?php if ($page["position"] == $this->activepage_position) array_push($class, "active"); ?>
<?php if ($page["position"] == 1) array_push($class, "first"); ?>
<?php if (($page["position"] == 1) || ($page["is_visible"])): ?>
<?php $classstr = (strlen(trim(implode(" ", $class))) == 0) ? "" : trim(implode(" ", $class)); ?>
<li class="tab<?php echo " " . $classstr; ?>"><a href="<?php echo $page["href"]; ?>"><?php echo $page["title"]; ?></a></li>
<?php endif; ?>
<?php endforeach; ?>
</ul>
<?php endif; ?>
<?php if ((!array_key_exists("type", $this->activepage)) || (strcmp($this->activepage["type"], "memberpage") == 0)): ?>
<?php if (strlen($this->avatar_path)): ?><img src="<?php echo $this->avatar_path; ?>" align="right" alt="<?php echo $this->firstname; ?> <?php echo $this->lastname; ?>" /><?php endif; ?>
<div>
<div class="name"><?php if (strlen($this->title)): ?><?php echo $this->title; ?> <?php endif; ?><?php echo $this->firstname; ?> <?php echo $this->lastname; ?></div>
<?php if (strlen($this->department)): ?>
<div class="department"><?php echo $this->department; ?></div>
<?php endif; ?>
<?php if (strlen($this->description)): ?>
<div class="description"><?php echo $this->description; ?></div>
<?php endif; ?>
<table>
<?php if (strlen($this->email)): ?>
<tr>
<td class="left"><?php echo $this->lngEmail; ?>:</td>
<td class="right"><a href="mailto:<?php echo $this->email; ?>"><?php echo $this->email; ?></a></td>
</tr>
<?php endif; ?>
<?php if (strlen($this->phone)): ?>
<tr>
<td class="left"><?php echo $this->lngPhone; ?>:</td>
<td class="right"><?php echo $this->phone; ?></td>
</tr>
<?php endif; ?>
<?php if (strlen($this->fax)): ?>
<tr>
<td class="left"><?php echo $this->lngFax; ?>:</td>
<td class="right"><?php echo $this->fax; ?></td>
</tr>
<?php endif; ?>
<?php if (strlen($this->website)): ?>
<tr>
<td class="left"><?php echo $this->lngWebsite; ?>:</td>
<td class="right"><a href="<?php echo $this->website; ?>"><?php echo $this->website; ?></a></td>
</tr>
<?php endif; ?>
<?php if (strlen($this->room)): ?>
<tr>
<td class="left"><?php echo $this->lngRoom; ?>:</td>
<td class="right"><?php echo $this->room; ?></td>
</tr>
<?php endif; ?>
<?php if (strlen($this->officehours)): ?>
<tr>
<td class="left"><?php echo $this->lngOfficehours; ?>:</td>
<td class="right"><?php echo $this->officehours; ?></td>
</tr>
<?php endif; ?>
<?php if (strlen(trim(implode("", $this->postaladdress)))): ?>
<tr>
<td class="left"><?php echo $this->lngPostaladdress; ?>:</td>
<td class="right"><?php echo implode("<br />", $this->postaladdress); ?></td>
</tr>
<?php endif; ?>
<?php if (strlen($this->workscope)): ?>
<tr>
<td class="left"><?php echo $this->lngWorkscope; ?>:</td>
<td class="right"><?php echo $this->workscope; ?></td>
</tr>
<?php endif; ?>
</table>
</div>
<?php elseif ((array_key_exists("type", $this->activepage)) && (strcmp($this->activepage["type"], "essay") == 0)): ?>
<?php echo $this->activepage["content"]; ?>
<?php else: ?>
<?php echo $this->memberpageContent; ?>
<?php endif; ?>
<?php if (count($this->pages) > 1): ?>
</div>
<?php endif; ?>
</div>
Fragt hoffnungsvoll
dtptiger