Joomla: Unterschied zwischen den Versionen

Aus crazylinux.de
Zur Navigation springen Zur Suche springen
(err)
Zeile 32: Zeile 32:


  /libraries/joomla/document/html/renderer/head.php
  /libraries/joomla/document/html/renderer/head.php
= Error =
<syntaxhighlight lang="php">
PHP Fatal error:  Call to undefined method Joomla\\CMS\\Document\\RawDocument::isHtml5() in .../libraries/src/Document/Renderer/Html/HeadRenderer.php on
</syntaxhighlight>
see https://issues.joomla.org/tracker/joomla-cms/3155
<syntaxhighlight lang="diff">
<              if ($document->getType() == 'html' && $document->isHtml5())
---
>              if ($document->isHtml5())
185c185
<                              if (in_array($attrib, array('type', 'mime')) && $document->gettype() != 'html' || $document->isHtml5() && in_array($value, $defaultCssMimes))
---
>                              if (in_array($attrib, array('type', 'mime')) && $document->isHtml5() && in_array($value, $defaultCssMimes))
221c221
<                      if (!is_null($type) && ($document->gettype() != 'html' || !$document->isHtml5() || !in_array($type, $defaultCssMimes)))
---
>                      if (!is_null($type) && (!$document->isHtml5() || !in_array($type, $defaultCssMimes)))
296c296
<                              if (in_array($attrib, array('type', 'mime')) && $document->getType() == 'html' && $document->isHtml5() && in_array($value, $defaultJsMimes))
---
>                              if (in_array($attrib, array('type', 'mime')) && $document->isHtml5() && in_array($value, $defaultJsMimes))
321c321
<                              if (!($document->getType() == 'html' && $document->isHtml5()  && in_array($attrib, $html5NoValueAttributes)))
---
>                              if (!($document->isHtml5() && in_array($attrib, $html5NoValueAttributes)))
346c346
<                      if (!is_null($type) && ($document->gettype() != 'html' ||!$document->isHtml5() || !in_array($type, $defaultJsMimes)))
---
>                      if (!is_null($type) && (!$document->isHtml5() || !in_array($type, $defaultJsMimes)))
</syntaxhighlight>


[[Kategorie:PHP]]
[[Kategorie:PHP]]

Version vom 11. Oktober 2017, 00:07 Uhr

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

<               if ($document->getType() == 'html' && $document->isHtml5())
---
>               if ($document->isHtml5())
185c185
<                               if (in_array($attrib, array('type', 'mime')) && $document->gettype() != 'html' || $document->isHtml5() && in_array($value, $defaultCssMimes))
---
>                               if (in_array($attrib, array('type', 'mime')) && $document->isHtml5() && in_array($value, $defaultCssMimes))
221c221
<                       if (!is_null($type) && ($document->gettype() != 'html' || !$document->isHtml5() || !in_array($type, $defaultCssMimes)))
---
>                       if (!is_null($type) && (!$document->isHtml5() || !in_array($type, $defaultCssMimes)))
296c296
<                               if (in_array($attrib, array('type', 'mime')) && $document->getType() == 'html' && $document->isHtml5() && in_array($value, $defaultJsMimes))
---
>                               if (in_array($attrib, array('type', 'mime')) && $document->isHtml5() && in_array($value, $defaultJsMimes))
321c321
<                               if (!($document->getType() == 'html' && $document->isHtml5()  && in_array($attrib, $html5NoValueAttributes)))
---
>                               if (!($document->isHtml5() && in_array($attrib, $html5NoValueAttributes)))
346c346
<                       if (!is_null($type) && ($document->gettype() != 'html' ||!$document->isHtml5() || !in_array($type, $defaultJsMimes)))
---
>                       if (!is_null($type) && (!$document->isHtml5() || !in_array($type, $defaultJsMimes)))