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 Server Error When Trying To Upgrade

Discussion in 'XenGallery' started by EvilSS, May 21, 2017.

  1. EvilSS

    EvilSS Authorized Member Authorized

    HI,
    I have just moved to a server with no FFmpeg installed, as i didn't think i would need it for now.
    But after trying to upgrade the gallery to the latest version, i get this error while upgrading. My gallery now shows in option in admincp as blank white. Not sure what to do. I have tried disabling video upload, but no success.
    Thanks.
    Code:
    Server Error
    
    FFmpeg appears to be unavailable on your system.
    
        PHPVideoToolkit\ParserAbstract->__construct() in PHPVideoToolkit/Media.php at line 71
        PHPVideoToolkit\Media->__construct() in PHPVideoToolkit/Video.php at line 35
        PHPVideoToolkit\Video->__construct() in sonnb/XenGalleryVideoUpload/Model/FFMPEG.php at line 65
        sonnb_XenGalleryVideoUpload_Model_FFMPEG->_initialData() in sonnb/XenGalleryVideoUpload/Model/FFMPEG.php at line 55
        sonnb_XenGalleryVideoUpload_Model_FFMPEG->__construct() in sonnb/XenGalleryVideoUpload/sonnb/XenGallery/DataWriter/Video.php at line 53
        sonnb_XenGalleryVideoUpload_sonnb_XenGallery_DataWriter_Video->rebuildCounters() in sonnb/XenGallery/Deferred/Content.php at line 60
        sonnb_XenGallery_Deferred_Content->execute() in XenForo/Model/Deferred.php at line 295
        XenForo_Model_Deferred->runDeferred() in XenForo/Model/Deferred.php at line 429
        XenForo_Model_Deferred->_runInternal() in XenForo/Model/Deferred.php at line 374
        XenForo_Model_Deferred->run() in XenForo/ControllerAdmin/Tools.php at line 159
        XenForo_ControllerAdmin_Tools->actionRunDeferred() in XenForo/FrontController.php at line 351
        XenForo_FrontController->dispatch() in XenForo/FrontController.php at line 134
        XenForo_FrontController->run() in /home/liveforums1/public_html/forums/admin.php at line 13
    
     
  2. sonnb

    sonnb Administrator Staff Member

    You have to disabled or remove the Video Upload add-on. It is mandatory.
     
  3. EvilSS

    EvilSS Authorized Member Authorized

    Thanks, will this remove or effect the videos already uploaded? As i would like to keep my recent uploads mate please?
     
  4. sonnb

    sonnb Administrator Staff Member

    It will effect the uploaded videos. The uploaded videos no longer be processed by the addon. If you want to keep them, unfortunately, you have to enable the ffmpeg or modify the code to disable the rebuild process in the Video Upload addon.
     
    EvilSS likes this.
  5. EvilSS

    EvilSS Authorized Member Authorized

    Thanks man. If i just leave as is, that will not work either, due to the fact, any addon i try to install comes up with a similar error. I cant install any addon till i get back ffmpeg.

    Example: Im trying to install a footer addon and get this:
    Code:
    An exception occurred: FFmpeg appears to be unavailable on your system. in /home/renamed/public_html/forums/library/PHPVideoToolkit/ParserAbstract.php on line 43
    
        PHPVideoToolkit\ParserAbstract->__construct() in PHPVideoToolkit/Media.php at line 71
        PHPVideoToolkit\Media->__construct() in PHPVideoToolkit/Video.php at line 35
        PHPVideoToolkit\Video->__construct() in sonnb/XenGalleryVideoUpload/Model/FFMPEG.php at line 65
        sonnb_XenGalleryVideoUpload_Model_FFMPEG->_initialData() in sonnb/XenGalleryVideoUpload/Model/FFMPEG.php at line 55
        sonnb_XenGalleryVideoUpload_Model_FFMPEG->__construct() in sonnb/XenGalleryVideoUpload/sonnb/XenGallery/DataWriter/Video.php at line 53
        sonnb_XenGalleryVideoUpload_sonnb_XenGallery_DataWriter_Video->rebuildCounters() in sonnb/XenGallery/Deferred/Content.php at line 60
        sonnb_XenGallery_Deferred_Content->execute() in XenForo/Model/Deferred.php at line 295
        XenForo_Model_Deferred->runDeferred() in XenForo/Model/Deferred.php at line 429
        XenForo_Model_Deferred->_runInternal() in XenForo/Model/Deferred.php at line 374
        XenForo_Model_Deferred->run() in XenForo/ViewRenderer/Abstract.php at line 352
        XenForo_ViewRenderer_Abstract::hasManualDeferredToRun() in XenForo/ViewRenderer/HtmlAdmin.php at line 50
        XenForo_ViewRenderer_HtmlAdmin->renderRedirect() in XenForo/FrontController.php at line 618
        XenForo_FrontController->renderView() in XenForo/FrontController.php at line 158
        XenForo_FrontController->run() in /home/renamed/public_html/forums/admin.php at line 13
    
    Would be awesome for a temp fix. Thanks.
     
  6. sonnb

    sonnb Administrator Staff Member

    Sure. Open: library/sonnb/XenGalleryVideoUpload/sonnb/XenGallery/DataWriter/Video.php
    In the method rebuildCounters:
    PHP:
    public function rebuildCounters(array $options = array(), array $contentData null)
        {
            
    /** @var sonnb_XenGallery_Model_ContentData $model */
            
    $model XenForo_Model::create('sonnb_XenGallery_Model_ContentData');
            
    $xenOptions XenForo_Application::getOptions();
    Change to:
    PHP:
    public function rebuildCounters(array $options = array(), array $contentData null)
        {
            return;
            
    /** @var sonnb_XenGallery_Model_ContentData $model */
            
    $model XenForo_Model::create('sonnb_XenGallery_Model_ContentData');
            
    $xenOptions XenForo_Application::getOptions();
     
    EvilSS likes this.
  7. EvilSS

    EvilSS Authorized Member Authorized

    Thanks mate, that worked perfect for other addons.
    But i cannot update the gallery to the lastest version.
    I get this trying to upgrade.
    Code:
    Error
    The callback class 'sonnb_XenGallery_Option_Check' for option 'sonnbXG_redirect_dbtech' is not valid.
    
    I have 2 gallerys, 1 seems to be saying License Expires: [Expiration Pending], but i paid it already.
     
    Last edited: May 22, 2017
  8. sonnb

    sonnb Administrator Staff Member

    A new fix version has just been uploaded to fix that.
     
    EvilSS likes this.
  9. sonnb

    sonnb Administrator Staff Member

    I believe you paid for new license instead of renew the expired one. Please click on this link http://www.sonnb.com/purchases/license and click on expired license -> Add renewal to card. After that I will refund your previous accidentally payment.
     
  10. EvilSS

    EvilSS Authorized Member Authorized

    I now have 2 websites mate. Like 2 forums = 2 Gallerys correct?
     
  11. sonnb

    sonnb Administrator Staff Member

    Yes. But you also need to renew your expired license :p
     
  12. EvilSS

    EvilSS Authorized Member Authorized

    I did mate a few days ago.
    Will send you a screen shot of the renew.
    I paid for a new license then updated my expired license.
    But 1 of my license still shows as expired.

    EDIT: I updated Video Upload not Gallery, my mistake :p
     
    Last edited: May 26, 2017

Share This Page