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

Can't load fixtures #386

Closed
ghost opened this issue Oct 9, 2013 · 14 comments
Closed

Can't load fixtures #386

ghost opened this issue Oct 9, 2013 · 14 comments
Labels
Potential Bug Potential bugs or bugfixes, that needs to be reproduced.

Comments

@ghost
Copy link

ghost commented Oct 9, 2013

Hi,

I installed Sylius but I have no data in my database.

Here my outputs :

sylius bourg_i$ php app/console sylius:install

Installing Sylius.

Checking system requirements.
PHP version and settings
PHP version OK
Recommanded PHP version OK
timezone OK
Deprecated timezone OK
detect_unicode OK
detect_unicode OK
short_open_tag OK
magic_quotes_gpc OK
register_globals OK
session.auto_start OK
extensions
JSON OK
Session OK
Ctype OK
Tokenizer OK
SimpleXML OK
APC OK
PCRE OK
PHP-XML OK
Multibyte String OK
Iconv OK
Intl OK
ICU OK
Accelerator OK
PDO OK
file system
vendors OK
cache OK
logs OK
parameters.yml OK

Setting up database.
Created database for connection named `tp_dev`
ATTENTION: This operation should not be executed in a production environment.

Creating database schema...
Database schema created successfully!
Dumping all dev assets.
Debug mode is on.

