Trying to get property 'default_locale' of non-object



  • sudo php artisan bagisto:install
    Great! your environment configuration file already exists.
    Application key set successfully.
    Loading configs...
    Configuration loaded..
    Step: Migrating all tables into database...
    Dropped all tables successfully.
    Migration table created successfully.
    Migrating: 2014_10_12_000000_create_users_table
    Migrated:  2014_10_12_000000_create_users_table (57.47ms)
    Migrating: 2014_10_12_100000_create_admin_password_resets_table
    Migrated:  2014_10_12_100000_create_admin_password_resets_table (47.49ms)
    Migrating: 2014_10_12_100000_create_password_resets_table
    Migrated:  2014_10_12_100000_create_password_resets_table (45.16ms)
    Migrating: 2018_06_12_111907_create_admins_table
    Migrated:  2018_06_12_111907_create_admins_table (44.17ms)
    Migrating: 2018_06_13_055341_create_roles_table
    Migrated:  2018_06_13_055341_create_roles_table (25.47ms)
    Migrating: 2018_07_05_130148_create_attributes_table
    Migrated:  2018_07_05_130148_create_attributes_table (57.81ms)
    Migrating: 2018_07_05_132854_create_attribute_translations_table
    Migrated:  2018_07_05_132854_create_attribute_translations_table (104.27ms)
    Migrating: 2018_07_05_135150_create_attribute_families_table
    Migrated:  2018_07_05_135150_create_attribute_families_table (28.84ms)
    Migrating: 2018_07_05_135152_create_attribute_groups_table
    Migrated:  2018_07_05_135152_create_attribute_groups_table (251.06ms)
    Migrating: 2018_07_05_140832_create_attribute_options_table
    Migrated:  2018_07_05_140832_create_attribute_options_table (77.10ms)
    Migrating: 2018_07_05_140856_create_attribute_option_translations_table
    Migrated:  2018_07_05_140856_create_attribute_option_translations_table (93.99ms)
    Migrating: 2018_07_05_142820_create_categories_table
    Migrated:  2018_07_05_142820_create_categories_table (41.69ms)
    Migrating: 2018_07_10_055143_create_locales_table
    Migrated:  2018_07_10_055143_create_locales_table (39.67ms)
    Migrating: 2018_07_20_054426_create_countries_table
    Migrated:  2018_07_20_054426_create_countries_table (21.79ms)
    Migrating: 2018_07_20_054502_create_currencies_table
    Migrated:  2018_07_20_054502_create_currencies_table (23.80ms)
    Migrating: 2018_07_20_054542_create_currency_exchange_rates_table
    Migrated:  2018_07_20_054542_create_currency_exchange_rates_table (91.80ms)
    Migrating: 2018_07_20_064849_create_channels_table
    Migrated:  2018_07_20_064849_create_channels_table (465.04ms)
    Migrating: 2018_07_21_142836_create_category_translations_table
    Migrated:  2018_07_21_142836_create_category_translations_table (100.26ms)
    Migrating: 2018_07_23_110040_create_inventory_sources_table
    Migrated:  2018_07_23_110040_create_inventory_sources_table (52.74ms)
    Migrating: 2018_07_24_082635_create_customer_groups_table
    Migrated:  2018_07_24_082635_create_customer_groups_table (28.80ms)
    Migrating: 2018_07_24_082930_create_customers_table
    Migrated:  2018_07_24_082930_create_customers_table (164.07ms)
    Migrating: 2018_07_24_083025_create_customer_addresses_table
    Migrated:  2018_07_24_083025_create_customer_addresses_table (70.94ms)
    Migrating: 2018_07_27_065727_create_products_table
    Migrated:  2018_07_27_065727_create_products_table (824.43ms)
    Migrating: 2018_07_27_070011_create_product_attribute_values_table
    Migrated:  2018_07_27_070011_create_product_attribute_values_table (161.21ms)
    Migrating: 2018_07_27_092623_create_product_reviews_table
    Migrated:  2018_07_27_092623_create_product_reviews_table (140.46ms)
    Migrating: 2018_07_27_113941_create_product_images_table
    Migrated:  2018_07_27_113941_create_product_images_table (85.01ms)
    Migrating: 2018_07_27_113956_create_product_inventories_table
    Migrated:  2018_07_27_113956_create_product_inventories_table (141.60ms)
    Migrating: 2018_08_03_114203_create_sliders_table
    Migrated:  2018_08_03_114203_create_sliders_table (76.27ms)
    Migrating: 2018_08_30_064755_create_tax_categories_table
    Migrated:  2018_08_30_064755_create_tax_categories_table (122.55ms)
    Migrating: 2018_08_30_065042_create_tax_rates_table
    Migrated:  2018_08_30_065042_create_tax_rates_table (46.21ms)
    Migrating: 2018_08_30_065840_create_tax_mappings_table
    Migrated:  2018_08_30_065840_create_tax_mappings_table (156.77ms)
    Migrating: 2018_09_05_150444_create_cart_table
    Migrated:  2018_09_05_150444_create_cart_table (162.70ms)
    Migrating: 2018_09_05_150915_create_cart_items_table
    Migrated:  2018_09_05_150915_create_cart_items_table (340.27ms)
    Migrating: 2018_09_11_064045_customer_password_resets
    Migrated:  2018_09_11_064045_customer_password_resets (43.91ms)
    Migrating: 2018_09_19_092845_create_cart_address
    Migrated:  2018_09_19_092845_create_cart_address (136.63ms)
    Migrating: 2018_09_19_093453_create_cart_payment
    Migrated:  2018_09_19_093453_create_cart_payment (69.91ms)
    Migrating: 2018_09_19_093508_create_cart_shipping_rates_table
    Migrated:  2018_09_19_093508_create_cart_shipping_rates_table (84.92ms)
    Migrating: 2018_09_20_060658_create_core_config_table
    Migrated:  2018_09_20_060658_create_core_config_table (64.22ms)
    Migrating: 2018_09_27_113154_create_orders_table
    Migrated:  2018_09_27_113154_create_orders_table (163.08ms)
    Migrating: 2018_09_27_113207_create_order_items_table
    Migrated:  2018_09_27_113207_create_order_items_table (169.55ms)
    Migrating: 2018_09_27_113405_create_order_address_table
    Migrated:  2018_09_27_113405_create_order_address_table (156.87ms)
    Migrating: 2018_09_27_115022_create_shipments_table
    Migrated:  2018_09_27_115022_create_shipments_table (142.24ms)
    Migrating: 2018_09_27_115029_create_shipment_items_table
    Migrated:  2018_09_27_115029_create_shipment_items_table (81.27ms)
    Migrating: 2018_09_27_115135_create_invoices_table
    Migrated:  2018_09_27_115135_create_invoices_table (158.16ms)
    Migrating: 2018_09_27_115144_create_invoice_items_table
    Migrated:  2018_09_27_115144_create_invoice_items_table (152.54ms)
    Migrating: 2018_10_01_095504_create_order_payment_table
    Migrated:  2018_10_01_095504_create_order_payment_table (71.82ms)
    Migrating: 2018_10_03_025230_create_wishlist_table
    Migrated:  2018_10_03_025230_create_wishlist_table (203.18ms)
    Migrating: 2018_10_12_101803_create_country_translations_table
    Migrated:  2018_10_12_101803_create_country_translations_table (71.05ms)
    Migrating: 2018_10_12_101913_create_country_states_table
    Migrated:  2018_10_12_101913_create_country_states_table (141.93ms)
    Migrating: 2018_10_12_101923_create_country_state_translations_table
    Migrated:  2018_10_12_101923_create_country_state_translations_table (84.03ms)
    Migrating: 2018_11_15_153257_alter_order_table
    Migrated:  2018_11_15_153257_alter_order_table (46.65ms)
    Migrating: 2018_11_15_163729_alter_invoice_table
    Migrated:  2018_11_15_163729_alter_invoice_table (24.31ms)
    Migrating: 2018_11_16_173504_create_subscribers_list_table
    Migrated:  2018_11_16_173504_create_subscribers_list_table (85.38ms)
    Migrating: 2018_11_17_165758_add_is_verified_column_in_customers_table
    Migrated:  2018_11_17_165758_add_is_verified_column_in_customers_table (111.61ms)
    Migrating: 2018_11_21_144411_create_cart_item_inventories_table
    Migrated:  2018_11_21_144411_create_cart_item_inventories_table (28.11ms)
    Migrating: 2018_11_26_110500_change_gender_column_in_customers_table
    Migrated:  2018_11_26_110500_change_gender_column_in_customers_table (76.32ms)
    Migrating: 2018_11_27_174449_change_content_column_in_sliders_table
    Migrated:  2018_11_27_174449_change_content_column_in_sliders_table (83.59ms)
    Migrating: 2018_12_05_132625_drop_foreign_key_core_config_table
    Migrated:  2018_12_05_132625_drop_foreign_key_core_config_table (49.21ms)
    Migrating: 2018_12_05_132629_alter_core_config_table
    Migrated:  2018_12_05_132629_alter_core_config_table (77.21ms)
    Migrating: 2018_12_06_185202_create_product_flat_table
    Migrated:  2018_12_06_185202_create_product_flat_table (79.15ms)
    Migrating: 2018_12_21_101307_alter_channels_table
    Migrated:  2018_12_21_101307_alter_channels_table (261.13ms)
    Migrating: 2018_12_24_123812_create_channel_inventory_sources_table
    Migrated:  2018_12_24_123812_create_channel_inventory_sources_table (176.48ms)
    Migrating: 2018_12_24_184402_alter_shipments_table
    Migrated:  2018_12_24_184402_alter_shipments_table (96.13ms)
    Migrating: 2018_12_26_165327_create_product_ordered_inventories_table
    Migrated:  2018_12_26_165327_create_product_ordered_inventories_table (163.75ms)
    Migrating: 2018_12_31_161114_alter_channels_category_table
    Migrated:  2018_12_31_161114_alter_channels_category_table (132.97ms)
    Migrating: 2019_01_11_122452_add_vendor_id_column_in_product_inventories_table
    Migrated:  2019_01_11_122452_add_vendor_id_column_in_product_inventories_table (47.49ms)
    Migrating: 2019_01_25_124522_add_updated_at_column_in_product_flat_table
    Migrated:  2019_01_25_124522_add_updated_at_column_in_product_flat_table (196.73ms)
    Migrating: 2019_01_29_123053_add_min_price_and_max_price_column_in_product_flat_table
    Migrated:  2019_01_29_123053_add_min_price_and_max_price_column_in_product_flat_table (103.49ms)
    Migrating: 2019_01_31_164117_update_value_column_type_to_text_in_core_config_table
    Migrated:  2019_01_31_164117_update_value_column_type_to_text_in_core_config_table (65.42ms)
    Migrating: 2019_02_21_145238_alter_product_reviews_table
    Migrated:  2019_02_21_145238_alter_product_reviews_table (34.04ms)
    Migrating: 2019_02_21_152709_add_swatch_type_column_in_attributes_table
    Migrated:  2019_02_21_152709_add_swatch_type_column_in_attributes_table (29.99ms)
    Migrating: 2019_02_21_153035_alter_customer_id_in_product_reviews_table
    Migrated:  2019_02_21_153035_alter_customer_id_in_product_reviews_table (68.22ms)
    Migrating: 2019_02_21_153851_add_swatch_value_columns_in_attribute_options_table
    Migrated:  2019_02_21_153851_add_swatch_value_columns_in_attribute_options_table (22.22ms)
    Migrating: 2019_03_15_123337_add_display_mode_column_in_categories_table
    Migrated:  2019_03_15_123337_add_display_mode_column_in_categories_table (25.67ms)
    Migrating: 2019_03_28_103658_add_notes_column_in_customers_table
    Migrated:  2019_03_28_103658_add_notes_column_in_customers_table (45.04ms)
    Migrating: 2019_04_24_155820_alter_product_flat_table
    Migrated:  2019_04_24_155820_alter_product_flat_table (71.19ms)
    Migrating: 2019_05_13_024320_remove_tables
    Migrated:  2019_05_13_024320_remove_tables (33.52ms)
    Migrating: 2019_05_13_024321_create_cart_rules_table
    Migrated:  2019_05_13_024321_create_cart_rules_table (30.81ms)
    Migrating: 2019_05_13_024322_create_cart_rule_channels_table
    Migrated:  2019_05_13_024322_create_cart_rule_channels_table (174.61ms)
    Migrating: 2019_05_13_024323_create_cart_rule_customer_groups_table
    Migrated:  2019_05_13_024323_create_cart_rule_customer_groups_table (192.13ms)
    Migrating: 2019_05_13_024324_create_cart_rule_translations_table
    Migrated:  2019_05_13_024324_create_cart_rule_translations_table (108.86ms)
    Migrating: 2019_05_13_024325_create_cart_rule_customers_table
    Migrated:  2019_05_13_024325_create_cart_rule_customers_table (143.64ms)
    Migrating: 2019_05_13_024326_create_cart_rule_coupons_table
    Migrated:  2019_05_13_024326_create_cart_rule_coupons_table (90.57ms)
    Migrating: 2019_05_13_024327_create_cart_rule_coupon_usage_table
    Migrated:  2019_05_13_024327_create_cart_rule_coupon_usage_table (147.72ms)
    Migrating: 2019_05_22_165833_update_zipcode_column_type_to_varchar_in_cart_address_table
    Migrated:  2019_05_22_165833_update_zipcode_column_type_to_varchar_in_cart_address_table (78.97ms)
    Migrating: 2019_05_23_113407_add_remaining_column_in_product_flat_table
    Migrated:  2019_05_23_113407_add_remaining_column_in_product_flat_table (46.11ms)
    Migrating: 2019_05_23_155520_add_discount_columns_in_invoice_items_table
    Migrated:  2019_05_23_155520_add_discount_columns_in_invoice_items_table (27.97ms)
    Migrating: 2019_05_23_184029_rename_discount_columns_in_cart_table
    Migrated:  2019_05_23_184029_rename_discount_columns_in_cart_table (108.40ms)
    Migrating: 2019_06_04_114009_add_phone_column_in_customers_table
    Migrated:  2019_06_04_114009_add_phone_column_in_customers_table (105.62ms)
    Migrating: 2019_06_06_195905_update_custom_price_to_nullable_in_cart_items
    Migrated:  2019_06_06_195905_update_custom_price_to_nullable_in_cart_items (125.52ms)
    Migrating: 2019_06_15_183412_add_code_column_in_customer_groups_table
    Migrated:  2019_06_15_183412_add_code_column_in_customer_groups_table (46.65ms)
    Migrating: 2019_06_17_180258_create_product_downloadable_samples_table
    Migrated:  2019_06_17_180258_create_product_downloadable_samples_table (73.77ms)
    Migrating: 2019_06_17_180314_create_product_downloadable_sample_translations_table
    Migrated:  2019_06_17_180314_create_product_downloadable_sample_translations_table (82.60ms)
    Migrating: 2019_06_17_180325_create_product_downloadable_links_table
    Migrated:  2019_06_17_180325_create_product_downloadable_links_table (92.99ms)
    Migrating: 2019_06_17_180346_create_product_downloadable_link_translations_table
    Migrated:  2019_06_17_180346_create_product_downloadable_link_translations_table (87.78ms)
    Migrating: 2019_06_19_162817_remove_unique_in_phone_column_in_customers_table
    Migrated:  2019_06_19_162817_remove_unique_in_phone_column_in_customers_table (39.74ms)
    Migrating: 2019_06_21_130512_update_weight_column_deafult_value_in_cart_items_table
    Migrated:  2019_06_21_130512_update_weight_column_deafult_value_in_cart_items_table (28.43ms)
    Migrating: 2019_06_21_202249_create_downloadable_link_purchased_table
    Migrated:  2019_06_21_202249_create_downloadable_link_purchased_table (237.62ms)
    Migrating: 2019_07_02_180307_create_booking_products_table
    Migrated:  2019_07_02_180307_create_booking_products_table (79.21ms)
    Migrating: 2019_07_05_114157_add_symbol_column_in_currencies_table
    Migrated:  2019_07_05_114157_add_symbol_column_in_currencies_table (23.99ms)
    Migrating: 2019_07_05_154415_create_booking_product_default_slots_table
    Migrated:  2019_07_05_154415_create_booking_product_default_slots_table (75.64ms)
    Migrating: 2019_07_05_154429_create_booking_product_appointment_slots_table
    Migrated:  2019_07_05_154429_create_booking_product_appointment_slots_table (85.17ms)
    Migrating: 2019_07_05_154440_create_booking_product_event_tickets_table
    Migrated:  2019_07_05_154440_create_booking_product_event_tickets_table (82.50ms)
    Migrating: 2019_07_05_154451_create_booking_product_rental_slots_table
    Migrated:  2019_07_05_154451_create_booking_product_rental_slots_table (84.52ms)
    Migrating: 2019_07_05_154502_create_booking_product_table_slots_table
    Migrated:  2019_07_05_154502_create_booking_product_table_slots_table (86.52ms)
    Migrating: 2019_07_11_151210_add_locale_id_in_category_translations
    Migrated:  2019_07_11_151210_add_locale_id_in_category_translations (86.54ms)
    Migrating: 2019_07_23_033128_alter_locales_table
    Migrated:  2019_07_23_033128_alter_locales_table (24.01ms)
    Migrating: 2019_07_23_174708_create_velocity_contents_table
    Migrated:  2019_07_23_174708_create_velocity_contents_table (25.46ms)
    Migrating: 2019_07_23_175212_create_velocity_contents_translations_table
    Migrated:  2019_07_23_175212_create_velocity_contents_translations_table (86.76ms)
    Migrating: 2019_07_29_142734_add_use_in_flat_column_in_attributes_table
    Migrated:  2019_07_29_142734_add_use_in_flat_column_in_attributes_table (31.57ms)
    Migrating: 2019_07_30_153530_create_cms_pages_table
    Migrated:  2019_07_30_153530_create_cms_pages_table (148.43ms)
    Migrating: 2019_07_31_143339_create_category_filterable_attributes_table
    Migrated:  2019_07_31_143339_create_category_filterable_attributes_table (138.53ms)
    Migrating: 2019_08_02_105320_create_product_grouped_products_table
    Migrated:  2019_08_02_105320_create_product_grouped_products_table (158.36ms)
    Migrating: 2019_08_12_184925_add_additional_cloumn_in_wishlist_table
    Migrated:  2019_08_12_184925_add_additional_cloumn_in_wishlist_table (25.98ms)
    Migrating: 2019_08_20_170510_create_product_bundle_options_table
    Migrated:  2019_08_20_170510_create_product_bundle_options_table (78.86ms)
    Migrating: 2019_08_20_170520_create_product_bundle_option_translations_table
    Migrated:  2019_08_20_170520_create_product_bundle_option_translations_table (99.14ms)
    Migrating: 2019_08_20_170528_create_product_bundle_option_products_table
    Migrated:  2019_08_20_170528_create_product_bundle_option_products_table (140.70ms)
    Migrating: 2019_08_21_123707_add_seo_column_in_channels_table
    Migrated:  2019_08_21_123707_add_seo_column_in_channels_table (52.99ms)
    Migrating: 2019_09_11_184511_create_refunds_table
    Migrated:  2019_09_11_184511_create_refunds_table (99.76ms)
    Migrating: 2019_09_11_184519_create_refund_items_table
    Migrated:  2019_09_11_184519_create_refund_items_table (222.81ms)
    Migrating: 2019_09_26_163950_remove_channel_id_from_customers_table
    Migrated:  2019_09_26_163950_remove_channel_id_from_customers_table (110.26ms)
    Migrating: 2019_10_03_105451_change_rate_column_in_currency_exchange_rates_table
    Migrated:  2019_10_03_105451_change_rate_column_in_currency_exchange_rates_table (57.93ms)
    Migrating: 2019_10_21_105136_order_brands
    Migrated:  2019_10_21_105136_order_brands (298.47ms)
    Migrating: 2019_10_24_173358_change_postcode_column_type_in_order_address_table
    Migrated:  2019_10_24_173358_change_postcode_column_type_in_order_address_table (84.07ms)
    Migrating: 2019_10_24_173437_change_postcode_column_type_in_cart_address_table
    Migrated:  2019_10_24_173437_change_postcode_column_type_in_cart_address_table (24.25ms)
    Migrating: 2019_10_24_173507_change_postcode_column_type_in_customer_addresses_table
    Migrated:  2019_10_24_173507_change_postcode_column_type_in_customer_addresses_table (65.33ms)
    Migrating: 2019_11_21_194541_add_column_url_path_to_category_translations
    Migrated:  2019_11_21_194541_add_column_url_path_to_category_translations (22.46ms)
    Migrating: 2019_11_21_194608_add_stored_function_to_get_url_path_of_category
    Migrated:  2019_11_21_194608_add_stored_function_to_get_url_path_of_category (10.42ms)
    Migrating: 2019_11_21_194627_add_trigger_to_category_translations
    
    In Connection.php line 712:
    
      SQLSTATE[HY000]: General error: 1419 You do not have the SUPER privilege and binary logging is enabled (you *might* want to use the less safe log_bin_trust_function_creators variable)
      (SQL:             CREATE TRIGGER trig_category_translations_insert
                  BEFORE INSERT ON category_translations
                  FOR EACH ROW
                  BEGIN
                                  DECLARE parentUrlPath varchar(255);
                  DECLARE urlPath varchar(255);
    
                  -- Category with id 1 is root by default
                  IF NEW.category_id <> 1
                  THEN
    
                      SELECT
                          GROUP_CONCAT(parent_translations.slug SEPARATOR '/') INTO parentUrlPath
                      FROM
                          categories AS node,
                          categories AS parent
                          JOIN category_translations AS parent_translations ON parent.id = parent_translations.category_id
                      WHERE
                          node._lft >= parent._lft
                          AND node._rgt <= parent._rgt
                          AND node.id = (SELECT parent_id FROM categories WHERE id = NEW.category_id)
                          AND parent.id <> 1
                          AND parent_translations.locale = NEW.locale
                      GROUP BY
                          node.id;
    
                      IF parentUrlPath IS NULL
                      THEN
                          SET urlPath = NEW.slug;
                      ELSE
                          SET urlPath = concat(parentUrlPath, '/', NEW.slug);
                      END IF;
    
                      SET NEW.url_path = urlPath;
    
                  END IF;
                  END;)
    
    
    In Exception.php line 18:
    
      SQLSTATE[HY000]: General error: 1419 You do not have the SUPER privilege and binary logging is enabled (you *might* want to use the less safe log_bin_trust_function_creators variable)
    
    
    In PDOConnection.php line 55:
    
      SQLSTATE[HY000]: General error: 1419 You do not have the SUPER privilege and binary logging is enabled (you *might* want to use the less safe log_bin_trust_function_creators variable)
    
    

    e11c0a23-d364-4a92-b5bd-cec074c169c5-image.png



  • Hi there,
    Please run the below command and still you are getting the same issue. then please let me know.

    php artisan db:seed

Log in to reply