Bagisto Forum

    Bagisto

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups

    Add new category throw error

    Bug Report
    4
    4
    391
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • M
      Megalight last edited by Megalight

      SQLSTATE[42000]: Syntax error or access violation: 1305 FUNCTION megaligh_admin.get_url_path_of_category does not exist (SQL: update categories set image = ?, categories.updated_at = 2021-02-08 14:15:11 where id = 97)

      mysql 8.0.22 charset is utf8mb4_unicode_ci,.

      I change charset to utf8_unicode_ci, but get this error

      1 Reply Last reply Reply Quote 0
      • V
        Vaishali Agarwal last edited by

        Hi @Megalight
        please follow the solution added here
        https://github.com/bagisto/bagisto/issues/4175
        https://github.com/bagisto/bagisto/issues/2562

        1 Reply Last reply Reply Quote 0
        • K
          ket-c last edited by

          change all collation of table and its fields of categories , category_filterable_attributes and category_translations to utf8_general_ci

          because all the collation of the three tables are not the same that is why you get that error

          1 Reply Last reply Reply Quote 0
          • S
            satty last edited by

            Try this one.
            Note:- Always take DB backup before changing in DB and making changes in setting/config or other in admin panel.

            Check function present in DB or Not 54f65fef-a427-409b-8a62-487cfd9eed3d-image.png
            OR

            show create FUNCTION get_url_path_of_category;
            

            If not, execute sql manually .

            *Actually it is present in DB when we export DB,but don't know why not executed during migration.

            Then change collation for all tables and columns
            90f2ac2d-dd5c-4b35-924e-2361449813cd-image.png

            Its work for me.
            Hope its works for others.

            1 Reply Last reply Reply Quote 0
            • First post
              Last post