05:22:44 [dir+] /Applications/MAMP/htdocs/TaPlace/sylius/app/../web/assets/compiled
05:22:44 [file+] /Applications/MAMP/htdocs/TaPlace/sylius/app/../web/assets/compiled/chart.js
05:22:46 [file+] /Applications/MAMP/htdocs/TaPlace/sylius/app/../web/assets/compiled/chart_Chart.min_1.js
05:22:47 [file+] /Applications/MAMP/htdocs/TaPlace/sylius/app/../web/assets/compiled/backend.css
05:22:51 [file+] /Applications/MAMP/htdocs/TaPlace/sylius/app/../web/assets/compiled/backend_bootstrap.no-icons.min_1.css
05:22:52 [file+] /Applications/MAMP/htdocs/TaPlace/sylius/app/../web/assets/compiled/backend_font-awesome_2.css
05:22:53 [file+] /Applications/MAMP/htdocs/TaPlace/sylius/app/../web/assets/compiled/backend_select2_3.css
05:22:53 [file+] /Applications/MAMP/htdocs/TaPlace/sylius/app/../web/assets/compiled/backend_backend_4.css
05:22:53 [file+] /Applications/MAMP/htdocs/TaPlace/sylius/app/../web/assets/compiled/backend_bootstrap-image-gallery_5.css
05:22:53 [file+] /Applications/MAMP/htdocs/TaPlace/sylius/app/../web/assets/compiled/backend.js
05:22:55 [file+] /Applications/MAMP/htdocs/TaPlace/sylius/app/../web/assets/compiled/backend_jquery-1.8.0.min_1.js
05:22:55 [file+] /Applications/MAMP/htdocs/TaPlace/sylius/app/../web/assets/compiled/backend_bootstrap.min_2.js
05:22:56 [file+] /Applications/MAMP/htdocs/TaPlace/sylius/app/../web/assets/compiled/backend_form-collection_3.js
05:22:56 [file+] /Applications/MAMP/htdocs/TaPlace/sylius/app/../web/assets/compiled/backend_form-spinner_4.js
05:22:56 [file+] /Applications/MAMP/htdocs/TaPlace/sylius/app/../web/assets/compiled/backend_select2_5.js
05:22:56 [file+] /Applications/MAMP/htdocs/TaPlace/sylius/app/../web/assets/compiled/backend_backend_6.js
05:22:56 [file+] /Applications/MAMP/htdocs/TaPlace/sylius/app/../web/assets/compiled/backend_load-image_7.js
05:22:56 [file+] /Applications/MAMP/htdocs/TaPlace/sylius/app/../web/assets/compiled/backend_bootstrap-image-gallery_8.js
05:22:56 [file+] /Applications/MAMP/htdocs/TaPlace/sylius/app/../web/assets/compiled/backend_product.js
05:22:56 [file+] /Applications/MAMP/htdocs/TaPlace/sylius/app/../web/assets/compiled/backend_product_prototype-handler_1.js
05:22:56 [file+] /Applications/MAMP/htdocs/TaPlace/sylius/app/../web/assets/compiled/backend_product_dynamic-property-types_2.js
05:22:56 [file+] /Applications/MAMP/htdocs/TaPlace/sylius/app/../web/assets/compiled/backend_promotion.js
05:22:57 [file+] /Applications/MAMP/htdocs/TaPlace/sylius/app/../web/assets/compiled/backend_promotion_jquery.livequery_1.js
05:22:58 [file+] /Applications/MAMP/htdocs/TaPlace/sylius/app/../web/assets/compiled/backend_promotion_sylius-promotion_2.js
05:22:58 [file+] /Applications/MAMP/htdocs/TaPlace/sylius/app/../web/assets/compiled/backend_property.js
05:22:58 [file+] /Applications/MAMP/htdocs/TaPlace/sylius/app/../web/assets/compiled/backend_property_sylius-property-choices_1.js
05:22:58 [file+] /Applications/MAMP/htdocs/TaPlace/sylius/app/../web/assets/compiled/backend.css
05:23:00 [file+] /Applications/MAMP/htdocs/TaPlace/sylius/app/../web/assets/compiled/backend_bootstrap.no-icons.min_1.css
05:23:01 [file+] /Applications/MAMP/htdocs/TaPlace/sylius/app/../web/assets/compiled/backend_font-awesome_2.css
05:23:02 [file+] /Applications/MAMP/htdocs/TaPlace/sylius/app/../web/assets/compiled/backend_backend_3.css
05:23:02 [file+] /Applications/MAMP/htdocs/TaPlace/sylius/app/../web/assets/compiled/backend_shipping_method.js
05:23:02 [file+] /Applications/MAMP/htdocs/TaPlace/sylius/app/../web/assets/compiled/backend_shipping_method_prototype-handler_1.js
05:23:02 [file+] /Applications/MAMP/htdocs/TaPlace/sylius/app/../web/assets/compiled/backend_shipping_method_sylius-shipping-method_2.js
05:23:02 [file+] /Applications/MAMP/htdocs/TaPlace/sylius/app/../web/assets/compiled/backend_province.js
05:23:02 [file+] /Applications/MAMP/htdocs/TaPlace/sylius/app/../web/assets/compiled/backend_province_province-choices_1.js
05:23:02 [file+] /Applications/MAMP/htdocs/TaPlace/sylius/app/../web/assets/compiled/backend_addressing_zone.js
05:23:02 [file+] /Applications/MAMP/htdocs/TaPlace/sylius/app/../web/assets/compiled/backend_addressing_zone_sylius-addressing-zone_1.js
05:23:02 [file+] /Applications/MAMP/htdocs/TaPlace/sylius/app/../web/assets/compiled/frontend_province.js
05:23:02 [file+] /Applications/MAMP/htdocs/TaPlace/sylius/app/../web/assets/compiled/frontend_province_province-choices_1.js
05:23:02 [file+] /Applications/MAMP/htdocs/TaPlace/sylius/app/../web/assets/compiled/frontend.css
05:23:04 [file+] /Applications/MAMP/htdocs/TaPlace/sylius/app/../web/assets/compiled/frontend_bootstrap.no-icons.min_1.css
05:23:05 [file+] /Applications/MAMP/htdocs/TaPlace/sylius/app/../web/assets/compiled/frontend_font-awesome_2.css
05:23:06 [file+] /Applications/MAMP/htdocs/TaPlace/sylius/app/../web/assets/compiled/frontend_frontend_3.css
05:23:06 [file+] /Applications/MAMP/htdocs/TaPlace/sylius/app/../web/assets/compiled/frontend_bootstrap-image-gallery_4.css
05:23:06 [file+] /Applications/MAMP/htdocs/TaPlace/sylius/app/../web/assets/compiled/frontend.js
05:23:08 [file+] /Applications/MAMP/htdocs/TaPlace/sylius/app/../web/assets/compiled/frontend_jquery-1.8.0.min_1.js
05:23:08 [file+] /Applications/MAMP/htdocs/TaPlace/sylius/app/../web/assets/compiled/frontend_bootstrap.min_2.js
05:23:09 [file+] /Applications/MAMP/htdocs/TaPlace/sylius/app/../web/assets/compiled/frontend_load-image_3.js
05:23:09 [file+] /Applications/MAMP/htdocs/TaPlace/sylius/app/../web/assets/compiled/frontend_bootstrap-image-gallery_4.js
Load fixtures (Y/N)?Y
Careful, database will be purged. Do you want to continue Y/N ?Y
  > purging database
  > loading [1] Sylius\Bundle\CoreBundle\DataFixtures\ORM\LoadPromotionsData
  > loading [1] Sylius\Bundle\CoreBundle\DataFixtures\ORM\LoadUsersData
