Skip to content

Sampledata #1831

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

Closed
zhanyi8866 opened this issue Sep 10, 2015 · 6 comments
Closed

Sampledata #1831

zhanyi8866 opened this issue Sep 10, 2015 · 6 comments

Comments

@zhanyi8866
Copy link

D:\magento\Mage003\magento2\bin>php magento sampledata:install admin
Installing theme:
.
Installing customers:
.
Installing CMS pages:
....
Installing catalog attributes:
...........................
Installing categories:
.........................................
Installing simple products:
PHP Fatal error: Call to undefined method Magento\Catalog\Model\Resource\Produc
t\Interceptor::getWriteConnection() in D:\magento\Mage003\magento2\app
code\Magento\SampleData\Module\Catalog\Setup\Product\Gallery.php on line 144

Fatal error: Call to undefined method Magento\Catalog\Model\Resource\Product\Int
erceptor::getWriteConnection() in D:\magento\Mage003\magento2\app\code
Magento\SampleData\Module\Catalog\Setup\Product\Gallery.php on line 144

@mazhalai
Copy link
Contributor

@zhanyi8866 This is a known issue. Please use the master branch if you plan to use sample data. Closing as duplicate of #1636 , #1610 , and #1757.

@afroz92
Copy link

afroz92 commented Sep 10, 2015

I have tried installing from master branch with sample data on my local with Windows 7 and the installation takes too much time especially at 98% it stuck for an hour.
magento2-1

@mazhalai
Copy link
Contributor

@afroz92 do you have xdebug enabled? It will slow it down considerably. Sample data does take a while, please be patient.

@afroz92
Copy link

afroz92 commented Sep 10, 2015

I have added
php_value xdebug.max_nesting_level 500
in my .htaccess file . Does this value makes difference? Shall i make it 200?

@zhanyi8866
Copy link
Author

  1. git clone -b master https://github.com/magento/magento2.git
  2. php -r "readfile('https://getcomposer.org/installer');" | php
  3. php composer.phar config repositories.magento composer http://packages.magento.com
  4. php composer.phar install
  5. open firefox, begin install (don't choose 'sample data')
  6. install success
  7. php composer.phar require magento/sample-data:1.0.0-beta
  8. php magento setup:upgrade
  9. php magento sampledata:install admin
  10. sampledata install success

memory_limit = 2048M

@Schoeny1
Copy link

zhany you rock!

Thank you for your procedure list, I have been having such a hard time getting this to work and you saved me. The only thing that I had to do differently was install from the command line. I also had to reset the owner and permissions of the install directory at the end in order to see the data.

magento-team pushed a commit that referenced this issue Dec 12, 2017
Task:
- MAGETWO-83893 Eliminate @codingstandardsignorefile annotation from codebase
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants