Joomla

Aus crazylinux.de
Zur Navigation springen Zur Suche springen

Joomla ist ein freies auf php-basierendes Web-Content-Management-System http://joomla.org/

Download deutsch

http://www.jgerman.de/

Templates

http://www.joomlaos.de/


Addons (Plugins...)

Tips

How to Change Your Joomla Administrator Folder/No brute force attacks

found on http://www.bsntech.com/how-to-change-your-joomla-administrator-folder

see https://crazylinux.de/Apache2#conf-avaiable.2Fjoomla-admin-block.conf

Installation

chown -R www-data modules/ plugins/ components/ images/ media/ language/ templates/ cache/ logs/ tmp/
chown -R www-data cache/ backups/ components/ language/ modules/ templates/

Metatags

/libraries/joomla/document/html/renderer/head.php


Error

PHP Fatal error:  Call to undefined method Joomla\\CMS\\Document\\RawDocument::isHtml5() in .../libraries/src/Document/Renderer/Html/HeadRenderer.php on

see https://issues.joomla.org/tracker/joomla-cms/3155

-- orginal/htdocs/libraries/src/Document/Renderer/Html/HeadRenderer.php      2017-10-05 00:10:33.000000000 +0200
+++ patched/htdocs/libraries/src/Document/Renderer/Html/HeadRenderer.php        2017-10-11 00:01:43.000000000 +0200
@@ -74,7 +74,7 @@
                $mediaVersion = $document->getMediaVersion();
 
                // Generate charset when using HTML5 (should happen first)
-               if ($document->isHtml5())
+               if ($document->getType() == 'html' && $document->isHtml5())
                {
                        $buffer .= $tab . '<meta charset="' . $document->getCharset() . '" />' . $lnEnd;
                }
@@ -182,7 +182,7 @@
                                }
 
                                // Don't add type attribute if document is HTML5 and it's a default mime type. 'mime' is for B/C.
-                               if (in_array($attrib, array('type', 'mime')) && $document->isHtml5() && in_array($value, $defaultCssMimes))
+                               if (in_array($attrib, array('type', 'mime')) && $document->getType() == 'html' && $document->isHtml5() && in_array($value, $defaultJsMimes))
                                {
                                        continue;
                                }
@@ -218,7 +218,7 @@
                {
                        $buffer .= $tab . '<style';
 
-                       if (!is_null($type) && (!$document->isHtml5() || !in_array($type, $defaultCssMimes)))
+                       if (!is_null($type) && ($document->gettype() != 'html' || !$document->isHtml5() || !in_array($type, $defaultCssMimes)))
                        {
                                $buffer .= ' type="' . $type . '"';
                        }
@@ -293,7 +293,7 @@
                                }
 
                                // Don't add type attribute if document is HTML5 and it's a default mime type. 'mime' is for B/C.
-                               if (in_array($attrib, array('type', 'mime')) && $document->isHtml5() && in_array($value, $defaultJsMimes))
+                               if (in_array($attrib, array('type', 'mime')) && $document->getType() == 'html' && $document->isHtml5() && in_array($value, $defaultJsMimes))
                                {
                                        continue;
                                }
@@ -318,7 +318,7 @@
                                // Add attribute to script tag output.
                                $buffer .= ' ' . htmlspecialchars($attrib, ENT_COMPAT, 'UTF-8');
 
-                               if (!($document->isHtml5() && in_array($attrib, $html5NoValueAttributes)))
+                               if (!($document->getType() == 'html' && $document->isHtml5()  && in_array($attrib, $html5NoValueAttributes)))
                                {
                                        // Json encode value if it's an array.
                                        $value = !is_scalar($value) ? json_encode($value) : $value;
@@ -343,7 +343,7 @@
                {
                        $buffer .= $tab . '<script';
 
-                       if (!is_null($type) && (!$document->isHtml5() || !in_array($type, $defaultJsMimes)))
+                       if (!is_null($type) && ($document->gettype() != 'html' ||!$document->isHtml5() || !in_array($type, $defaultJsMimes)))
                        {
                                $buffer .= ' type="' . $type . '"';
                        }