@ghost
Copy link
Author

ghost commented Oct 9, 2013

I tried :

php app/console doctrine:fixtures:load -e=dev
php app/console doctrine:fixtures:load

my outputs are the same :

Careful, database will be purged. Do you want to continue Y/N ?Y

purging database
loading [1] Sylius\Bundle\CoreBundle\DataFixtures\ORM\LoadPromotionsData
loading [1] Sylius\Bundle\CoreBundle\DataFixtures\ORM\LoadUsersData
loading [1] Sylius\Bundle\CoreBundle\DataFixtures\ORM\LoadExchangeRatesData
loading [1] Sylius\Bundle\CoreBundle\DataFixtures\ORM\LoadCountriesData
loading [2] Sylius\Bundle\CoreBundle\DataFixtures\ORM\LoadPropertiesData
loading [2] Sylius\Bundle\CoreBundle\DataFixtures\ORM\LoadZonesData
loading [3] Sylius\Bundle\CoreBundle\DataFixtures\ORM\LoadTaxationData
loading [3] Sylius\Bundle\CoreBundle\DataFixtures\ORM\LoadOptionsData
loading [4] Sylius\Bundle\CoreBundle\DataFixtures\ORM\LoadShippingData
loading [4] Sylius\Bundle\CoreBundle\DataFixtures\ORM\LoadPaymentMethodsData
loading [5] Sylius\Bundle\CoreBundle\DataFixtures\ORM\LoadTaxonomiesData
loading [5] Sylius\Bundle\CoreBundle\DataFixtures\ORM\LoadImagesData
loading [6] Sylius\Bundle\CoreBundle\DataFixtures\ORM\LoadProductsData

But it's the same I have no data

@Richtermeister
Copy link
Contributor

I believe it's the INTL/ICU extension. Had the same problem at the LoadProductsData step.
Either you don't have it installed or it's too old.

@pjedrzejewski
Copy link
Member

^ this.

@ghost
Copy link
Author

ghost commented Oct 10, 2013

I did sudo port install php5-intl to install my intl, it's too old ?

@cordoval
Copy link
Contributor

you should be able to upgrade your server easily, if not there is another solution in the symfony2 documentation on how to specify a lower icu or intl extension version. I have done it in several other projects where shared hosting was the only option and they did not have the latest version.

@ghost
Copy link
Author

ghost commented Oct 10, 2013

I use MAMP and it's a bit hard to upgrade it (or maybe I'm juste a newbie :p)

Actually I have PHP 5.4.10 and ICU 51.2

I just don't know which version I have to use

@cordoval
Copy link
Contributor

run sylius in the vagrant box

@ghost
Copy link

ghost commented Oct 11, 2013

I have the same exact problem, how could we solve it without using vagrant ?

@ghost
Copy link
Author

ghost commented Oct 12, 2013

Yeah same for me, I don't know what is vagrant box

@ghost
Copy link

ghost commented Oct 12, 2013

I have no more problem now, i think is just due to the fact I do a composer self-update and then a "composer update" for dependencies :)

@stloyd
Copy link
Contributor

stloyd commented Oct 15, 2013

Seems kind of releated to #32.

@stloyd
Copy link
Contributor

stloyd commented Dec 5, 2013

Is this still a problem?

I guess if there is one, we should probably add some note or add requirement about Icu/Intl version required by Sylius to run demo smothly.

@nitin-soni
Copy link

Yes, i am facing this issue today itself.

@Raisadomua
Copy link

Me too can not install sylius and fixtures date during error:
[ReflectionException]
Class does not exist. I have php 5.5, intl enabled.

pamil pushed a commit to pamil/Sylius that referenced this issue Mar 21, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Potential Bug Potential bugs or bugfixes, that needs to be reproduced.
Projects
None yet
Development

No branches or pull requests

6 participants