Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error after install magento 2 rc with sample data #2286

Closed
minhluan259 opened this issue Nov 7, 2015 · 7 comments
Closed

Error after install magento 2 rc with sample data #2286

minhluan259 opened this issue Nov 7, 2015 · 7 comments
Assignees

Comments

@minhluan259
Copy link

sytems.log

[2015-11-07 03:38:28] main.CRITICAL:
Compilation from source:
frontend/Magento/luma/en_US/css/email.less
variable @modal-slide-header__padding-vertical is undefined in file D:/App/htdocs/magentodev/var/view_preprocessed/css/frontend/Magento/luma/en_US/css/source/_theme.less in _theme.less on line 254, column 37
252| // Modal popup
253| @modal-action-close__font-size: @font-size__base;
254| @modal-slide-action-close__padding: @modal-slide-header__padding-vertical @modal-popup__padding;
255|
256| // Checkout tooltip icon
257| @checkout-tooltip-icon__font-size: 21px;
[] []
[2015-11-07 03:38:29] main.CRITICAL:
Compilation from source:
frontend/Magento/luma/en_US/css/email-inline.less
variable @modal-slide-header__padding-vertical is undefined in file D:/App/htdocs/magentodev/var/view_preprocessed/css/frontend/Magento/luma/en_US/css/source/_theme.less in _theme.less on line 254, column 37
252| // Modal popup
253| @modal-action-close__font-size: @font-size__base;
254| @modal-slide-action-close__padding: @modal-slide-header__padding-vertical @modal-popup__padding;
255|
256| // Checkout tooltip icon
257| @checkout-tooltip-icon__font-size: 21px;
[] []
[2015-11-07 03:42:39] main.ERROR: Sample Data error: Error in data structure: entity values are mixed [] []
[2015-11-07 03:43:25] main.ERROR: Sample Data error: Notice: Undefined index: Black
in D:\App\htdocs\magento2-sample-data\app\code\Magento\SwatchesSampleData\Model\Swatches.php on line 131 [] []

@MomotenkoNatalia
Copy link
Contributor

Related issue #2273, #2306

@dmitrii-fediuk
Copy link

My universal fix for all the «variable @modal-slide-header__padding-vertical is undefined» problems: https://mage2.pro/t/193

@woei66
Copy link

woei66 commented Nov 12, 2015

diff --git a/app/design/frontend/Magento/luma/web/css/source/_theme.less b/app/design/frontend/Magento/luma/web/css/source/_theme.less
index 3ff123e..cbb274d 100644
--- a/app/design/frontend/Magento/luma/web/css/source/_theme.less
+++ b/app/design/frontend/Magento/luma/web/css/source/_theme.less
@@ -19,6 +19,8 @@
@icons__font-path: '@{baseDir}fonts/Luma-Icons';
@icons__font-name: 'luma-icons';

+@import 'components/_modals.less';
+
// Color nesting
@panel__background-color: @color-gray-light0;
@border-color__base: @color-gray80;

@woei66
Copy link

woei66 commented Nov 12, 2015

reference to #2273 (comment)
you should

  1. modify the app/design/frontend/Magento/luma/web/css/source/_theme.less
  2. rm -rf var/
  3. bin/magento setup:upgrade
  4. bin/magento setup:static-content:deploy

@woei66
Copy link

woei66 commented Nov 12, 2015

sometime, you may see the memory message like
PHP Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 12475503 bytes)
you should modify the /etc/php.ini or /etc/php-5.6.ini and change the memory_limit = 512M

@minhluan259
Copy link
Author

@woei66 @dfediuk , i've fixed _theme.less
but remaining errors

[2015-11-07 03:42:39] main.ERROR: Sample Data error: Error in data structure: entity values are mixed [] []
[2015-11-07 03:43:25] main.ERROR: Sample Data error: Notice: Undefined index: Black
in D:\App\htdocs\magento2-sample-data\app\code\Magento\SwatchesSampleData\Model\Swatches.php on line 131 [] []

Data were missing something

@vektor-dev
Copy link

Same problem here:
Compilation from source:
frontend/Vektor/petscorner/en_US/css/email-fonts.less

Any way of sorting it out?

magento-team pushed a commit that referenced this issue May 2, 2018
[TSG] Backporting for 2.2 (pr23) (2.2.4)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants