EC-CUBE4をGitからインストールしようとしてトップページにアクセスするとインストール画面にリダイレクトするはずがエラーになります。

再現手順

$ git clone git@github.com:EC-CUBE/ec-cube.git .
$ git checkout 4.0.3
→トップページにアクセス→TableNotFoundExceptionエラー

そもそもインストールしてないのでテーブルがあるわけもなく・・・

解決方法

最初からトップページではなく/installにアクセスする。
あるいはコマンドを使ってインストールするほうが早いです。

エラー内容

dtb_base_infoがないというエラーです。インストール画面へリダイレクトする前にBaseInfoを読み込もうとしているのでしょうね。

(6/6) TableNotFoundException

An exception occurred while executing ‘SELECT t0.id AS id_1, t0.company_name AS company_name_2, t0.company_kana AS company_kana_3, t0.postal_code AS postal_code_4, t0.addr01 AS addr01_5, t0.addr02 AS addr02_6, t0.phone_number AS phone_number_7, t0.business_hour AS business_hour_8, t0.email01 AS email01_9, t0.email02 AS email02_10, t0.email03 AS email03_11, t0.email04 AS email04_12, t0.shop_name AS shop_name_13, t0.shop_kana AS shop_kana_14, t0.shop_name_eng AS shop_name_eng_15, t0.update_date AS update_date_16, t0.good_traded AS good_traded_17, t0.message AS message_18, t0.delivery_free_amount AS delivery_free_amount_19, t0.delivery_free_quantity AS delivery_free_quantity_20, t0.option_mypage_order_status_display AS option_mypage_order_status_display_21, t0.option_nostock_hidden AS option_nostock_hidden_22, t0.option_favorite_product AS option_favorite_product_23, t0.option_product_delivery_fee AS option_product_delivery_fee_24, t0.option_product_tax_rule AS option_product_tax_rule_25, t0.option_customer_activate AS option_customer_activate_26, t0.option_remember_me AS option_remember_me_27, t0.authentication_key AS authentication_key_28, t0.php_path AS php_path_29, t0.option_point AS option_point_30, t0.basic_point_rate AS basic_point_rate_31, t0.point_conversion_rate AS point_conversion_rate_32, t0.country_id AS country_id_33, t0.pref_id AS pref_id_34, t0.discriminator_type FROM dtb_base_info t0 WHERE t0.id = ? AND t0.discriminator_type IN (‘baseinfo’)’ with params [1]:

SQLSTATE[HY000]: General error: 1 no such table: dtb_base_info