What Do You Need In The Xf2 Xengallery Version? Vote for your choices here: http://www.sonnb.com/threads/what-do-you-need-in-the-xf2-xengallery-version.1539/

Fixed Import From Xfmg 1.0.0 Stop With An Error

Discussion in 'Bug Reports' started by bt012ss, Dec 8, 2014.

  1. bt012ss

    bt012ss Authorized Member Authorized

    Hi sonnb,

    in my testboard i try an import of XFMG into 2.1.7 and at step 3, "Import albums" i will get this error.

    Can you check it please, thanks :)

    Code:
    ErrorException: Undefined index: album_privacy - library/sonnb/XenGallery/Importer/XenMediaGallery.php:272
    Generiert durch: Master, Heute um 07:05 Uhr
    Stapelverfolgung
    
    #0 /home/www/doc/26278/dcp262780003/www/xenforo/library/sonnb/XenGallery/Importer/XenMediaGallery.php(272): XenForo_Application::handlePhpError(8, 'Undefined index...', '/home/www/doc/2...', 272, Array)
    #1 /home/www/doc/26278/dcp262780003/www/xenforo/library/XenForo/Importer/Abstract.php(97): sonnb_XenGallery_Importer_XenMediaGallery->stepAlbums(0, Array)
    #2 /home/www/doc/26278/dcp262780003/www/xenforo/library/XenForo/ControllerAdmin/Import.php(187): XenForo_Importer_Abstract->runStep(Object(sonnb_XenGallery_XenForo_ControllerAdmin_Import), Object(XenForo_ImportSession), 'albums', 0, Array)
    #3 /home/www/doc/26278/dcp262780003/www/xenforo/library/XenForo/ControllerAdmin/Import.php(135): XenForo_ControllerAdmin_Import->_runStep(Object(sonnb_XenGallery_Importer_XenMediaGallery), Object(XenForo_ImportSession), 'albums', 0, Array)
    #4 /home/www/doc/26278/dcp262780003/www/xenforo/library/XenForo/FrontController.php(347): XenForo_ControllerAdmin_Import->actionImport()
    #5 /home/www/doc/26278/dcp262780003/www/xenforo/library/XenForo/FrontController.php(134): XenForo_FrontController->dispatch(Object(XenForo_RouteMatch))
    #6 /home/www/doc/26278/dcp262780003/www/xenforo/admin.php(13): XenForo_FrontController->run()
    #7 {main}
    
    Benötigter Status
    
    array(3) {
      ["url"] => string(50) "http://xxxxx/xenforo/admin.php?import/import"
      ["_GET"] => array(1) {
        ["import/import"] => string(0) ""
      }
      ["_POST"] => array(1) {
        ["_xfToken"] => string(8) "********"
      }
    }
    
     
  2. sonnb

    sonnb Administrator Staff Member

    Hello,

    I confirmed that they have changed the structure. Give me some time to update to the new structure. I will upload updated file here for you.
     
  3. sonnb

    sonnb Administrator Staff Member

    Please try this file.
     

    Attached Files:

  4. bt012ss

    bt012ss Authorized Member Authorized

    I have to copy it into -> ???
     
  5. bt012ss

    bt012ss Authorized Member Authorized

    Stop, i´ve found it.
     
    sonnb likes this.
  6. bt012ss

    bt012ss Authorized Member Authorized

    Now i get this error

    Code:
    Server Error
    
    Undefined index: user_id
    
        XenForo_Application::handlePhpError() in sonnb/XenGallery/Importer/XenMediaGallery.php at line 302
        sonnb_XenGallery_Importer_XenMediaGallery->stepAlbums() in XenForo/Importer/Abstract.php at line 97
        XenForo_Importer_Abstract->runStep() in XenForo/ControllerAdmin/Import.php at line 187
        XenForo_ControllerAdmin_Import->_runStep() in XenForo/ControllerAdmin/Import.php at line 135
        XenForo_ControllerAdmin_Import->actionImport() in XenForo/FrontController.php at line 347
        XenForo_FrontController->dispatch() in XenForo/FrontController.php at line 134
        XenForo_FrontController->run() in /home/www/doc/26278/dcp262780003/www/xenforo/admin.php at line 13
    
     
  7. sonnb

    sonnb Administrator Staff Member

    Sorry for miss that. They changed it too. Please get this one.
     

    Attached Files:

    bt012ss likes this.
  8. bt012ss

    bt012ss Authorized Member Authorized

    Thanks,

    but at the step "Import Medias" i get a standard server error.
    And now, i have to stop. I have a date with my dog :)

    Code:
    Internal Server Error
    
    The server encountered an internal error or misconfiguration and was unable to complete your request.
     
  9. sonnb

    sonnb Administrator Staff Member

    Ok. Let me try at my own first. Will get back to you later.
     
  10. sonnb

    sonnb Administrator Staff Member

    Hello,

    I have just tested the importer. It works normally. You should check the detail log in cpanel to see the actual error messages. I assume it could be related to memory_limit in php.ini
     
  11. bt012ss

    bt012ss Authorized Member Authorized

    I think it´s enough :(

    sonnb.JPG
     
    sonnb likes this.
  12. antonio

    antonio Authorized Member Authorized

    Hi @bt012ss
    i had the same error and in my site i solved switching ( before importing operation) from Imagick to GD libraries in Xenforo Admin panel option. After import i set Imagick .
     
    bt012ss and sonnb like this.
  13. bt012ss

    bt012ss Authorized Member Authorized

    Yes, that´s a good idea. :)
    I try it and now i get this error by the step "Import Fields"
    I know that i have something to do in the DB, but i don´t know what :(


    Code:
    Mysqli statement execute error : Duplicate entry 'caption' for key 'PRIMARY'
    
        Zend_Db_Statement_Mysqli->_execute() in Zend/Db/Statement.php at line 297
        Zend_Db_Statement->execute() in Zend/Db/Adapter/Abstract.php at line 479
        Zend_Db_Adapter_Abstract->query() in Zend/Db/Adapter/Abstract.php at line 574
        Zend_Db_Adapter_Abstract->insert() in XenForo/DataWriter.php at line 1624
        XenForo_DataWriter->_insert() in XenForo/DataWriter.php at line 1613
        XenForo_DataWriter->_save() in XenForo/DataWriter.php at line 1405
        XenForo_DataWriter->save() in sonnb/XenGallery/Model/Import.php at line 108
        sonnb_XenGallery_Model_Import->importXenGallery() in sonnb/XenGallery/Model/Import.php at line 73
        sonnb_XenGallery_Model_Import->importXenGalleryField() in sonnb/XenGallery/Importer/XenMediaGallery.php at line 915
        sonnb_XenGallery_Importer_XenMediaGallery->stepFields() in XenForo/Importer/Abstract.php at line 97
        XenForo_Importer_Abstract->runStep() in XenForo/ControllerAdmin/Import.php at line 187
        XenForo_ControllerAdmin_Import->_runStep() in XenForo/ControllerAdmin/Import.php at line 135
        XenForo_ControllerAdmin_Import->actionImport() in XenForo/FrontController.php at line 347
        XenForo_FrontController->dispatch() in XenForo/FrontController.php at line 134
        XenForo_FrontController->run() in /home/www/doc/26278/dcp262780003/gsx/www/xenforo/admin.php at line 13
    
     
  14. sonnb

    sonnb Administrator Staff Member

    Because you have imported it once or you have other fields named caption. Please remove old custom field named 'Caption' (or any imported) in XenGallery before continue.
     
    bt012ss likes this.
  15. bt012ss

    bt012ss Authorized Member Authorized

    Oh Man, the life is so easy ..............thanks :)
    Of course, it was already imported :D

    @antonio thank you too, i think the change to GD was the right way, i´m importing now the images and it looks very well :)
     
    antonio likes this.
  16. sonnb

    sonnb Administrator Staff Member

    Yep, @antonio rocks.
     
    antonio likes this.
  17. bt012ss

    bt012ss Authorized Member Authorized

    Yeah and all is ok, thank you guys :)
     
    sonnb likes this.
  18. antonio

    antonio Authorized Member Authorized

    Wow! :)
     
  19. bt012ss

    bt012ss Authorized Member Authorized

    Hi sonnb,

    now i try to import the xfmg in my lifeboard (XG 2.1.9) and i get this error after the klick on "import albums"

    Code:
    Server Error
    
    Undefined index: username
    
        XenForo_Application::handlePhpError() in sonnb/XenGallery/Importer/XenMediaGallery.php at line 284
        sonnb_XenGallery_Importer_XenMediaGallery->stepAlbums() in XenForo/Importer/Abstract.php at line 97
        XenForo_Importer_Abstract->runStep() in XenForo/ControllerAdmin/Import.php at line 187
        XenForo_ControllerAdmin_Import->_runStep() in XenForo/ControllerAdmin/Import.php at line 135
        XenForo_ControllerAdmin_Import->actionImport() in XenForo/FrontController.php at line 347
        XenForo_FrontController->dispatch() in XenForo/FrontController.php at line 134
        XenForo_FrontController->run() in /home/www/doc/26278/dcp262780003/gsx/www/forum/admin.php at line 13
    
    Before, i switched from Imagick to GD.
    Any idea :confused:
     
    Last edited: Dec 16, 2014
  20. sonnb

    sonnb Administrator Staff Member

    It is not your fault but mine. They also changed the sharing values. I will update and send you.
     

Share This Page