Please always enter the name of the template and the Joomla version and the live URL if available

[SOLVED] Lokale Fonts + PHP8: Path cannot be empty

Lokale Fonts + PHP8: Path cannot be empty was created by creativeservices

Posted 1 year 11 months ago #32901
Code:
ValueError: Path cannot be empty at [webroot]/libraries/astroid/framework/library/FontLib/BinaryStream.php:110 at fopen() ([webroot]/libraries/astroid/framework/library/FontLib/BinaryStream.php:110) at FontLib\BinaryStream::getTempFile() ([webroot]/libraries/astroid/framework/library/FontLib/WOFF/File.php:36) at FontLib\WOFF\File->load() ([webroot]/libraries/astroid/framework/library/FontLib/Font.php:67) at FontLib\Font::load() ([webroot]/libraries/astroid/framework/library/astroid/Helper/Font.php:136) at Astroid\Helper\Font::getLocalFonts() ([webroot]/libraries/astroid/framework/library/astroid/Helper/Font.php:123) at Astroid\Helper\Font::getUploadedFonts() ([webroot]/libraries/astroid/framework/library/astroid/Template.php:311) at Astroid\Template->getFonts() ([webroot]/libraries/astroid/framework/library/astroid/Helper/Font.php:257) at Astroid\Helper\Font::loadLocalFont() ([webroot]/libraries/astroid/framework/library/astroid/Helper/Font.php:208) at Astroid\Helper\Font::getFontFamily() ([webroot]/libraries/astroid/framework/library/astroid/Helper/Style.php:290) at Astroid\Helper\Style::getFontFamilyValue() ([webroot]/libraries/astroid/framework/library/astroid/Helper/Style.php:278) at Astroid\Helper\Style::renderTypography() ([webroot]/libraries/astroid/framework/library/astroid/Component/Utility.php:199) at Astroid\Component\Utility::typography() ([webroot]/templates/tp_advocat/error.php:28) at require('[webroot]/templates/tp_advocat/error.php') ([webroot]/libraries/src/Document/HtmlDocument.php:737) at Joomla\CMS\Document\HtmlDocument->_loadTemplate() ([webroot]/libraries/src/Document/HtmlDocument.php:792) at Joomla\CMS\Document\HtmlDocument->_fetchTemplate() ([webroot]/libraries/src/Document/HtmlDocument.php:609) at Joomla\CMS\Document\HtmlDocument->parse() ([webroot]/libraries/src/Document/HtmlDocument.php:627) at Joomla\CMS\Document\HtmlDocument->render() ([webroot]/libraries/src/Document/ErrorDocument.php:139) at Joomla\CMS\Document\ErrorDocument->render() ([webroot]/libraries/src/Error/Renderer/HtmlRenderer.php:78) at Joomla\CMS\Error\Renderer\HtmlRenderer->render() ([webroot]/libraries/src/Exception/ExceptionHandler.php:121) at Joomla\CMS\Exception\ExceptionHandler::render() ([webroot]/libraries/src/Exception/ExceptionHandler.php:72) at Joomla\CMS\Exception\ExceptionHandler::handleException() ([webroot]/libraries/src/Application/CMSApplication.php:322) at Joomla\CMS\Application\CMSApplication->execute() ([webroot]/includes/app.php:61) at require_once('[webroot]/includes/app.php') ([webroot]/index.php:32)

Wenn ich eine Google-Font wähle, geht alles. Wenn ich eine lokale Custom-Font wähle, kommt der Fehler in PHP

Problem tritt auf bei:

- PHP 8.1.18
- jos 4.2.9 / 4.2.0
- Astroid 2.6.4
- tp_advocat 1.3.13,

im Backend, wenn ein Frontend-Templatestil bearbeitet werden soll (Einlesen der Fonts) und
direkt im Frontend.

Auslöser war, so weit beobachtbar, ein Update von tp_advocat 1.3.12 auf tp_advocat 1.3.13 oder astroid auf 2.6.4.

System- und Astroid-Cache leeren und System-Cache deaktivieren brachte nix. Kurz Umstellen auf PHP 7.4 war erfolgreich, ist aber keine Option.
Last Edit:1 year 11 months ago by creativeservices
Last edit: 1 year 11 months ago by creativeservices.
The topic has been locked.

Replied by WM-Loose on topic Lokale Fonts + PHP8: Path cannot be empty

Posted 1 year 11 months ago #32902
Danke für den eigenen Topic.
Stimmt der Zielordner für die Ablage der lokalen Fonts:
media/templates/site/template_name/fonts

Eventuell im BE bei 'System-Konfiguration-Server'
'Fehler berichten' auf '
'Keine'
JP-Admin
Joomla-Master in forum.joomla.de/
Last Edit:1 year 11 months ago by WM-Loose
Last edit: 1 year 11 months ago by WM-Loose.
The topic has been locked.

Replied by creativeservices on topic Lokale Fonts + PHP8: Path cannot be empty

Posted 1 year 11 months ago #32903
Der Pfad stimmt, denn die Fonts sind im BE wählbar. Auch die fs-Rechte sind korrekt. Das FE wirft einen 500, macht also die Seite unbrauchbar. Es wird folglich dringend eine Lösung benötigt, da PHP7.4 nicht mehr betrieben werden soll. Und es sind sämtliche CMS im Bestand betroffen, die alle auf jos4 + jp-tpl/astroid laufen.

Und da es Produktivsysteme sind, ist error reporting sowieso aus. Die Ausgabe oben war im Entwicklungsbereich mit "maximal".
Last Edit:1 year 11 months ago by creativeservices
Last edit: 1 year 11 months ago by creativeservices.
The topic has been locked.

Replied by WM-Loose on topic Lokale Fonts + PHP8: Path cannot be empty

Posted 1 year 11 months ago #32904
Ok, dann bitte Fehleranalyse durchführen:
forum.joomla.de/thread/6467-fehler-finde...ug-modus-call-stack/
JP-Admin
Joomla-Master in forum.joomla.de/
The topic has been locked.

Replied by creativeservices on topic Lokale Fonts + PHP8: Path cannot be empty

Posted 1 year 11 months ago #32905
call stack siehe oben.
The topic has been locked.

Replied by WM-Loose on topic Lokale Fonts + PHP8: Path cannot be empty

Posted 1 year 11 months ago #32906
Seite lokal oder online?
JP-Admin
Joomla-Master in forum.joomla.de/
The topic has been locked.
Moderators: joomlaplates

Installations-Service

Don´t waste your time, we install your purchased Template
with the "Demo Content" within the next 24 hours.

Buy Now - 59€

Joomlaplates/Theme-Point is not affiliated with or endorsed by Open Source Matters or the Joomla! Project

Copyright © 2024 JoomlaPlates | Professional Joomla Templates with Uikit 3

Disclaimer & Privacy | License