for PDF I changed in
/controllers/front/AttachmentController.php
header('Content-Disposition: attachment; filename="' . utf8_decode($attachment->file_name) . '"');
to:
header('Content-Disposition: inline; filename="' . utf8_decode($attachment->file_name) . '"');
[2023-03-30 20:58:22] request.CRITICAL: Uncaught PHP Exception Symfony\Component\ErrorHandler\Error\UndefinedMethodError: "Attempted to call an undefined method named "link_rewrite" of class "PrestaShop\PrestaShop\Adapter\Tools". Did you mean to call "linkRewrite"?" at /var/www/vhosts/testsite.com/modules/mockupgenerator/src/MGMockupUploader.php line 16 {"exception":"[object] (Symfony\\Component\\ErrorHandler\\Error\\UndefinedMethodError(code: 0): Attempted to call an undefined method named \"link_rewrite\" of class \"PrestaShop\\PrestaShop\\Adapter\\Tools\".\nDid you mean to call \"linkRewrite\"? at /var/www/vhosts/testsite.com/modules/mockupgenerator/src/MGMockupUploader.php:16)"} []
[2023-03-30 20:58:22] request.CRITICAL: Exception thrown when handling an exception (Twig\Error\LoaderError: Template "::base.html.twig" is not defined in "@PrestaShop/Admin/Exception/error.html.twig" at line 26. at /var/www/vhosts/testsite.com/vendor/twig/twig/src/Loader/ChainLoader.php line 99) {"exception":"[object] (Twig\\Error\\LoaderError(code: 0): Template \"::base.html.twig\" is not defined in \"@PrestaShop/Admin/Exception/error.html.twig\" at line 26. at /var/www/vhosts/testsite.com/vendor/twig/twig/src/Loader/ChainLoader.php:99)"} []