Mysqli statement execute error : Duplicate entry '1' for key 'PRIMARY'

Thảo luận trong 'Style & Template Questions' bắt đầu bởi 01664597661, 7/8/15.

  1. 01664597661

    01664597661 Member

    Bài viết:
    228
    Likes :
    29
    Mysqli statement execute error : Duplicate entry '1' for key 'PRIMARY'
    1. Zend_Db_Statement_Mysqli->_execute() in Zend/Db/Statement.php at line 317
    2. Zend_Db_Statement->execute() in Zend/Db/Adapter/Abstract.php at line 479
    3. Zend_Db_Adapter_Abstract->query() in Zend/Db/Adapter/Abstract.php at line 574
    4. Zend_Db_Adapter_Abstract->insert() in XenForo/DataWriter.php at line 1624
    5. XenForo_DataWriter->_insert() in XenForo/DataWriter.php at line 1613
    6. XenForo_DataWriter->_save() in XenForo/DataWriter.php at line 1405
    7. XenForo_DataWriter->save() in XenForo/ControllerAdmin/User.php at line 511
    8. XenForo_ControllerAdmin_User->actionSave() in XenForo/FrontController.php at line 347
    9. XenForo_FrontController->dispatch() in XenForo/FrontController.php at line 134
    10. XenForo_FrontController->run() in /home/shopplus/public_html/truongan/admin.php at line 13

    Minh chia sẻ cách FIX lỗi này cho ai từng gặp giống mình
    - Đây là lỗi do mình Xóa Toàn Bộ User trong Database. Và khi đăng ký lại user thì ID bị trùng.
    - Cách FIX.
    Bạn xóa table xf_user trong phpMyadmin và tạo lại table với cấu trúc như bản gốc.
     
    Last edited: 7/8/15
    Đang tải...
comments powered by Disqus

Chia sẻ trang này

Đang tải...