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/

Help Division By Zero Error And Unable Upload Photo

Discussion in 'XenGallery' started by antonio, Jun 29, 2014.

  1. antonio

    antonio Authorized Member Authorized

    Hi @sonnb,
    my users have this error, randomly, and they are unable upload photos wheh this error shows.

    Code:
    Info Errore
    ErrorException: Division by zero - library/sonnb/XenGallery/Model/Photo.php:421
    Generato Da: [URL='http://www.macroforum.org/admin.php?users/gioves27.5538/edit']gioves27[/URL], 28 minuti fa
    Analisi dello Stack
    #0 /home/emtvqmnh/public_html/library/sonnb/XenGallery/Model/Photo.php(421): XenForo_Application::handlePhpError(2, 'Division by zer...', '/home/emtvqmnh/...', 421, Array)
    #1 /home/emtvqmnh/public_html/library/sonnb/XenGallery/Model/Photo.php(397): sonnb_XenGallery_Model_Photo->_getCoordinatePart('0/0')
    #2 /home/emtvqmnh/public_html/library/sonnb/XenGallery/Model/Photo.php(374): sonnb_XenGallery_Model_Photo->getCoordinateFromExif(Array, NULL)
    #3 /home/emtvqmnh/public_html/library/sonnb/XenGallery/Model/PhotoData.php(464): sonnb_XenGallery_Model_Photo->getPhotoExif(Array, '/tmp/php4G1yOr')
    #4 /home/emtvqmnh/public_html/library/sonnb/XenGallery/ControllerPublic/XenGallery/Photo.php(420): sonnb_XenGallery_Model_PhotoData->insertUploadedPhotoData(Object(sonnb_XenGallery_Model_PhotoUpload), Array)
    #5 /home/emtvqmnh/public_html/library/XenForo/FrontController.php(347): sonnb_XenGallery_ControllerPublic_XenGallery_Photo->actionDoUpload()
    #6 /home/emtvqmnh/public_html/library/XenForo/FrontController.php(134): XenForo_FrontController->dispatch(Object(XenForo_RouteMatch))
    #7 /home/emtvqmnh/public_html/index.php(13): XenForo_FrontController->run()
    #8 {main}
    Stato Richiesta
    array(3) {
    ["url"] => string(120) "http://www.macroforum.org/gallerie-fotografiche/photos/do-upload.json?hash=5667fdc3a018a8c51a99d7814f18fd57&album_id=463"
    ["_GET"] => array(2) {
    ["hash"] => string(32) "5667fdc3a018a8c51a99d7814f18fd57"
    ["album_id"] => string(3) "463"
    }
    ["_POST"] => array(6) {
    ["Filename"] => string(13) "prova rid.JPG"
    ["_xfNoRedirect"] => string(1) "1"
    ["_xfSessionId"] => string(32) "cce8afe5465551572919bd864ab623be"
    ["_xfToken"] => string(8) "********"
    ["_xfResponseType"] => string(4) "json"
    ["Upload"] => string(12) "Submit Query"
    }
    }
    
    
    
    Thanks
    Antonio
     
  2. sonnb

    sonnb Administrator Staff Member

    Hello Antonio,

    Are you on latest version yet? This issue has been addressed in 1.1.5 or 1.1.6 if I remember exactly.
     
  3. antonio

    antonio Authorized Member Authorized

    Hello @sonnb
    i'm on 2.1.3. version and if i upgrade to latest version and there is some problem with Thread mapping custom addon i can't contact you because you are busy now ;)
    Antonio
     
  4. sonnb

    sonnb Administrator Staff Member

    Could you send me the problems you get?
     
  5. antonio

    antonio Authorized Member Authorized

    @sonnb
    for now i have not errors with Thread mapping addon and XenGallery 2.1.3, i wrote incorrectly...
    Correct: "if there will be some error with Thread Mapping afetr upgrade to latest version...." :)
    I'll update to 2.1.6 fix A when you will not be very busy :)
    Now i have only the problem with Division by zero error
     
  6. sonnb

    sonnb Administrator Staff Member

    You should upgrade to get rid of that issue. If there any error, just tell me.
     
    antonio likes this.

Share This Page