We are currently working on our servers, so there may be outages on the domains.Zurzeit wird an unseren Servern gearbeitet, deshalb kann es zu Ausfällen bei den Domains kommen.
Beispiel für Letzteres (4.)definiert man die Blöcke über ob_start(), müssen sie wieder geschlossen werden, sonst überschreiben sie sich gegenseitigCode: [Select]ob_start(); //fetch MainContentpage_content(1);$page_MainContent = ob_get_clean();zum Einlesen und Schließen gäbe es mehrere Möglichkeitenz.b. auchCode: [Select]ob_start();page_content(1);$page_MainContent = ob_get_contents();ob_end_clean();und als theoretisches Beispielwenn ich annehme, das auf den Seiten wie start.php nur ein Block aktiv ist, im Template aber mehrere geschalten werden, könnte das schon eine Ursache sein.
ob_start(); //fetch MainContentpage_content(1);$page_MainContent = ob_get_clean();
ob_start();page_content(1);$page_MainContent = ob_get_contents();ob_end_clean();
<section class="full columns"><?php ob_start(); page_content(1); $sContent1 = ob_get_clean(); if ($sContent1) { echo PHP_EOL.$sContent1.PHP_EOL.PHP_EOL; } ?></section>
Was mir aber nicht gefällt, ist der Abbruch im Script, denn selbst wenn man hier einen Block überschreiben würde, wäre dieser vielleicht leer.
Code: [Select]<section class="full columns"><?php ob_start(); page_content(1); $sContent1 = ob_get_clean(); if ($sContent1) { echo PHP_EOL.$sContent1.PHP_EOL.PHP_EOL; } ?></section>Ist doch geschlossen, oder?
Wed, 13 Feb 2019 16:55:13 +0000 [E_NOTICE] \templates\ciriaco\index.php:[321] from \pages\it\biografia.php:[10] require "Undefined variable: follows"Wed, 13 Feb 2019 16:55:13 +0000 [E_WARNING] \modules\socialbaker\include.php:[214] from \index.php:[78] require "Invalid argument supplied for foreach()"
"created: [Thu, 07 Feb 2019 09:28:40 +0000]Wed, 13 Feb 2019 17:09:52 +0000 [E_NOTICE] /modules/oneforall_anyitems_start/include.php:[139] from /modules/code/view.php(25) : eval()'d code:[3] oneforall_anyitems_start "unserialize(): Error at offset 0 of 69 bytes"Wed, 13 Feb 2019 17:09:52 +0000 [E_NOTICE] /modules/oneforall_anyitems_start/include.php:[150] from /modules/code/view.php:[25] eval "Undefined offset: 1"Wed, 13 Feb 2019 17:09:52 +0000 [E_WARNING] /modules/oneforall_anyitems_start/include.php:[150] from /modules/code/view.php:[25] eval "Invalid argument supplied for foreach()"Wed, 13 Feb 2019 17:09:52 +0000 [E_NOTICE] /modules/oneforall_top_buecher/include.php:[139] from /modules/code/view.php(25) : eval()'d code:[2] ofa_top_buecher "unserialize(): Error at offset 0 of 16 bytes"Wed, 13 Feb 2019 17:09:52 +0000 [E_NOTICE] /modules/oneforall_top_buecher/include.php:[139] from /modules/code/view.php(25) : eval()'d code:[2] ofa_top_buecher "unserialize(): Error at offset 0 of 153 bytes"Wed, 13 Feb 2019 17:09:52 +0000 [E_NOTICE] /modules/oneforall_top_buecher/include.php:[150] from /modules/code/view.php:[25] eval "Undefined offset: 1"Wed, 13 Feb 2019 17:09:52 +0000 [E_WARNING] /modules/oneforall_top_buecher/include.php:[150] from /modules/code/view.php:[25] eval "Invalid argument supplied for foreach()"Wed, 13 Feb 2019 17:09:52 +0000 [E_NOTICE] /modules/oneforall_top_buecher/include.php:[139] from /modules/code/view.php(25) : eval()'d code:[2] ofa_top_buecher "unserialize(): Error at offset 0 of 16 bytes"Wed, 13 Feb 2019 17:09:52 +0000 [E_NOTICE] /modules/oneforall_top_buecher/include.php:[139] from /modules/code/view.php(25) : eval()'d code:[2] ofa_top_buecher "unserialize(): Error at offset 0 of 202 bytes"Wed, 13 Feb 2019 17:09:52 +0000 [E_NOTICE] /modules/oneforall_top_buecher/include.php:[150] from /modules/code/view.php:[25] eval "Undefined offset: 1"Wed, 13 Feb 2019 17:09:52 +0000 [E_WARNING] /modules/oneforall_top_buecher/include.php:[150] from /modules/code/view.php:[25] eval "Invalid argument supplied for foreach()""
Wo schalte ich die Fehlermeldungen ein??? Hab nix ausgeschaltet...?
Habe die Fehlerberichte jetzt gerade mal bei einer anderen Kundenseite eingeschaltet, die ebenfalls mehrsprachig ist und wo ich Anyitems und Topitems intensiv mehrfach eingesetzt habe. Auch hier gibt es zig ähnliche Fehlermeldungen. Aber das Menulink funktioniert da trotzdem. Und die Anyitems-Module tun trotz Fehlermeldung genau das, was sie sollen.
$pattern = '/[wblink(.+?)]/s';
$pattern = '/\[wblink(.+?)\]/s';
$pattern = '/[wblink'.$page_id.']/s';
$pattern = '/\[wblink'.$page_id.'\]/s';
a button, a:hover button, button a, button a:hover, .button a, .button a:hover, button a:visited, .button a:visited. button:hover, .button:hover, a:hover button { color: #fff !important; text-decoration: none !important;}
#menu li:hover > a, #menu li.menu-current, #menu li.menu-parent, { color: #ffffff; background: #ffb355;}
bitte mal ersetzen in den Snippetsoneforall_anyitems_ startoneforall_ausstoneforall_top_buech erjeweils um die Zeile 150 dies hier OriginalCode: [Select]$pattern = '/[wblink(.+?)]/s';ersetzen mitCode: [Select]$pattern = '/\[wblink(.+?)\]/s';und Code: [Select]$pattern = '/[wblink'.$page_id.']/s';ersetzen mitCode: [Select]$pattern = '/\[wblink'.$page_id.'\]/s';idealerweise gleich die Versionsnummer hochsetzen
<?php$follows['twitter'] = 'mytwitter';$follows['facebook'] = 'myfacebook';$follows['googleplus'] = '+mygoogleplus';$follows['linkedin'] = 'mylinkedin';$follows['youtube'] = 'myyoutube';$follows['vimeo'] = 'myvimeo';$follows['instagram'] = 'myinstagram';$follows['pinterest'] = 'mypinterest';$follows['flickr'] = 'myflickr';$follows['vk'] = 'myvkontakte'; if( LANGUAGE == "DE" ){ show_menu2(2, 26, SM2_ALL, SM2_ALL|SM2_NUMCLASS|SM2_PRETTY, false, false, '<ul id="footermenu">', followBaker($follows));}elseif( LANGUAGE == "IT" ){ show_menu2(2, 27, SM2_ALL, SM2_ALL|SM2_NUMCLASS|SM2_PRETTY, false, false, '<ul id="footermenu">', followBaker($follows));}?>
Wed, 13 Feb 2019 18:03:44 +0000 [E_NOTICE] /modules/oneforall_anyitems_start/include.php:[139] from /modules/code/view.php(25) : eval()'d code:[3] oneforall_anyitems_start "unserialize(): Error at offset 0 of 69 bytes"Wed, 13 Feb 2019 18:03:44 +0000 [E_NOTICE] /modules/oneforall_top_buecher/include.php:[139] from /modules/code/view.php(25) : eval()'d code:[2] ofa_top_buecher "unserialize(): Error at offset 0 of 16 bytes"Wed, 13 Feb 2019 18:03:44 +0000 [E_NOTICE] /modules/oneforall_top_buecher/include.php:[139] from /modules/code/view.php(25) : eval()'d code:[2] ofa_top_buecher "unserialize(): Error at offset 0 of 153 bytes"Wed, 13 Feb 2019 18:03:44 +0000 [E_NOTICE] /modules/oneforall_top_buecher/include.php:[139] from /modules/code/view.php(25) : eval()'d code:[2] ofa_top_buecher "unserialize(): Error at offset 0 of 16 bytes"Wed, 13 Feb 2019 18:03:44 +0000 [E_NOTICE] /modules/oneforall_top_buecher/include.php:[139] from /modules/code/view.php(25) : eval()'d code:[2] ofa_top_buecher "unserialize(): Error at offset 0 of 202 bytes"
Hab sie dir per Mail geschickt.zum SocialBaker - ich kenn mich da nicht so aus, aber muß nicht $follows erst definiert werden??
Sach mal... die info.php von OFA sagt mir Version 1.0.9 Aktuell ist 2.0.2.23
$unserialized = @unserialize($values[$field_id]);
$unserialized = __unserialize($values[$field_id]);
function __unserialize($data) { // found in php manual :-) $aRetval = $data; if (is_serialized($data)){ $_ret = preg_replace_callback( '!s:(\d+):"(.*?)";!', function($matches) {return 's:'.strlen($matches[2]).':"'.$matches[2].'";';}, $data ); if ($_ret) {$aRetval = @unserialize($_ret);} } return $aRetval;}
Zeile 139 sollte das hier seinCode: [Select]$unserialized = @unserialize($values[$field_id]);Wenn JA, ersetzt mal mit Code: [Select]$unserialized = __unserialize($values[$field_id]);den hab ich bei mir aber nicht
There was an uncatched exceptionCall to undefined function __unserialize()in line (139) of (/modules/oneforall_anyitems_start/include.php):