Installer fails ? (Hello Group, here's my first noob question)

46 views
Skip to first unread message

Andre Anneck

unread,
Apr 3, 2014, 6:19:57 AM4/3/14
to syliu...@googlegroups.com
Hello Group,

my name's André I am a software development consultant from Berlin/Germany. (wave)
I am using Sylius as a base for my customers new web-shop.
FYI: 
I am familiar with php, composer, symonfy2 etc... but still learning about the Sylius "way".

Now to my problem... since yesterday I get the following error on /app_dev.php/:

SQLSTATE[42S02]: Base table or view not found: 1146 Table 'sylius_dev.sylius_product' doesn't exist") in SyliusWebBundle:Frontend:layout.html.twig at line 63.

I thougt: "No Problem, lets just recreate the schema using your installer" 

When I do:
# mysql -u root -pxxx drop database sylius_dev;
# app/console sylius:install
... When it gets to the Fixtures ...

Load fixtures (Y/N)?Y
Careful, database will be purged. Do you want to continue Y/N ?Y
  > purging database

  [Doctrine\DBAL\DBALException]                                                                               
  An exception occurred while executing 'DELETE FROM sylius_product_option':                                                                                                                                                
  SQLSTATE[42S02]: Base table or view not found: 1146 Table 'sylius_dev.sylius_product_option' doesn't exist  
  [PDOException]                                                                                              
  SQLSTATE[42S02]: Base table or view not found: 1146 Table 'sylius_dev.sylius_product_option' doesn't exist  

What kind of noob mistake could I have possibly done? 
Any pointers are greatly appreciated :)

Cheers,
André

P.S.: Even after composer update/install ca:cl doctrine:schema:update --force doctrine:fixtures:load ... same error.

Andre Anneck

unread,
Apr 3, 2014, 7:29:05 AM4/3/14
to syliu...@googlegroups.com
Update:  When I start fresh using

#> composer create-project -s dev sylius/sylius
#> cd sylius
#> app/console sylius:install

The DB Schema and Fixtures work without errors. 
This is a workaround... but rather arkward to work with.
Reply all
Reply to author
Forward
0 new messages