Error in content deploy in magento 2.2.1Magento 2.2 Build systemMagento Module creation gives errorMagento...
figures in a grid with multiple line of texts
What's a good word to describe a public place that looks like it wouldn't be rough?
A minimum of two personnel "are" or "is"?
Can we use the stored gravitational potential energy of a building to produce power?
Typing Amharic inside a math equation?
What does Cypher mean when he says Neo is "gonna pop"?
Why Normality assumption in linear regression
Can I become debt free or should I file for bankruptcy? How do I manage my debt and finances?
Eww, those bytes are gross
Why did other German political parties disband so fast when Hitler was appointed chancellor?
Why is "points exist" not an axiom in geometry?
Contest math problem about crossing out numbers in the table
Is a debit card dangerous for an account with low balance and no overdraft protection?
What is the wife of a henpecked husband called?
Would these multi-classing house rules cause unintended problems?
Difference between two quite-similar Terminal commands
Difference between thick vs thin front suspension?
Am I a Rude Number?
Where are a monster’s hit dice found in the stat block?
Would a National Army of mercenaries be a feasible idea?
Solving Fredholm Equation of the second kind
Is there some relative to Dutch word "kijken" in German?
How does Arcane Armament interact with the Artillerist Artificer's Wand Prototype feature?
Every character has a name - does this lead to too many named characters?
Error in content deploy in magento 2.2.1
Magento 2.2 Build systemMagento Module creation gives errorMagento Installer - File Permission Check FailUncaught Error: Call to a member function setItem() on boolean on product grid: Magento 2admin grid not workingMagento 2 : Error when Add WYSIWYG Editor to Block FormError at order shippingMagento 2.2.4 place order exception error “Undefined index: product_id Issue”Fatal error: Uncaught RuntimeException:Magento 2 Errormagento 2 trace payment page issue array to string conversion
I have installed the magento 2.2.1 but on deploying static content it is giving following error
PHP Fatal error: Uncaught Error: Call to a member function getPackage() on null in /var/www/html/unicorn-magento/vendor/magento/module-deploy/Package/Processor/PostProcessor/CssUrls.php:215
Stack trace:
#0 /var/www/html/unicorn-magento/vendor/magento/module-deploy/Package/Processor/PostProcessor/CssUrls.php(109): MagentoDeployPackageProcessorPostProcessorCssUrls->getValidExternalUrl('{{base_url_path...', Object(MagentoDeployPackagePackage))
#1 /var/www/html/unicorn-magento/vendor/magento/module-deploy/Package/Processor/PostProcessor/CssUrls.php(80): MagentoDeployPackageProcessorPostProcessorCssUrls->parseCss(Array, 'css/email-inlin...', 'frontend/Custom...', '@import url("{{...', Object(MagentoDeployPackagePackage))
#2 /var/www/html/unicorn-magento/vendor/magento/module-deploy/Service/DeployPackage.php(147): MagentoDeployPackageProcessorPostProcessorCssUrls->process(Object(MagentoDeployPackagePackage), Array)
#3 /var/www/html/unicorn-magento/vendor/magento/module-deploy/Service/DeployPackage.php(103): in /var/www/html/unicorn-magento/vendor/magento/module-deploy/Package/Processor/PostProcessor/CssUrls.php on line 215
I have removed view_processed content, pub/satatic and tried multiple times but this error is showing. Please help to resolve this. Thanks
magento2 static-content-deploy
add a comment |
I have installed the magento 2.2.1 but on deploying static content it is giving following error
PHP Fatal error: Uncaught Error: Call to a member function getPackage() on null in /var/www/html/unicorn-magento/vendor/magento/module-deploy/Package/Processor/PostProcessor/CssUrls.php:215
Stack trace:
#0 /var/www/html/unicorn-magento/vendor/magento/module-deploy/Package/Processor/PostProcessor/CssUrls.php(109): MagentoDeployPackageProcessorPostProcessorCssUrls->getValidExternalUrl('{{base_url_path...', Object(MagentoDeployPackagePackage))
#1 /var/www/html/unicorn-magento/vendor/magento/module-deploy/Package/Processor/PostProcessor/CssUrls.php(80): MagentoDeployPackageProcessorPostProcessorCssUrls->parseCss(Array, 'css/email-inlin...', 'frontend/Custom...', '@import url("{{...', Object(MagentoDeployPackagePackage))
#2 /var/www/html/unicorn-magento/vendor/magento/module-deploy/Service/DeployPackage.php(147): MagentoDeployPackageProcessorPostProcessorCssUrls->process(Object(MagentoDeployPackagePackage), Array)
#3 /var/www/html/unicorn-magento/vendor/magento/module-deploy/Service/DeployPackage.php(103): in /var/www/html/unicorn-magento/vendor/magento/module-deploy/Package/Processor/PostProcessor/CssUrls.php on line 215
I have removed view_processed content, pub/satatic and tried multiple times but this error is showing. Please help to resolve this. Thanks
magento2 static-content-deploy
Magento tried to run getPackage function on some object which is equal null. Try to find out why this object is null using xdebug...
– Stepan Furman
Feb 22 '18 at 21:29
@Nitin Pawar did you find out the reason?
– M.Elwan
May 29 '18 at 11:21
add a comment |
I have installed the magento 2.2.1 but on deploying static content it is giving following error
PHP Fatal error: Uncaught Error: Call to a member function getPackage() on null in /var/www/html/unicorn-magento/vendor/magento/module-deploy/Package/Processor/PostProcessor/CssUrls.php:215
Stack trace:
#0 /var/www/html/unicorn-magento/vendor/magento/module-deploy/Package/Processor/PostProcessor/CssUrls.php(109): MagentoDeployPackageProcessorPostProcessorCssUrls->getValidExternalUrl('{{base_url_path...', Object(MagentoDeployPackagePackage))
#1 /var/www/html/unicorn-magento/vendor/magento/module-deploy/Package/Processor/PostProcessor/CssUrls.php(80): MagentoDeployPackageProcessorPostProcessorCssUrls->parseCss(Array, 'css/email-inlin...', 'frontend/Custom...', '@import url("{{...', Object(MagentoDeployPackagePackage))
#2 /var/www/html/unicorn-magento/vendor/magento/module-deploy/Service/DeployPackage.php(147): MagentoDeployPackageProcessorPostProcessorCssUrls->process(Object(MagentoDeployPackagePackage), Array)
#3 /var/www/html/unicorn-magento/vendor/magento/module-deploy/Service/DeployPackage.php(103): in /var/www/html/unicorn-magento/vendor/magento/module-deploy/Package/Processor/PostProcessor/CssUrls.php on line 215
I have removed view_processed content, pub/satatic and tried multiple times but this error is showing. Please help to resolve this. Thanks
magento2 static-content-deploy
I have installed the magento 2.2.1 but on deploying static content it is giving following error
PHP Fatal error: Uncaught Error: Call to a member function getPackage() on null in /var/www/html/unicorn-magento/vendor/magento/module-deploy/Package/Processor/PostProcessor/CssUrls.php:215
Stack trace:
#0 /var/www/html/unicorn-magento/vendor/magento/module-deploy/Package/Processor/PostProcessor/CssUrls.php(109): MagentoDeployPackageProcessorPostProcessorCssUrls->getValidExternalUrl('{{base_url_path...', Object(MagentoDeployPackagePackage))
#1 /var/www/html/unicorn-magento/vendor/magento/module-deploy/Package/Processor/PostProcessor/CssUrls.php(80): MagentoDeployPackageProcessorPostProcessorCssUrls->parseCss(Array, 'css/email-inlin...', 'frontend/Custom...', '@import url("{{...', Object(MagentoDeployPackagePackage))
#2 /var/www/html/unicorn-magento/vendor/magento/module-deploy/Service/DeployPackage.php(147): MagentoDeployPackageProcessorPostProcessorCssUrls->process(Object(MagentoDeployPackagePackage), Array)
#3 /var/www/html/unicorn-magento/vendor/magento/module-deploy/Service/DeployPackage.php(103): in /var/www/html/unicorn-magento/vendor/magento/module-deploy/Package/Processor/PostProcessor/CssUrls.php on line 215
I have removed view_processed content, pub/satatic and tried multiple times but this error is showing. Please help to resolve this. Thanks
magento2 static-content-deploy
magento2 static-content-deploy
asked Feb 22 '18 at 19:50
Nitin PawarNitin Pawar
78911438
78911438
Magento tried to run getPackage function on some object which is equal null. Try to find out why this object is null using xdebug...
– Stepan Furman
Feb 22 '18 at 21:29
@Nitin Pawar did you find out the reason?
– M.Elwan
May 29 '18 at 11:21
add a comment |
Magento tried to run getPackage function on some object which is equal null. Try to find out why this object is null using xdebug...
– Stepan Furman
Feb 22 '18 at 21:29
@Nitin Pawar did you find out the reason?
– M.Elwan
May 29 '18 at 11:21
Magento tried to run getPackage function on some object which is equal null. Try to find out why this object is null using xdebug...
– Stepan Furman
Feb 22 '18 at 21:29
Magento tried to run getPackage function on some object which is equal null. Try to find out why this object is null using xdebug...
– Stepan Furman
Feb 22 '18 at 21:29
@Nitin Pawar did you find out the reason?
– M.Elwan
May 29 '18 at 11:21
@Nitin Pawar did you find out the reason?
– M.Elwan
May 29 '18 at 11:21
add a comment |
2 Answers
2
active
oldest
votes
This is already answered here by @MateuszLerczak
I am quoting the relevant part from the answer below:
Workaround for that is remove generated data before deploy. If
var/view_preprocessed
exists magento using data from this dir.
rm -rf pub/static/* var/view_preprocessed/pub/*
php bin/magento setup:static-content:deploy -f en_US
Also see this GitHub thread for more details
add a comment |
It seems to be a magento bug :-( . The way to reverse it is the following (I know this is not a solution) but it will help to have the site working again:
On command line:
Magento ≥ 2.2
bin/magento config:set dev/css/minify_files 0
bin/magento cache:clean
Magento < 2.2
On DB (mysql client) execute: UPDATE core_config_data SET value = 0 WHERE 'dev/css/minify_files
bin/magento cache:clean
Now, you can compile again.
New contributor
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "479"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f214696%2ferror-in-content-deploy-in-magento-2-2-1%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
This is already answered here by @MateuszLerczak
I am quoting the relevant part from the answer below:
Workaround for that is remove generated data before deploy. If
var/view_preprocessed
exists magento using data from this dir.
rm -rf pub/static/* var/view_preprocessed/pub/*
php bin/magento setup:static-content:deploy -f en_US
Also see this GitHub thread for more details
add a comment |
This is already answered here by @MateuszLerczak
I am quoting the relevant part from the answer below:
Workaround for that is remove generated data before deploy. If
var/view_preprocessed
exists magento using data from this dir.
rm -rf pub/static/* var/view_preprocessed/pub/*
php bin/magento setup:static-content:deploy -f en_US
Also see this GitHub thread for more details
add a comment |
This is already answered here by @MateuszLerczak
I am quoting the relevant part from the answer below:
Workaround for that is remove generated data before deploy. If
var/view_preprocessed
exists magento using data from this dir.
rm -rf pub/static/* var/view_preprocessed/pub/*
php bin/magento setup:static-content:deploy -f en_US
Also see this GitHub thread for more details
This is already answered here by @MateuszLerczak
I am quoting the relevant part from the answer below:
Workaround for that is remove generated data before deploy. If
var/view_preprocessed
exists magento using data from this dir.
rm -rf pub/static/* var/view_preprocessed/pub/*
php bin/magento setup:static-content:deploy -f en_US
Also see this GitHub thread for more details
answered Jun 6 '18 at 10:23
Rajeev K TomyRajeev K Tomy
14.5k54589
14.5k54589
add a comment |
add a comment |
It seems to be a magento bug :-( . The way to reverse it is the following (I know this is not a solution) but it will help to have the site working again:
On command line:
Magento ≥ 2.2
bin/magento config:set dev/css/minify_files 0
bin/magento cache:clean
Magento < 2.2
On DB (mysql client) execute: UPDATE core_config_data SET value = 0 WHERE 'dev/css/minify_files
bin/magento cache:clean
Now, you can compile again.
New contributor
add a comment |
It seems to be a magento bug :-( . The way to reverse it is the following (I know this is not a solution) but it will help to have the site working again:
On command line:
Magento ≥ 2.2
bin/magento config:set dev/css/minify_files 0
bin/magento cache:clean
Magento < 2.2
On DB (mysql client) execute: UPDATE core_config_data SET value = 0 WHERE 'dev/css/minify_files
bin/magento cache:clean
Now, you can compile again.
New contributor
add a comment |
It seems to be a magento bug :-( . The way to reverse it is the following (I know this is not a solution) but it will help to have the site working again:
On command line:
Magento ≥ 2.2
bin/magento config:set dev/css/minify_files 0
bin/magento cache:clean
Magento < 2.2
On DB (mysql client) execute: UPDATE core_config_data SET value = 0 WHERE 'dev/css/minify_files
bin/magento cache:clean
Now, you can compile again.
New contributor
It seems to be a magento bug :-( . The way to reverse it is the following (I know this is not a solution) but it will help to have the site working again:
On command line:
Magento ≥ 2.2
bin/magento config:set dev/css/minify_files 0
bin/magento cache:clean
Magento < 2.2
On DB (mysql client) execute: UPDATE core_config_data SET value = 0 WHERE 'dev/css/minify_files
bin/magento cache:clean
Now, you can compile again.
New contributor
New contributor
answered 2 mins ago
Kopernix dotcomKopernix dotcom
1
1
New contributor
New contributor
add a comment |
add a comment |
Thanks for contributing an answer to Magento Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f214696%2ferror-in-content-deploy-in-magento-2-2-1%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Magento tried to run getPackage function on some object which is equal null. Try to find out why this object is null using xdebug...
– Stepan Furman
Feb 22 '18 at 21:29
@Nitin Pawar did you find out the reason?
– M.Elwan
May 29 '18 at 11:21