Danke habe ich geändert - funktioniert
Beiträge von Tom3000
-
-
Habe die Zeile 132 in der betroffenen includes.php mal auskommentiert, jetzt wird mir auf der Seite bei PHP8.0 kein Fehler mehr angezeigt.
Trotzdem hier nochmal die includes.php:
PHP
Alles anzeigen<?php defined('_JEXEC') or die; JHtml::_('jquery.framework', true, null, true); JHtml::_('bootstrap.framework'); JHtml::_('bootstrap.tooltip'); JHtml::_('bootstrap.loadCss', false, $this->direction); JHtml::_('formbehavior.chosen', 'select'); $client = new JApplicationWebClient(); include_once 'functions.php'; $app = JFactory::getApplication(); $doc = JFactory::getDocument(); $this->language = $doc->language; $this->direction = $doc->direction; $template = $this->template; $csspath = 'templates/'.$template.'/css/'; $jspath = 'templates/'.$template.'/js/'; $option = $app->input->getCmd('option', ''); $view = $app->input->getCmd('view', ''); $layout = $app->input->getCmd('layout', ''); $task = $app->input->getCmd('task', ''); $itemid = $app->input->getCmd('Itemid', ''); $sitename = $app->getCfg('sitename'); $menu = JMenu::getInstance('site'); $contentParams = $app->getParams('com_content'); $bodyClass = "body__".$contentParams->get('pageclass_sfx')." option-".$option." view-".$view." task-".$task." itemid-".$itemid; $viewport = ""; $todesktop = ''; global $params; $params = $this->params; $themeLayout = $params->get('themeLayout'); if($themeLayout == 1) { $doc->addStyleSheet($csspath.'layout.css'); } $doc->addStyleSheet($csspath.'template.css'); $doc->addStyleSheet($csspath.'font-awesome.css'); $doc->addStyleSheet($csspath.'material-icons.css'); $doc->addStyleSheet('//fonts.googleapis.com/css?family=Lato:400,100,100italic,300,300italic,400italic,700,700italic,900,900italic'); $doc->addStyleSheet('//fonts.googleapis.com/css?family=Questrial'); $doc->addStyleSheet('//fonts.googleapis.com/css?family=Playfair+Display:400,400italic,700,700italic,900,900italic'); if(($client->platform == JApplicationWebClient::IPHONE || $client->platform == JApplicationWebClient::IPAD) && ((isset($_COOKIE['disableMobile']) && $_COOKIE['disableMobile']=='false') || !isset($_COOKIE['disableMobile']))){ $doc->addScript($jspath.'ios-orientationchange-fix.js'); } if($this->params->get('blackandwhite')){ $doc->addScript($jspath.'jquery.BlackAndWhite.min.js'); $doc->addScriptdeclaration('(function($,b){$.fn.BlackAndWhite_init=function(){var a=$(this);a.find("img").not(".slide-img").parent().BlackAndWhite({invertHoverEffect:'.$this->params->get("invertHoverEffect").',intensity:1,responsive:true,speed:{fadeIn:'.$this->params->get('fadeIn').',fadeOut:'.$this->params->get('fadeOut').'}})}})(jQuery);jQuery(window).load(function($){jQuery(".item_img a").find("img").not(".lazy").parent().BlackAndWhite_init()});'); } $doc->addScriptdeclaration('var path = "'.$jspath.'";'); $doc->addScript($jspath.'scripts.js'); if($client->mobile){ $bodyClass .= ' mobile'; if($params->get('todesktop')){ if($client->platform != 5){ $doc->addScript($jspath.'desktop-mobile.js'); $todesktop = "<div class=\"span12\" id=\"to-desktop\">\r\n <a href=\"#\">\r\n <span class=\""; if((isset($_COOKIE['disableMobile']) && $_COOKIE['disableMobile'] == 'false') || !isset($_COOKIE['disableMobile'])){ $todesktop .= "to_desktop\">".$params->get('todesktop_text'); } else{ $todesktop .= "to_mobile\">".$params->get('tomobile_text'); } $todesktop .= "</span>\r\n </a>\r\n </div>\r\n"; } if((isset($_COOKIE['disableMobile']) && $_COOKIE['disableMobile'] == 'false') || !isset($_COOKIE['disableMobile'])){ $bodyClass .= " mobile_mode"; $viewport = "<meta id=\"viewport\" name=\"viewport\" content=\"width=device-width, initial-scale=1\">"; }else{ $bodyClass .= " desktop_mode"; } } } if($option == 'com_joomgallery'){ $doc->addStylesheet($csspath.'gallery.css'); } if (class_exists('Komento') && Komento::loadApplication( 'com_content')) $doc->addStyleSheet($csspath.'komento.css'); if($params->get('logoFile')) $logo = $params->get('logoFile'); if($params->get('footerLogoFile')) $footerLogo = $params->get('footerLogoFile'); if($this->direction == 'rtl') $doc->addStyleSheet('media/jui/css/bootstrap-rtl.css'); $ie_warning = ""; if($client->browser == JApplicationWebClient::IE){ if((int)$client->browserVersion<10){ $ie_warning = "<div style=\"clear: both; text-align:center; position: relative;\"><a href=\"http://windows.microsoft.com/en-us/internet-explorer/download-ie\"><img src=\"templates/".$template."/images/ie.png\" border=\"0\" height=\"75\" width=\"1170\" alt=\"You are using an outdated browser. For a faster, safer browsing experience, upgrade for free today.\" /></a></div>"; } if((int)$client->browserVersion<10){ $doc->addScript($jspath.'jquery.placeholder.min.js'); } $doc->addScriptdeclaration('(function($){$(document).ready(function(){var c=$("#jform_profile_dob_img");if(c.length){var h=$("body").outerHeight()+26-c.offset().top;$("head").append("<style>.calendar{top:auto !important;bottom:"+h+"px !important;}</style>")}})})(jQuery);'); } $hideByView = false; switch ($view){ case 'article': case 'login': case 'search': case 'profile': case 'registration': case 'reset': case 'remind': case 'form': $hideByView = true; break; } $hideByOption = false; if($option == 'com_users' && $option == 'com_search') $hideByOption = true; if($option == 'com_content' && $layout == 'edit') $hideByView = true; $asideLeftWidth = ""; if($this->countModules('aside-left') && !$hideByOption && $view !== 'form') $asideLeftWidth = $params->get('asideLeftWidth'); $asideRightWidth = ""; if($this->countModules('aside-right') && !$hideByOption && $view !== 'form') $asideRightWidth = $params->get('asideRightWidth'); //$mainContentWidth = 12 - $asideLeftWidth - $asideRightWidth; global $containerClass, $rowClass; $containerClass = 'container'; $rowClass = 'row'; if($themeLayout=='1'){ $containerClass .= '-fluid'; $rowClass .= '-fluid'; } function display_position($pos){ $html = "<!-- ".$pos." -->\n"; $html .= "<div id=\"".$pos."\">\n"; global $params; $layout = $params->get($pos.'_layout'); if($layout == "normal"){ global $containerClass, $rowClass; $html .= "<div class=\"row-container\">\n"; $html .= "<div class=\"". $containerClass."\">\n"; $html .= "<div class=\"".$rowClass."\">\n"; $html .= "<jdoc:include type=\"modules\" name=\"".$pos."\" style=\"themeHtml5\" />\n"; $html .= "</div>\n"; $html .= "</div>\n"; $html .= "</div>\n"; }else{ $html .= "<jdoc:include type=\"modules\" name=\"".$pos."\" style=\"html5nosize\" />\n"; } $html .= "</div>\n"; return $html; } $privacyMenuLink = $menu->getItem($params->get('privacy_link_menu')); $privacy_link_url = JRoute::_($privacyMenuLink->link.'&Itemid='.$privacyMenuLink->id); $termsMenuLink = $menu->getItem($params->get('terms_link_menu')); $terms_link_url = JRoute::_($termsMenuLink->link.'&Itemid='.$termsMenuLink->id); $back_top = ''; if($this->params->get('totop') && !$client->mobile){ $doc->addScriptdeclaration('(function($){$(document).ready(function(){var o=$("#back-top");$(window).scroll(function(){if($(this).scrollTop()>100){o.fadeIn()}else{o.fadeOut()}});var $scrollEl=($.browser.mozilla||$.browser.msie)?$("html"):$("body,html");o.find("a").click(function(){$scrollEl.animate({scrollTop:0},400);return false})})})(jQuery);'); $back_top = '<div id="back-top"> <a href="#"><span></span>'.$this->params->get("totop_text").'</a> </div>'; } ?>
-
Das ist jedenfalls die entscheidende Zeile, die zu weißer Seite führte.
Komponente com_komento ist nicht PHP8-kompatibel.
Dass hier kein Backtrace wie in Anleitung angezeigt wurde ist schon mal möglich, wenn es eine JSON, AJAX oder sonstwas-ähnliches-Abfrage ist.
Hallo Re:Later,
danke für den Tipp - habe nun Komento im Backend - Extensions - Manage - Manage gesucht und alle Einträge dazu deinstalliert, da ich es ohnehin nicht brauche. Dann habe ich die PHP Version wieder auf 8.0 bzw. 8.1 hochgestellt und wieder einen Fehler erhalten:
0 - Unsupported operand types: int - string
You may not be able to visit this page because of:
- an out-of-date bookmark/favourite
- a
engine that has an out-of-date listing for this site
- a mistyped address
- you have no access to this page
- The requested resource was not found.
- An error has occurred while processing your request.
Please try one of the following pages:
If difficulties persist, please contact the System Administrator of this site and report the error below.
Unsupported operand types: int - string
/home/.sites/74/site2730453/web/templates/theme3299/includes/includes.php:132
Call stack # Function Location 1 () JROOT/templates/theme3299/includes/includes.php:132 2 include_once() JROOT/templates/theme3299/index.php:2 3 require() JROOT/libraries/src/Document/HtmlDocument.php:678 4 Joomla\CMS\Document\HtmlDocument->_loadTemplate() JROOT/libraries/src/Document/HtmlDocument.php:740 5 Joomla\CMS\Document\HtmlDocument->_fetchTemplate() JROOT/libraries/src/Document/HtmlDocument.php:555 6 Joomla\CMS\Document\HtmlDocument->parse() JROOT/libraries/src/Application/CMSApplication.php:1098 7 Joomla\CMS\Application\CMSApplication->render() JROOT/libraries/src/Application/SiteApplication.php:778 8 Joomla\CMS\Application\SiteApplication->render() JROOT/libraries/src/Application/CMSApplication.php:231 9 Joomla\CMS\Application\CMSApplication->execute() JROOT/index.php:49 Hast du eine Idee woran es noch liegen könnte? Habe über meinen Hoster die Datenbank geprüft, dort gibt es noch Tabellen zu Komento - soll ich dieser auslöschen?
Danke schonmal,
Tom
-
also ich vermute dass dein Hoster auf php8 umgestellt haben könnte...
Habe jetzt mit den PHP Einstellungen rumprobiert - es lag tatsächlich an der PHP Einstellung. Diese war beim Hoster auf 8.1 eingestellt - habe diese nun auf 7.4 untergestellt und nun funktioniert die Seite wieder!
Danke für die wertvollen Kommentare und Tipps!
Der Beitrag kann geschlossen werden
lg,
Tom
-
hier der Text:
CodeDeprecated: Joomla\Input\Input implements the Serializable interface, which is deprecated. Implement __serialize() and __unserialize() instead (or in addition, if support for old PHP versions is necessary) in /home/.sites/74/site2730453/web/libraries/vendor/joomla/input/src/Input.php on line 41 Deprecated: Return type of Joomla\Input\Input::count() should either be compatible with Countable::count(): int, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home/.sites/74/site2730453/web/libraries/vendor/joomla/input/src/Input.php on line 170 Deprecated: Joomla\CMS\Input\Input implements the Serializable interface, which is deprecated. Implement __serialize() and __unserialize() instead (or in addition, if support for old PHP versions is necessary) in /home/.sites/74/site2730453/web/libraries/src/Input/Input.php on line 31 Deprecated: Joomla\CMS\Input\Cookie implements the Serializable interface, which is deprecated. Implement __serialize() and __unserialize() instead (or in addition, if support for old PHP versions is necessary) in /home/.sites/74/site2730453/web/libraries/src/Input/Cookie.php on line 21 Deprecated: str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in /home/.sites/74/site2730453/web/libraries/src/Uri/Uri.php on line 141 Deprecated: Optional parameter $context declared before required parameter $params is implicitly treated as a required parameter in /home/.sites/74/site2730453/web/plugins/system/komento/komento.php on line 62 Fatal error: Array and string offset access syntax with curly braces is no longer supported in /home/.sites/74/site2730453/web/components/com_komento/classes/json.php on line 172
Steht ja eigentlich alles in der Anleitung.
hab lt. Anleitung die Einstellungen vorgenommen - ansonsten lese ich da als Laie nichts weiter raus, darum ja die Frage um Hilfe
-
Hallo Zusammen,
habe jetzt im Backend das Fehler berichten und System Debugger entsprechend aktiviert. Beim Aufruf der Seite wird nun ein langer Textblock angezeigt - kann man da den Fehler bereits rauslesen? Da ich mit den technischen Angaben nichts anfangen kann, bitte um Hilfe das mir das jemand übersetzt bzw. einen Tipp gibt was als nächstes zu tun ist.
Vielen Dank schonmal im voraus.
Tom
-
Nein, nicht ganz
es ist folgende: https://www.schweitzer1.at
-
Hallo,
habe plötzlich Probleme meine Webseite http://www.schweitzer1.at im Frontend aufzurufen. Im Browser wurde diese zuerst als "nicht sicher" markiert und entsprechend auch nicht geladen/angezeigt.
Dachte mir das hat mit SSL Zertifikaten zu tun und habe daher über meinen Provider world4you ein Basispaket des SSL Zertifikats installiert - dazu habe ich im Joomla Backend (Version 3.10.11) in der Konfiguration „HTTPS erzwingen“ für die gesamte Seite eingestellt.
Nun wird zwar das „nicht sicher“ im Browser nicht mehr angezeigt, jedoch auch das Frontend nicht geladen - der Bildschirm bleibt einfach weiß.Kann mir jemand mit einem Lösungsvorschlag weiterhelfen?
Vielen Dank,
Tom
-
Danke für den Tipp - habe es gefunden und bereits erfolgreich ausgetauscht!
Thread kann geschlossen werden.
-
Hallo,
Ich habe mir auf Template Monster das Template 59132 gekauft und bin auch schon gut mit dem Customizen vorangekommen. Bei einem Punkt hänge ich jedoch. In dem Template gibt es ein Modul „Name“ welches im Bereich „Header“ mit einem Hintergrundbild angezeigt wird. Ich will dieses Bild gegen eines von meinen Bildern in diesem Bereich austauschen, finde jedoch nicht die Stelle wo dieses Bild in diesem Modul / Bereich hinterlegt ist. Hat hierzu jemand eine Idee? Kann per PN gerne auch das PW für den Admin-Bereich weitergeben.
Das ganze kann man auf http://www.schweitzer1.at im Bereich "Blog" sehen.
Lg,
Thomas