Greetings. Guys tell me how to use MinifyX. Where to insert? Should I remove css and js, leave chunks in the template?
Did you take a look a the example in the documentation?
There are different ways to use MinifyX. The simplest is:
Call the snippet MinifyX
and list your CSS/JS files in the properties &cssSources
and &jsSources
.
Then put the placeholders (the default name are [[!+MinifyX.javascript]]
and [[!+MinifyX.css]]
) in the place in your template, where the minified files should go.
Hello. I don’t understand how it should be in the template.
Call - insert into chunk head?
chunk - js replace with [[+MinifyX.javascript]]?
The structure of every MODX site is unique, so I can’t tell you exactly where to put the placeholders.
I would put the MinifyX snippet call at the top of the template and then use the placeholders wherever your <link>
and <script>
tags used to be.
<head>
<title>[[*pagetitle]] - [[++site_name]]</title>
<base href="[[!++site_url]]" />
<meta name="keywords" content="[[*longtitle]]">
<meta name="description" content="[[*description]]">
<meta charset="[[++modx_charset]]" />
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0">
<meta http-equiv="Content-Security-Policy" content="upgrade-insecure-requests">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<!-- Fav Icon -->
<link rel="icon" href="/assets/2022/favicon.ico" type="image/x-icon">
<!-- Google Fonts -->
<link href="https://fonts.googleapis.com/css2?family=Nunito:ital,wght@0,300;0,400;0,600;0,700;0,800;0,900;1,300;1,400;1,600;1,700;1,800;1,900&display=swap" rel="stylesheet">
<link href="https://fonts.googleapis.com/css2?family=Montserrat+Alternates:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap" rel="stylesheet">
[[MinifyX?
&minifyCss=`1`
&minifyJs=`1`
®isterJs=`default`
®isterCss=`default`
&jsSources=`
assets/plugins/jquery/jquery-2.1.4.min.js,
assets/js/scripts.js,
`
&cssSources=`
assets/2022/css/font-awesome-all.css,
assets/2022/css/flaticon.css,
assets/2022/css/owl.css,
assets/css/header-1.css,
assets/2022/css/bootstrap.css,
`
]]
<!-- Stylesheets -->
[[+MinifyX.css]]
[[$yandexmetrika]]
</head>
and the same code in the chunk where are the scripts?
content_copy
share
Two examples can be found here: Examples - MinifyX
If you use these values for these properties, then the placeholders are not set. The CSS file is automatically placed in the <head>
section and the JS file before the closing <body>
tag.
Also, you should probably call the snippet uncached [[!MinifyX? ...]]
as in the example.
I took the call from the example.
Thank you. I will try, if there are problems I will write.
The snippet and the placeholder have to be called both uncached or both cached. It they are called cached, the generated minified files are only created when the resource is not cached, so you can’t change the minified assets on the fly.
There is an internal MinifyX cache used, so it is not a real issue to call the snippet uncached.
Good evening. Guys, I’ve run into a problem. 404 error
<!-- Stylesheets -->
[[!MinifyX?
&minifyCss=`1`
&cssSources=`
/assets/2022/css/font-awesome-all.css,
/assets/2022/css/flaticon.css,
/assets/2022/css/owl.css,
/assets/2022/css/bootstrap.css,
/assets/2022/css/jquery.fancybox.min.css,
/assets/2022/css/animate.css,
/assets/2022/css/nice-select.css,
/assets/2022/css/jquery-ui.css,
/assets/2022/css/color.css,
/assets/2022/css/style.css,
/assets/2022/css/responsive.css
`
&cssPlaceholder=`MinifyX.css`
]]
[[+MinifyX.css]]```
![2022-08-16_211222|690x407](upload://pBlH7bfiU2cMJH1A8DDZsgQzP1G.jpeg)
![2022-08-16_211322|689x72](upload://qSvBDDQvPwgrsexJSoEzodI6Rqb.jpeg)
![2022-08-16_211438|689x47](upload://ueg6pbp5KBziYH4rZZh8qE2Y24N.jpeg)
For the resource or for the minified CSS file?
Your snippet is uncached and your placeholder cached! They have to be the same.
[type or paste code here](https://tmk-pilot.ru/assets/minifyx/css/styles_p42bf512370.css)
css который содержит fonts
I guess it’s in the paths …/fonts/fa-brands-400.eot , /fonts/fa-brands-400.eot
I edit along the path /assets/minifyx/css - nothing changes
[[!MinifyX?
&minifyCss=`1`
&cssSources=`
/assets/2022/css/font-awesome-all.css,
/assets/2022/css/flaticon.css,
/assets/2022/css/owl.css,
/assets/2022/css/bootstrap.css,
/assets/2022/css/jquery.fancybox.min.css,
/assets/2022/css/animate.css,
/assets/2022/css/nice-select.css,
/assets/2022/css/jquery-ui.css,
/assets/2022/css/color.css,
/assets/2022/css/style.css,
/assets/2022/css/responsive.css
`
&cssPlaceholder=`MinifyX.css`
]]
[[!+MinifyX.css]]
I put. ! nothing changed
Please look into the MODX error log. If the css file is not generated, there should be an error in the log.
Yes, there are mistakes. What needs to be done?
Which MinifyX error is logged?
[Tue Aug 16 19:01:28 2022] [php7:error] [pid 389357] [client 90.151.90.234:0] PHP Fatal error: Uncaught Exception: Could not create file
Then the folder referenced by minifyx.cachePath is not writable.
Maybe the file content is empty and it can’t be written because of this. But then there should be more errors logged by MinifyX.
[Tue Aug 16 19:01:28 2022] [php7:error] [pid 389357] [client ] PHP Fatal error: Uncaught Exception: Could not create file /assets/minifyx/css/styles_p42bf512370.css in /core/components/minifyx/src/MinifyX.php:298\nStack trace:\n#0 /core/components/minifyx/src/Snippets/MinifyXSnippet.php(105): TreehillStudio\MinifyX\MinifyX->saveAssetFile(‘Utilities\nCSS M…’, ‘css’, ‘_p’)\n#1 /core/cache/includes/elements/modsnippet/105.include.cache.php(22): TreehillStudio\MinifyX\Snippets\MinifyXSnippet->execute()\n#2 /core/model/modx/modscript.class.php(76): include(‘/home/v/vorotap…’)\n#3 /core/model/modx/modparser.class.php(537): modScript->process(NULL)\n#4 /core/components/pdotools/model/pdotools/pdoparser.class.php(273): modParser->processTag(Array, true)\n#5 /public_html/core/components/minifyx/src/MinifyX.php on line 298, referer: /assets/minifyx/css/styles_p42bf512370.css
[Tue Aug 16 19:01:38 2022] [php7:error] [pid 389361] [client ] PHP Fatal error: Uncaught Exception: Could not create file /assets/minifyx/css/styles_p42bf512370.css in /core/components/minifyx/src/MinifyX.php:298\nStack trace:\n#0 /core/components/minifyx/src/Snippets/MinifyXSnippet.php(105): TreehillStudio\MinifyX\MinifyX->saveAssetFile(‘Utilities\nCSS M…’, ‘css’, ‘_p’)\n#1 /core/cache/includes/elements/modsnippet/105.include.cache.php(22): TreehillStudio\MinifyX\Snippets\MinifyXSnippet->execute()\n#2 /core/model/modx/modscript.class.php(76): include(‘/home/v/vorotap…’)\n#3 /core/model/modx/modparser.class.php(537): modScript->process(NULL)\n#4 /core/components/pdotools/model/pdotools/pdoparser.class.php(273): modParser->processTag(Array, true)\n#5 /public_html/core/components/minifyx/src/MinifyX.php on line 298, referer: /assets/minifyx/css/styles_p42bf512370.css
[Tue Aug 16 19:01:38 2022] [php7:error] [pid 389360] [client ] PHP Fatal error: Uncaught Exception: Could not create file /assets/minifyx/css/styles_p42bf512370.css in /core/components/minifyx/src/MinifyX.php:298\nStack trace:\n#0 /core/components/minifyx/src/Snippets/MinifyXSnippet.php(105): TreehillStudio\MinifyX\MinifyX->saveAssetFile(‘Utilities\nCSS M…’, ‘css’, ‘_p’)\n#1 /core/cache/includes/elements/modsnippet/105.include.cache.php(22): TreehillStudio\MinifyX\Snippets\MinifyXSnippet->execute()\n#2 /core/model/modx/modscript.class.php(76): include(‘/home/v/vorotap…’)\n#3 /core/model/modx/modparser.class.php(537): modScript->process(NULL)\n#4 /core/components/pdotools/model/pdotools/pdoparser.class.php(273): modParser->processTag(Array, true)\n#5 /public_html/core/components/minifyx/src/MinifyX.php on line 298, referer: /assets/minifyx/css/styles_p42bf512370.css
[Tue Aug 16 19:02:34 2022] [php7:error] [pid 389395] [client ] PHP Fatal error: Uncaught Exception: Could not create file /assets/minifyx/css/styles_p42bf512370.css in /core/components/minifyx/src/MinifyX.php:298\nStack trace:\n#0 /core/components/minifyx/src/Snippets/MinifyXSnippet.php(105): TreehillStudio\MinifyX\MinifyX->saveAssetFile(‘Utilities\nCSS M…’, ‘css’, ‘_p’)\n#1 /core/cache/includes/elements/modsnippet/105.include.cache.php(22): TreehillStudio\MinifyX\Snippets\MinifyXSnippet->execute()\n#2 /core/model/modx/modscript.class.php(76): include(‘/home/v/vorotap…’)\n#3 /core/model/modx/modparser.class.php(537): modScript->process(NULL)\n#4 /core/components/pdotools/model/pdotools/pdoparser.class.php(273): modParser->processTag(Array, true)\n#5 /public_html/core/components/minifyx/src/MinifyX.php on line 298, referer: /assets/minifyx/css/styles_p42bf512370.css
[Tue Aug 16 19:02:35 2022] [php7:error] [pid 389395] [client ] PHP Fatal error: Uncaught Exception: Could not create file /assets/minifyx/css/styles_p42bf512370.css in /core/components/minifyx/src/MinifyX.php:298\nStack trace:\n#0 /core/components/minifyx/src/Snippets/MinifyXSnippet.php(105): TreehillStudio\MinifyX\MinifyX->saveAssetFile(‘Utilities\nCSS M…’, ‘css’, ‘_p’)\n#1 /core/cache/includes/elements/modsnippet/105.include.cache.php(22): TreehillStudio\MinifyX\Snippets\MinifyXSnippet->execute()\n#2 /core/model/modx/modscript.class.php(76): include(‘/home/v/vorotap…’)\n#3 /core/model/modx/modparser.class.php(537): modScript->process(NULL)\n#4 /core/components/pdotools/model/pdotools/pdoparser.class.php(273): modParser->processTag(Array, true)\n#5 /public_html/core/components/minifyx/src/MinifyX.php on line 298, referer: /assets/minifyx/css/styles_p42bf512370.css
[Tue Aug 16 19:11:18 2022] [php7:error] [pid 405627] [client ] PHP Fatal error: Uncaught Exception: Could not create file /assets/minifyx/css/styles_p42bf512370.css in /core/components/minifyx/src/MinifyX.php:298\nStack trace:\n#0 /core/components/minifyx/src/Snippets/MinifyXSnippet.php(105): TreehillStudio\MinifyX\MinifyX->saveAssetFile(‘Utilities\nCSS M…’, ‘css’, ‘_p’)\n#1 /core/cache/includes/elements/modsnippet/105.include.cache.php(22): TreehillStudio\MinifyX\Snippets\MinifyXSnippet->execute()\n#2 /core/model/modx/modscript.class.php(76): include(‘/home/v/vorotap…’)\n#3 /core/model/modx/modparser.class.php(537): modScript->process(NULL)\n#4 /core/components/pdotools/model/pdotools/pdoparser.class.php(273): modParser->processTag(Array, true)\n#5 /public_html/core/components/minifyx/src/MinifyX.php on line 298, referer: /assets/minifyx/css/styles_p42bf512370.css
[Tue Aug 16 19:11:21 2022] [php7:error] [pid 406975] [client ] PHP Fatal error: Uncaught Exception: Could not create file /assets/minifyx/css/styles_p42bf512370.css in /core/components/minifyx/src/MinifyX.php:298\nStack trace:\n#0 /core/components/minifyx/src/Snippets/MinifyXSnippet.php(105): TreehillStudio\MinifyX\MinifyX->saveAssetFile(‘Utilities\nCSS M…’, ‘css’, ‘_p’)\n#1 /core/cache/includes/elements/modsnippet/105.include.cache.php(22): TreehillStudio\MinifyX\Snippets\MinifyXSnippet->execute()\n#2 /core/model/modx/modscript.class.php(76): include(‘/home/v/vorotap…’)\n#3 /core/model/modx/modparser.class.php(537): modScript->process(NULL)\n#4 /core/components/pdotools/model/pdotools/pdoparser.class.php(273): modParser->processTag(Array, true)\n#5 /public_html/core/components/minifyx/src/MinifyX.php on line 298, referer: /assets/minifyx/css/styles_p42bf512370.css
[Tue Aug 16 19:21:39 2022] [php7:error] [pid 413302] [client 74.125.208.74:0] PHP Fatal error: Uncaught Exception: Could not create file /assets/minifyx/css/styles_p42bf512370.css in /core/components/minifyx/src/MinifyX.php:298\nStack trace:\n#0 /core/components/minifyx/src/Snippets/MinifyXSnippet.php(105): TreehillStudio\MinifyX\MinifyX->saveAssetFile(‘Utilities\nCSS M…’, ‘css’, ‘_p’)\n#1 /core/cache/includes/elements/modsnippet/105.include.cache.php(22): TreehillStudio\MinifyX\Snippets\MinifyXSnippet->execute()\n#2 /core/model/modx/modscript.class.php(76): include(‘/home/v/vorotap…’)\n#3 /core/model/modx/modparser.class.php(537): modScript->process(NULL)\n#4 /core/components/pdotools/model/pdotools/pdoparser.class.php(273): modParser->processTag(Array, true)\n#5 /public_html/core/components/minifyx/src/MinifyX.php on line 298, referer: /assets/minifyx/css/styles_p42bf512370.css
[Tue Aug 16 19:21:39 2022] [php7:error] [pid 413308] [client 74.125.208.74:0] PHP Fatal error: Uncaught Exception: Could not create file /assets/minifyx/css/styles_p42bf512370.css in /core/components/minifyx/src/MinifyX.php:298\nStack trace:\n#0 /core/components/minifyx/src/Snippets/MinifyXSnippet.php(105): TreehillStudio\MinifyX\MinifyX->saveAssetFile(‘Utilities\nCSS M…’, ‘css’, ‘_p’)\n#1 /core/cache/includes/elements/modsnippet/105.include.cache.php(22): TreehillStudio\MinifyX\Snippets\MinifyXSnippet->execute()\n#2 /core/model/modx/modscript.class.php(76): include(‘/home/v/vorotap…’)\n#3 /core/model/modx/modparser.class.php(537): modScript->process(NULL)\n#4 /core/components/pdotools/model/pdotools/pdoparser.class.php(273): modParser->processTag(Array, true)\n#5 /public_html/core/components/minifyx/src/MinifyX.php on line 298, referer: /assets/minifyx/css/styles_p42bf512370.css
[Tue Aug 16 19:21:39 2022] [php7:error] [pid 414331] [client 74.125.208.76:0] PHP Fatal error: Uncaught Exception: Could not create file /assets/minifyx/css/styles_p42bf512370.css in /core/components/minifyx/src/MinifyX.php:298\nStack trace:\n#0 /core/components/minifyx/src/Snippets/MinifyXSnippet.php(105): TreehillStudio\MinifyX\MinifyX->saveAssetFile(‘Utilities\nCSS M…’, ‘css’, ‘_p’)\n#1 /core/cache/includes/elements/modsnippet/105.include.cache.php(22): TreehillStudio\MinifyX\Snippets\MinifyXSnippet->execute()\n#2 /core/model/modx/modscript.class.php(76): include(‘/home/v/vorotap…’)\n#3 /core/model/modx/modparser.class.php(537): modScript->process(NULL)\n#4 /core/components/pdotools/model/pdotools/pdoparser.class.php(273): modParser->processTag(Array, true)\n#5 /public_html/core/components/minifyx/src/MinifyX.php on line 298, referer: /assets/minifyx/css/styles_p42bf512370.css
[Tue Aug 16 19:21:40 2022] [php7:error] [pid 414888] [client 74.125.208.74:0] PHP Fatal error: Uncaught Exception: Could not create file /assets/minifyx/css/styles_p42bf512370.css in /core/components/minifyx/src/MinifyX.php:298\nStack trace:\n#0 /core/components/minifyx/src/Snippets/MinifyXSnippet.php(105): TreehillStudio\MinifyX\MinifyX->saveAssetFile(‘Utilities\nCSS M…’, ‘css’, ‘_p’)\n#1 /core/cache/includes/elements/modsnippet/105.include.cache.php(22): TreehillStudio\MinifyX\Snippets\MinifyXSnippet->execute()\n#2 /core/model/modx/modscript.class.php(76): include(‘/home/v/vorotap…’)\n#3 /core/model/modx/modparser.class.php(537): modScript->process(NULL)\n#4 /core/components/pdotools/model/pdotools/pdoparser.class.php(273): modParser->processTag(Array, true)\n#5 /public_html/core/components/minifyx/src/MinifyX.php on line 298, referer: /assets/minifyx/css/styles_p42bf512370.css
[Tue Aug 16 19:46:58 2022] [php7:error] [pid 443527] [client ] PHP Fatal error: Uncaught Exception: Could not create file /assets/minifyx/css/styles_p42bf512370.css in /core/components/minifyx/src/MinifyX.php:298\nStack trace:\n#0 /core/components/minifyx/src/Snippets/MinifyXSnippet.php(105): TreehillStudio\MinifyX\MinifyX->saveAssetFile(‘Utilities\nCSS M…’, ‘css’, ‘_p’)\n#1 /core/cache/includes/elements/modsnippet/105.include.cache.php(22): TreehillStudio\MinifyX\Snippets\MinifyXSnippet->execute()\n#2 /core/model/modx/modscript.class.php(76): include(‘/home/v/vorotap…’)\n#3 /core/model/modx/modparser.class.php(537): modScript->process(NULL)\n#4 /core/components/pdotools/model/pdotools/pdoparser.class.php(273): modParser->processTag(Array, true)\n#5 /public_html/core/components/minifyx/src/MinifyX.php on line 298, referer: /assets/minifyx/css/styles_p42bf512370.css
[Tue Aug 16 19:47:16 2022] [php7:error] [pid 444146] [client 66.249.93.161:0] PHP Fatal error: Uncaught Exception: Could not create file /assets/minifyx/css/styles_p42bf512370.css in /core/components/minifyx/src/MinifyX.php:298\nStack trace:\n#0 /core/components/minifyx/src/Snippets/MinifyXSnippet.php(105): TreehillStudio\MinifyX\MinifyX->saveAssetFile(‘Utilities\nCSS M…’, ‘css’, ‘_p’)\n#1 /core/cache/includes/elements/modsnippet/105.include.cache.php(22): TreehillStudio\MinifyX\Snippets\MinifyXSnippet->execute()\n#2 /core/model/modx/modscript.class.php(76): include(‘/home/v/vorotap…’)\n#3 /core/model/modx/modparser.class.php(537): modScript->process(NULL)\n#4 /core/components/pdotools/model/pdotools/pdoparser.class.php(273): modParser->processTag(Array, true)\n#5 /public_html/core/components/minifyx/src/MinifyX.php on line 298, referer: /assets/minifyx/css/styles_p42bf512370.css
[Tue Aug 16 19:47:16 2022] [php7:error] [pid 444173] [client 66.249.93.166:0] PHP Fatal error: Uncaught Exception: Could not create file /assets/minifyx/css/styles_p42bf512370.css in /core/components/minifyx/src/MinifyX.php:298\nStack trace:\n#0 /core/components/minifyx/src/Snippets/MinifyXSnippet.php(105): TreehillStudio\MinifyX\MinifyX->saveAssetFile(‘Utilities\nCSS M…’, ‘css’, ‘_p’)\n#1 /core/cache/includes/elements/modsnippet/105.include.cache.php(22): TreehillStudio\MinifyX\Snippets\MinifyXSnippet->execute()\n#2 /core/model/modx/modscript.class.php(76): include(‘/home/v/vorotap…’)\n#3 /core/model/modx/modparser.class.php(537): modScript->process(NULL)\n#4 /core/components/pdotools/model/pdotools/pdoparser.class.php(273): modParser->processTag(Array, true)\n#5 /public_html/core/components/minifyx/src/MinifyX.php on line 298, referer: /assets/minifyx/css/styles_p42bf512370.css
[Tue Aug 16 19:47:43 2022] [php7:error] [pid 445405] [client 66.249.93.161:0] PHP Fatal error: Uncaught Exception: Could not create file /assets/minifyx/css/styles_p42bf512370.css in /core/components/minifyx/src/MinifyX.php:298\nStack trace:\n#0 /core/components/minifyx/src/Snippets/MinifyXSnippet.php(105): TreehillStudio\MinifyX\MinifyX->saveAssetFile(‘Utilities\nCSS M…’, ‘css’, ‘_p’)\n#1 /core/cache/includes/elements/modsnippet/105.include.cache.php(22): TreehillStudio\MinifyX\Snippets\MinifyXSnippet->execute()\n#2 /core/model/modx/modscript.class.php(76): include(‘/home/v/vorotap…’)\n#3 /core/model/modx/modparser.class.php(537): modScript->process(NULL)\n#4 /core/components/pdotools/model/pdotools/pdoparser.class.php(273): modParser->processTag(Array, true)\n#5 /public_html/core/components/minifyx/src/MinifyX.php on line 298, referer: /assets/minifyx/css/styles_p42bf512370.css
[Tue Aug 16 19:47:49 2022] [php7:error] [pid 445072] [client ] PHP Fatal error: Uncaught Exception: Could not create file /assets/minifyx/css/styles_p42bf512370.css in /core/components/minifyx/src/MinifyX.php:298\nStack trace:\n#0 /core/components/minifyx/src/Snippets/MinifyXSnippet.php(105): TreehillStudio\MinifyX\MinifyX->saveAssetFile(‘Utilities\nCSS M…’, ‘css’, ‘_p’)\n#1 /core/cache/includes/elements/modsnippet/105.include.cache.php(22): TreehillStudio\MinifyX\Snippets\MinifyXSnippet->execute()\n#2 /core/model/modx/modscript.class.php(76): include(‘/home/v/vorotap…’)\n#3 /core/model/modx/modparser.class.php(537): modScript->process(NULL)\n#4 /core/components/pdotools/model/pdotools/pdoparser.class.php(273): modParser->processTag(Array, true)\n#5 /public_html/core/components/minifyx/src/MinifyX.php on line 298, referer: /assets/minifyx/css/styles_p42bf512370.css
[Tue Aug 16 20:05:58 2022] [php7:error] [pid 457409] [client ] PHP Fatal error: Uncaught Exception: Could not create file /assets/minifyx/css/styles_p42bf512370.css in /core/components/minifyx/src/MinifyX.php:298\nStack trace:\n#0 /core/components/minifyx/src/Snippets/MinifyXSnippet.php(105): TreehillStudio\MinifyX\MinifyX->saveAssetFile(‘Utilities\nCSS M…’, ‘css’, ‘_p’)\n#1 /core/cache/includes/elements/modsnippet/105.include.cache.php(22): TreehillStudio\MinifyX\Snippets\MinifyXSnippet->execute()\n#2 /core/model/modx/modscript.class.php(76): include(‘/home/v/vorotap…’)\n#3 /core/model/modx/modparser.class.php(537): modScript->process(NULL)\n#4 /core/components/pdotools/model/pdotools/pdoparser.class.php(273): modParser->processTag(Array, true)\n#5 /public_html/core/components/minifyx/src/MinifyX.php on line 298, referer: /assets/minifyx/css/styles_p42bf512370.css
[Tue Aug 16 20:05:58 2022] [php7:error] [pid 457409] [client ] PHP Fatal error: Uncaught Exception: Could not create file /assets/minifyx/css/styles_p42bf512370.css in /core/components/minifyx/src/MinifyX.php:298\nStack trace:\n#0 /core/components/minifyx/src/Snippets/MinifyXSnippet.php(105): TreehillStudio\MinifyX\MinifyX->saveAssetFile(‘Utilities\nCSS M…’, ‘css’, ‘_p’)\n#1 /core/cache/includes/elements/modsnippet/105.include.cache.php(22): TreehillStudio\MinifyX\Snippets\MinifyXSnippet->execute()\n#2 /core/model/modx/modscript.class.php(76): include(‘/home/v/vorotap…’)\n#3 /core/model/modx/modparser.class.php(537): modScript->process(NULL)\n#4 /core/components/pdotools/model/pdotools/pdoparser.class.php(273): modParser->processTag(Array, true)\n#5 /public_html/core/components/minifyx/src/MinifyX.php on line 298, referer: /assets/minifyx/css/styles_p42bf512370.css
[Tue Aug 16 20:05:59 2022] [php7:error] [pid 457409] [client ] PHP Fatal error: Uncaught Exception: Could not create file /assets/minifyx/css/styles_p42bf512370.css in /core/components/minifyx/src/MinifyX.php:298\nStack trace:\n#0 /core/components/minifyx/src/Snippets/MinifyXSnippet.php(105): TreehillStudio\MinifyX\MinifyX->saveAssetFile(‘Utilities\nCSS M…’, ‘css’, ‘_p’)\n#1 /core/cache/includes/elements/modsnippet/105.include.cache.php(22): TreehillStudio\MinifyX\Snippets\MinifyXSnippet->execute()\n#2 /core/model/modx/modscript.class.php(76): include(‘/home/v/vorotap…’)\n#3 /core/model/modx/modparser.class.php(537): modScript->process(NULL)\n#4 /core/components/pdotools/model/pdotools/pdoparser.class.php(273): modParser->processTag(Array, true)\n#5 /public_html/core/components/minifyx/src/MinifyX.php on line 298, referer: /assets/minifyx/css/styles_p42bf512370.css
permissions 777 /assets/minifyx/css - one file that was created earlier is located
content_copy
share