WordPress.org

Ready to get started?Download WordPress

Forums

WP-Filebase Download Manager
Sync not working (31 posts)

  1. beezwings
    Member
    Posted 1 year ago #

    The sync doesn`t seem to be working. When I click on sync, it says:

    Checking for file changes... done!

    Searching for new files...

    982 Files found, 340 new.

    (It shows the progress bar which hangs at 0% in green)

    I tried disabling all other plugins, but still no go. Any thoughts?

    http://wordpress.org/extend/plugins/wp-filebase/

  2. benetj
    Member
    Posted 1 year ago #

    @beexwings I have the same problem!!

  3. Fabian
    Member
    Plugin Author

    Posted 1 year ago #

    Is the page loaded completely ? If not please check the end of the HTML source for errors and post them here.

  4. benetj
    Member
    Posted 1 year ago #

    Hello fabifott,
    Yes, the page is competely loaded.

    I can't see any kind of error

  5. beezwings
    Member
    Posted 1 year ago #

    Where would the error be? I don't see any error, and the page seems to load fully.

  6. Fabian
    Member
    Plugin Author

    Posted 1 year ago #

    Right click on the page, view source. Scroll down to the end and see if it ends with < /html >. If not, post the last 10 lines here.

    Screenshot would be useful as well.

  7. benetj
    Member
    Posted 1 year ago #

    uhm! it's true!
    Doesn't ends correctly!!

    Here you have the last 5 lines

    <p>Torna enrere</p><h2>Synchronisation</h2><p>Checking for file changes... done!</p><p>Searching for new files... <p>13 Files found, 12 new.</p><script type="text/javascript"><!--
    var _pbr_bs=[];var _pbr_ds=[];var _pbr_ss=[];var _pbr_ws=[];var _pbr_dc=[];function _pbr_s(f,d){var e=(d/_pbr_ss[f]);if(_pbr_ds[f]){_pbr_ds[f].innerHTML=""+Math.round(e*100)+" %";}_pbr_bs[f].style.width=""+Math.round(e*_pbr_ws[f])+"px";var c=(e>=0.5);if(_pbr_ds[f]&&_pbr_dc[f]!=c){var a=(c?document.getElementById("_pbr_b"+f):_pbr_bs[f]);_pbr_ds[f].style.color=a.style.backgroundColor;_pbr_dc[f]=c}}function _pbr_i(e,d,a,b){_pbr_bs[e]=document.getElementById("_pbr_"+e);_pbr_ds[e]=document.getElementById("_pbr_d"+e);_pbr_dc[e]=false;_pbr_ss[e]=a;_pbr_ws[e]=b;_pbr_s(e,d)};
    // --></script><div id="_pbr_b0" style="width:100px;height:20px;text-align:left;background-color:#FFF;overflow:hidden;border:1px solid #000;">
    <div id="_pbr_d0" style="width:100px;height:20px;text-align:center;line-height:20px;position:absolute;z-index:3;color:#0C0;"></div><div id="_pbr_0" style="width:0px;height:20px;background-color:#0C0;"></div>
    </div><script>_pbr_i(0,0,12,100);</script>

  8. Fabian
    Member
    Plugin Author

    Posted 1 year ago #

    Hm looks like its interrupted by a fatal error which is not reported by PHP, so I have no idea where this error occurs..
    Try disabling ID3 detection in WP-Filebase Settings->Misc

  9. benetj
    Member
    Posted 1 year ago #

    nope! still not working :(

    [No bumping. If it's that urgent, consider hiring someone.]

  10. beezwings
    Member
    Posted 1 year ago #

    Mine is similar:

    <p><a href="/wp-admin/admin.php?page=wpfilebase_manage" class="button">Go back</a></p><h2>Synchronisation</h2><p>Checking for file changes... done!</p><p>Searching for new files... <p>982 Files found, 340 new.</p><script type="text/javascript"><!--
    var _pbr_bs=[];var _pbr_ds=[];var _pbr_ss=[];var _pbr_ws=[];var _pbr_dc=[];function _pbr_s(f,d){var e=(d/_pbr_ss[f]);if(_pbr_ds[f]){_pbr_ds[f].innerHTML=""+Math.round(e*100)+" %";}_pbr_bs[f].style.width=""+Math.round(e*_pbr_ws[f])+"px";var c=(e>=0.5);if(_pbr_ds[f]&&_pbr_dc[f]!=c){var a=(c?document.getElementById("_pbr_b"+f):_pbr_bs[f]);_pbr_ds[f].style.color=a.style.backgroundColor;_pbr_dc[f]=c}}function _pbr_i(e,d,a,b){_pbr_bs[e]=document.getElementById("_pbr_"+e);_pbr_ds[e]=document.getElementById("_pbr_d"+e);_pbr_dc[e]=false;_pbr_ss[e]=a;_pbr_ws[e]=b;_pbr_s(e,d)};
    // --></script><div id="_pbr_b0" style="width:100px;height:20px;text-align:left;background-color:#FFF;overflow:hidden;border:1px solid #000;">
    <div id="_pbr_d0" style="width:100px;height:20px;text-align:center;line-height:20px;position:absolute;z-index:3;color:#0C0;"></div><div id="_pbr_0" style="width:0px;height:20px;background-color:#0C0;"></div>
    </div><script>_pbr_i(0,0,340,100);</script>
  11. Fabian
    Member
    Plugin Author

    Posted 1 year ago #

    Can you add files using the upload form?
    And can you please revert to older versions to see which is the last one working.

  12. benetj
    Member
    Posted 1 year ago #

    Hello
    I'm not using the upload form. I upload the files with FTP.

    I was tried to install older revisions ( 0.2.9.21, 0.2.9.19 ) but nothing change.

    I'm using WordPress 3.4.2

  13. benetj
    Member
    Posted 1 year ago #

    Wooha!!!!
    With the version WP-Filebase 0.2.9.18 + WP 3.4.2 it's works!!!

  14. dpepper
    Member
    Posted 1 year ago #

    I have the same issue occuring. I have tried benetj suggest config but it does not work for me. I am using WP 3.4.2

    I am get this as the last part of the page:

    </div>
    <p><a href="/wp-admin/admin.php?page=wpfilebase_manage">Go back</a></p><h2>Synchronisation</h2><p>Checking for file changes... done!</p><p>Searching for new files... <p>276 Files found, 27 new.</p><script type="text/javascript"><!--
    var _pbr_bs=[];var _pbr_ds=[];var _pbr_ss=[];var _pbr_ws=[];var _pbr_dc=[];function _pbr_s(f,d){var e=(d/_pbr_ss[f]);if(_pbr_ds[f]){_pbr_ds[f].innerHTML=""+Math.round(e*100)+" %";}_pbr_bs[f].style.width=""+Math.round(e*_pbr_ws[f])+"px";var c=(e>=0.5);if(_pbr_ds[f]&&_pbr_dc[f]!=c){var a=(c?document.getElementById("_pbr_b"+f):_pbr_bs[f]);_pbr_ds[f].style.color=a.style.backgroundColor;_pbr_dc[f]=c}}function _pbr_i(e,d,a,b){_pbr_bs[e]=document.getElementById("_pbr_"+e);_pbr_ds[e]=document.getElementById("_pbr_d"+e);_pbr_dc[e]=false;_pbr_ss[e]=a;_pbr_ws[e]=b;_pbr_s(e,d)};
    // --></script><div id="_pbr_b0" style="width:100px;height:20px;text-align:left;background-color:#FFF;overflow:hidden;border:1px solid #000;">
    <div id="_pbr_d0" style="width:100px;height:20px;text-align:center;line-height:20px;position:absolute;z-index:3;color:#0C0;"></div><div id="_pbr_0" style="width:0px;height:20px;background-color:#0C0;"></div>
    </div><script>_pbr_i(0,0,27,100);</script>

    [Moderator Note: Please post code or markup snippets between backticks or use the code button. As it stands, your code may now have been permanently damaged/corrupted by the forum's parser.]

  15. beezwings
    Member
    Posted 1 year ago #

    benetj: can you post that older version of filebase 0.2.9.18 (as a temporary fix)?

  16. benetj
    Member
    Posted 1 year ago #

    beezwings: you can download it from
    http://wordpress.org/extend/plugins/wp-filebase/developers/

    Regards

  17. beezwings
    Member
    Posted 1 year ago #

    Thanks for the link; unfortunately, I still have the same problem with the older version.

  18. Fabian
    Member
    Plugin Author

    Posted 1 year ago #

    If you still have the issue: the latest version (0.2.9.24) gives you extended debug info if you append debug=1 to the sync page URL.
    http://something-like-this.com/wp-admin/admin.php?page=wpfilebase_manage&action=sync&debug=1
    The debug info will appear in HTML source as comments. So just right click on the page and view source.

  19. pchet
    Member
    Posted 1 year ago #

    hello
    i have the same problem. this is the debug code:

    <p><a href="/wp-admin/admin.php?page=wpfilebase_manage&debug=1" class="button">Go back</a></p><h2>Synchronisation</h2><!-- [] BACKTRACE:
    do_action('toplevel_page_wpfilebase_manage'), call_user_func_array, WPFB_AdminLite::DisplayManagePage, wpfb_call, call_user_func, WPFB_AdminGuiManage::Display, WPFB_Sync::Sync, WPFB_Sync::PrintDebugTrace
    END --><!-- [] BACKTRACE:
    do_action('toplevel_page_wpfilebase_manage'), call_user_func_array, WPFB_AdminLite::DisplayManagePage, wpfb_call, call_user_func, WPFB_AdminGuiManage::Display, WPFB_Sync::Sync, WPFB_Sync::PreSync, WPFB_Sync::PrintDebugTrace
    END --><!-- [] BACKTRACE:
    do_action('toplevel_page_wpfilebase_manage'), call_user_func_array, WPFB_AdminLite::DisplayManagePage, wpfb_call, call_user_func, WPFB_AdminGuiManage::Display, WPFB_Sync::Sync, WPFB_Sync::SyncPase1, WPFB_Sync::PrintDebugTrace
    END --><p>Checking for file changes... done!</p><p>Searching for new files... <!-- [new_files] BACKTRACE:
    do_action('toplevel_page_wpfilebase_manage'), call_user_func_array, WPFB_AdminLite::DisplayManagePage, wpfb_call, call_user_func, WPFB_AdminGuiManage::Display, WPFB_Sync::Sync, WPFB_Sync::SyncPase1, WPFB_Sync::PrintDebugTrace
    END --><!-- [new_files_end] BACKTRACE:
    do_action('toplevel_page_wpfilebase_manage'), call_user_func_array, WPFB_AdminLite::DisplayManagePage, wpfb_call, call_user_func, WPFB_AdminGuiManage::Display, WPFB_Sync::Sync, WPFB_Sync::SyncPase1, WPFB_Sync::PrintDebugTrace
    END --><p>49 Files found, 48 new.</p><script type="text/javascript"><!--
    var _pbr_bs=[];var _pbr_ds=[];var _pbr_ss=[];var _pbr_ws=[];var _pbr_dc=[];function _pbr_s(f,d){var e=(d/_pbr_ss[f]);if(_pbr_ds[f]){_pbr_ds[f].innerHTML=""+Math.round(e*100)+" %";}_pbr_bs[f].style.width=""+Math.round(e*_pbr_ws[f])+"px";var c=(e>=0.5);if(_pbr_ds[f]&&_pbr_dc[f]!=c){var a=(c?document.getElementById("_pbr_b"+f):_pbr_bs[f]);_pbr_ds[f].style.color=a.style.backgroundColor;_pbr_dc[f]=c}}function _pbr_i(e,d,a,b){_pbr_bs[e]=document.getElementById("_pbr_"+e);_pbr_ds[e]=document.getElementById("_pbr_d"+e);_pbr_dc[e]=false;_pbr_ss[e]=a;_pbr_ws[e]=b;_pbr_s(e,d)};
    // --></script><div id="_pbr_b0" style="width:100px;height:20px;text-align:left;background-color:#FFF;overflow:hidden;border:1px solid #000;">
    <div id="_pbr_d0" style="width:100px;height:20px;text-align:center;line-height:20px;position:absolute;z-index:3;color:#0C0;"></div><div id="_pbr_0" style="width:0px;height:20px;background-color:#0C0;"></div>
    </div><script>_pbr_i(0,0,48,100);</script>
    <!-- [] BACKTRACE:
    do_action('toplevel_page_wpfilebase_manage'), call_user_func_array, WPFB_AdminLite::DisplayManagePage, wpfb_call, call_user_func, WPFB_AdminGuiManage::Display, WPFB_Sync::Sync, WPFB_Sync::AddNewFiles, WPFB_Sync::PrintDebugTrace
    END -->
  20. cymnet
    Member
    Posted 1 year ago #

    I am also having this same issue since the update....

    <a href="/wp-admin/admin.php?page=wpfilebase_manage&debug=1" class="button">Go back</a></p><h2>Synchronisation</h2><!-- [] BACKTRACE:
    do_action('toplevel_page_wpfilebase_manage'), call_user_func_array, WPFB_AdminLite::DisplayManagePage, wpfb_call, call_user_func, WPFB_AdminGuiManage::Display, WPFB_Sync::Sync, WPFB_Sync::PrintDebugTrace
    END --><!-- [] BACKTRACE:
    do_action('toplevel_page_wpfilebase_manage'), call_user_func_array, WPFB_AdminLite::DisplayManagePage, wpfb_call, call_user_func, WPFB_AdminGuiManage::Display, WPFB_Sync::Sync, WPFB_Sync::PreSync, WPFB_Sync::PrintDebugTrace
    END --><!-- [] BACKTRACE:
    do_action('toplevel_page_wpfilebase_manage'), call_user_func_array, WPFB_AdminLite::DisplayManagePage, wpfb_call, call_user_func, WPFB_AdminGuiManage::Display, WPFB_Sync::Sync, WPFB_Sync::SyncPase1, WPFB_Sync::PrintDebugTrace
    END --><p>Checking for file changes... done!</p><p>Searching for new files... <!-- [new_files] BACKTRACE:
    do_action('toplevel_page_wpfilebase_manage'), call_user_func_array, WPFB_AdminLite::DisplayManagePage, wpfb_call, call_user_func, WPFB_AdminGuiManage::Display, WPFB_Sync::Sync, WPFB_Sync::SyncPase1, WPFB_Sync::PrintDebugTrace
    END --><!-- [new_files_end] BACKTRACE:
    do_action('toplevel_page_wpfilebase_manage'), call_user_func_array, WPFB_AdminLite::DisplayManagePage, wpfb_call, call_user_func, WPFB_AdminGuiManage::Display, WPFB_Sync::Sync, WPFB_Sync::SyncPase1, WPFB_Sync::PrintDebugTrace
    END --><p>163 Files found, 13 new.</p><script type="text/javascript"><!--
    var _pbr_bs=[];var _pbr_ds=[];var _pbr_ss=[];var _pbr_ws=[];var _pbr_dc=[];function _pbr_s(f,d){var e=(d/_pbr_ss[f]);if(_pbr_ds[f]){_pbr_ds[f].innerHTML=""+Math.round(e*100)+" %";}_pbr_bs[f].style.width=""+Math.round(e*_pbr_ws[f])+"px";var c=(e>=0.5);if(_pbr_ds[f]&&_pbr_dc[f]!=c){var a=(c?document.getElementById("_pbr_b"+f):_pbr_bs[f]);_pbr_ds[f].style.color=a.style.backgroundColor;_pbr_dc[f]=c}}function _pbr_i(e,d,a,b){_pbr_bs[e]=document.getElementById("_pbr_"+e);_pbr_ds[e]=document.getElementById("_pbr_d"+e);_pbr_dc[e]=false;_pbr_ss[e]=a;_pbr_ws[e]=b;_pbr_s(e,d)};
    // --></script><div id="_pbr_b0" style="width:100px;height:20px;text-align:left;background-color:#FFF;overflow:hidden;border:1px solid #000;">
    <div id="_pbr_d0" style="width:100px;height:20px;text-align:center;line-height:20px;position:absolute;z-index:3;color:#0C0;"></div><div id="_pbr_0" style="width:0px;height:20px;background-color:#0C0;"></div>
    </div><script>_pbr_i(0,0,13,100);</script>
    <!-- [] BACKTRACE:
    do_action('toplevel_page_wpfilebase_manage'), call_user_func_array, WPFB_AdminLite::DisplayManagePage, wpfb_call, call_user_func, WPFB_AdminGuiManage::Display, WPFB_Sync::Sync, WPFB_Sync::AddNewFiles, WPFB_Sync::PrintDebugTrace
    END -->
  21. phos flip
    Member
    Posted 1 year ago #

    Same problem :(

    <!-- [] (MEM: 39.0 MiB / 268435456) BACKTRACE:
    do_action('toplevel_page_wpfilebase_manage'), call_user_func_array, WPFB_AdminLite::DisplayManagePage, wpfb_call, call_user_func, WPFB_AdminGuiManage::Display, WPFB_Sync::Sync, WPFB_Sync::PrintDebugTrace
    END --><!-- [] (MEM: 39.5 MiB / 268435456) BACKTRACE:
    do_action('toplevel_page_wpfilebase_manage'), call_user_func_array, WPFB_AdminLite::DisplayManagePage, wpfb_call, call_user_func, WPFB_AdminGuiManage::Display, WPFB_Sync::Sync, WPFB_Sync::PreSync, WPFB_Sync::PrintDebugTrace
    END --><!-- [sync_phase_1] (MEM: 39.5 MiB / 268435456) BACKTRACE:
    do_action('toplevel_page_wpfilebase_manage'), call_user_func_array, WPFB_AdminLite::DisplayManagePage, wpfb_call, call_user_func, WPFB_AdminGuiManage::Display, WPFB_Sync::Sync, WPFB_Sync::SyncPase1, WPFB_Sync::PrintDebugTrace
    END --><p>Starting sync. Memory usage: 39.5 MiB - Limit: 256.0 MiB </p><p>Checking for file changes... done!</p><p>Searching for new files... <!-- [new_files] (MEM: 39.5 MiB / 268435456) BACKTRACE:
    do_action('toplevel_page_wpfilebase_manage'), call_user_func_array, WPFB_AdminLite::DisplayManagePage, wpfb_call, call_user_func, WPFB_AdminGuiManage::Display, WPFB_Sync::Sync, WPFB_Sync::SyncPase1, WPFB_Sync::PrintDebugTrace
    END --><!-- [new_files_end] (MEM: 39.5 MiB / 268435456) BACKTRACE:
    do_action('toplevel_page_wpfilebase_manage'), call_user_func_array, WPFB_AdminLite::DisplayManagePage, wpfb_call, call_user_func, WPFB_AdminGuiManage::Display, WPFB_Sync::Sync, WPFB_Sync::SyncPase1, WPFB_Sync::PrintDebugTrace
    END --><!-- [post_get_thumbs] (MEM: 39.5 MiB / 268435456) BACKTRACE:
    do_action('toplevel_page_wpfilebase_manage'), call_user_func_array, WPFB_AdminLite::DisplayManagePage, wpfb_call, call_user_func, WPFB_AdminGuiManage::Display, WPFB_Sync::Sync, WPFB_Sync::SyncPase1, WPFB_Sync::PrintDebugTrace
    END --><p>161 Files found, 10 new.</p><script type="text/javascript"><!--
    var _pbr_bs=[];var _pbr_ds=[];var _pbr_ss=[];var _pbr_ws=[];var _pbr_dc=[];function _pbr_s(f,d){var e=(d/_pbr_ss[f]);if(_pbr_ds[f]){_pbr_ds[f].innerHTML=""+Math.round(e*100)+" %";}_pbr_bs[f].style.width=""+Math.round(e*_pbr_ws[f])+"px";var c=(e>=0.5);if(_pbr_ds[f]&&_pbr_dc[f]!=c){var a=(c?document.getElementById("_pbr_b"+f):_pbr_bs[f]);_pbr_ds[f].style.color=a.style.backgroundColor;_pbr_dc[f]=c}}function _pbr_i(e,d,a,b){_pbr_bs[e]=document.getElementById("_pbr_"+e);_pbr_ds[e]=document.getElementById("_pbr_d"+e);_pbr_dc[e]=false;_pbr_ss[e]=a;_pbr_ws[e]=b;_pbr_s(e,d)};
    // --></script><div id="_pbr_b0" style="width:100px;height:20px;text-align:left;background-color:#FFF;overflow:hidden;border:1px solid #000; border-radius:4px; box-shadow: 1px 1px 1px #AAA;">
    <div id="_pbr_d0" style="width:100px;height:20px;text-align:center;line-height:20px;position:absolute;z-index:3;color:#0C0;"></div><div id="_pbr_0" style="width:0px;height:20px;background-color:#0C0;;text-shadow:0 1px 0px #333; box-shadow: 1px 0 1px black;" class="wpfb-progress-bar-in"></div>
    </div><script>_pbr_i(0,0,10,100);</script>
    <!-- [pre_add_files] (MEM: 39.5 MiB / 268435456) BACKTRACE:
    do_action('toplevel_page_wpfilebase_manage'), call_user_func_array, WPFB_AdminLite::DisplayManagePage, wpfb_call, call_user_func, WPFB_AdminGuiManage::Display, WPFB_Sync::Sync, WPFB_Sync::PrintDebugTrace
    END --><!-- [] (MEM: 39.5 MiB / 268435456) BACKTRACE:
    do_action('toplevel_page_wpfilebase_manage'), call_user_func_array, WPFB_AdminLite::DisplayManagePage, wpfb_call, call_user_func, WPFB_AdminGuiManage::Display, WPFB_Sync::Sync, WPFB_Sync::AddNewFiles, WPFB_Sync::PrintDebugTrace
    END --><!-- [add_existing_file:/home/stories4/public_html/wp-content/uploads/filebase/ukmalawiinfographicDRAFT1.jpg] (MEM: 39.5 MiB / 268435456) BACKTRACE:
    do_action('toplevel_page_wpfilebase_manage'), call_user_func_array, WPFB_AdminLite::DisplayManagePage, wpfb_call, call_user_func, WPFB_AdminGuiManage::Display, WPFB_Sync::Sync, WPFB_Sync::AddNewFiles, WPFB_Sync::PrintDebugTrace
    END -->

  22. phos flip
    Member
    Posted 1 year ago #

    Is there any way of being able to manually sync files uploaded via ftp? Some of the files are too big to upload through the browser so I'm at the mercy of the sync button working at the mo and it seems to not want to.

  23. Gwyneth Llewelyn
    Member
    Posted 1 year ago #

    Hi! I'm glad I found this thread, since I have the same issue. In my case, I seriously suspect that PHP has hit either a memory limit or a running time limit. For all it's worth, here are the last lines in my case:

    <p><a href="/wp-admin/admin.php?page=wpfilebase_manage&debug=1" class="button">Voltar</a></p><h2>Synchronisation</h2><!-- [] (MEM: 36.5 MiB / 268435456) BACKTRACE:
    do_action('toplevel_page_wpfilebase_manage'), call_user_func_array, WPFB_AdminLite::DisplayManagePage, wpfb_call, call_user_func, WPFB_AdminGuiManage::Display, WPFB_Sync::Sync, WPFB_Sync::PrintDebugTrace
    END --><!-- [] (MEM: 36.5 MiB / 268435456) BACKTRACE:
    do_action('toplevel_page_wpfilebase_manage'), call_user_func_array, WPFB_AdminLite::DisplayManagePage, wpfb_call, call_user_func, WPFB_AdminGuiManage::Display, WPFB_Sync::Sync, WPFB_Sync::PreSync, WPFB_Sync::PrintDebugTrace
    END --><!-- [sync_phase_1] (MEM: 36.5 MiB / 268435456) BACKTRACE:
    do_action('toplevel_page_wpfilebase_manage'), call_user_func_array, WPFB_AdminLite::DisplayManagePage, wpfb_call, call_user_func, WPFB_AdminGuiManage::Display, WPFB_Sync::Sync, WPFB_Sync::SyncPase1, WPFB_Sync::PrintDebugTrace
    END --><p>Starting sync. Memory usage: 36.5 MiB - Limit: 256.0 MiB </p><p>Checking for file changes... done!</p><p>Searching for new files... <!-- [new_files] (MEM: 36.5 MiB / 268435456) BACKTRACE:
    do_action('toplevel_page_wpfilebase_manage'), call_user_func_array, WPFB_AdminLite::DisplayManagePage, wpfb_call, call_user_func, WPFB_AdminGuiManage::Display, WPFB_Sync::Sync, WPFB_Sync::SyncPase1, WPFB_Sync::PrintDebugTrace
    END --><!-- [new_files_end] (MEM: 36.5 MiB / 268435456) BACKTRACE:
    do_action('toplevel_page_wpfilebase_manage'), call_user_func_array, WPFB_AdminLite::DisplayManagePage, wpfb_call, call_user_func, WPFB_AdminGuiManage::Display, WPFB_Sync::Sync, WPFB_Sync::SyncPase1, WPFB_Sync::PrintDebugTrace
    END --><!-- [post_get_thumbs] (MEM: 36.5 MiB / 268435456) BACKTRACE:
    do_action('toplevel_page_wpfilebase_manage'), call_user_func_array, WPFB_AdminLite::DisplayManagePage, wpfb_call, call_user_func, WPFB_AdminGuiManage::Display, WPFB_Sync::Sync, WPFB_Sync::SyncPase1, WPFB_Sync::PrintDebugTrace
    END --><p>43 Files found, 22 new.</p><script type="text/javascript"><!--
    var _pbr_bs=[];var _pbr_ds=[];var _pbr_ss=[];var _pbr_ws=[];var _pbr_dc=[];function _pbr_s(f,d){var e=(d/_pbr_ss[f]);if(_pbr_ds[f]){_pbr_ds[f].innerHTML=""+Math.round(e*100)+" %";}_pbr_bs[f].style.width=""+Math.round(e*_pbr_ws[f])+"px";var c=(e>=0.5);if(_pbr_ds[f]&&_pbr_dc[f]!=c){var a=(c?document.getElementById("_pbr_b"+f):_pbr_bs[f]);_pbr_ds[f].style.color=a.style.backgroundColor;_pbr_dc[f]=c}}function _pbr_i(e,d,a,b){_pbr_bs[e]=document.getElementById("_pbr_"+e);_pbr_ds[e]=document.getElementById("_pbr_d"+e);_pbr_dc[e]=false;_pbr_ss[e]=a;_pbr_ws[e]=b;_pbr_s(e,d)};
    // --></script><div id="_pbr_b0" style="width:100px;height:20px;text-align:left;background-color:#FFF;overflow:hidden;border:1px solid #000; border-radius:4px; box-shadow: 1px 1px 1px #AAA;">
    <div id="_pbr_d0" style="width:100px;height:20px;text-align:center;line-height:20px;position:absolute;z-index:3;color:#0C0;"></div><div id="_pbr_0" style="width:0px;height:20px;background-color:#0C0;;text-shadow:0 1px 0px #333; box-shadow: 1px 0 1px black;" class="wpfb-progress-bar-in"></div>
    </div><script>_pbr_i(0,0,22,100);</script>
    <!-- [pre_add_files] (MEM: 36.5 MiB / 268435456) BACKTRACE:
    do_action('toplevel_page_wpfilebase_manage'), call_user_func_array, WPFB_AdminLite::DisplayManagePage, wpfb_call, call_user_func, WPFB_AdminGuiManage::Display, WPFB_Sync::Sync, WPFB_Sync::PrintDebugTrace
    END --><!-- [] (MEM: 36.5 MiB / 268435456) BACKTRACE:
    do_action('toplevel_page_wpfilebase_manage'), call_user_func_array, WPFB_AdminLite::DisplayManagePage, wpfb_call, call_user_func, WPFB_AdminGuiManage::Display, WPFB_Sync::Sync, WPFB_Sync::AddNewFiles, WPFB_Sync::PrintDebugTrace
    END --><!-- [add_existing_file:/home/cetestoril/sebentanalanda.centroestudostibetanos.org/wp-content/uploads/filebase/tulku-sherdor-fevereiro-2013/Tulku Sherdor Guru Yoga 20130219.mov] (MEM: 36.5 MiB / 268435456) BACKTRACE:
    do_action('toplevel_page_wpfilebase_manage'), call_user_func_array, WPFB_AdminLite::DisplayManagePage, wpfb_call, call_user_func, WPFB_AdminGuiManage::Display, WPFB_Sync::Sync, WPFB_Sync::AddNewFiles, WPFB_Sync::PrintDebugTrace
    END -->do_action('toplevel_page_wpfilebase_manage'), call_user_func_array, WPFB_AdminLite::DisplayManagePage, wpfb_call, call_user_func, WPFB_AdminGuiManage::Display, WPFB_Sync::Sync, WPFB_Sync::AddNewFiles, WPFB_Sync::PrintDebugTrace
    END -->

    It's pretty similar to what others have reported. I'm trying to do the manual sync at odd hours, hoping for a little less busy server time, and I managed to get 18 out of 43 files to be recognized by WP-Filebase that way, but the remaining are still missing. Also, a page with the shortcodes now unfortunately shows a corrupted database (duplicate entries for categories that do not show on the plugin's panel — i.e. everything is correct on the panel, but the front-end shortcode processor has a different view of the database).

    IMHO, it would be better to attempt a "clean sync", but since this is not possible, and the files are so huge that only FTP will get them to the right place, my question is the same as @phos flip's — is there a way to do a manual sync somehow?

    After a couple of days without luck in sync'ing things I'm now ready to start to look at the code myself :) ... the extra database tables seem straightforward enough to me, and, if all else fails, I can always attempt to do everything by hacking the database itself!

  24. Gwyneth Llewelyn
    Member
    Posted 1 year ago #

    Not really a bump, but here goes a short analysis of what I found out and an ugly hack that will at least allow the Sync to complete, even though with severe loss of functionality and security:

    I can confirm that the main issue is not with the plugin by itself, but with the amount of running time for md5sum. For files with over a few GBytes it takes so long that the pipe connection between the PHP process and the md5sum process times out, and obviously Sync will fail.

    A temporary hack is just to edit classes/Admin.php and comment the contents of GetFileHash() by returning something fake. This allowed me to import all files in a few seconds (11 seconds, to be more precise).

    Obviously it means that the file hash is now useless. This has some implications: users will be unable to check if they really have uploaded the file they wished. I understand that Sync might also use the hash to make sure that a file with the same name is a different file and has to replace an earlier version. So, if you use this approach, be wary. Personally, for me, my next step is to go through the whole database and manually add the file hashes.

    The issue with the timeouts and having the exec call hang Apache/PHP is a tricky one. From what I’ve gathered, a (possible) solution would be to use proc-open() or the more simple popen() calls instead. These allow processes to be spawned asynchronously and not have PHP wait for them. Of course this requires a big change on the code! Essentially, there would be a loop gathering all filenames and relevant data, and a batch of asynchronous processes to be launched for each one (it’s not a good idea to launch hundreds of them at the same time, of course!), which would update the database as soon as the hashes are known. So, in theory at least, the whole database would be quickly populated with the filenames in a few seconds, while the hash processing might take hours or days, but eventually it would finish.

    Changing the code for implementing that asynchronous behaviour is utterly beyond me, I’m sorry.

  25. bbcurtis
    Member
    Posted 11 months ago #

    Is there an actual fix for this problem? I've uploaded over
    1GB or so and am trying to sync it gets stuck at

    Starting sync. Memory usage: 240.2 MiB - Limit: 256.0 MiB Note: The memory usage seems to be quite high. Please disable other plugins to lower the memory consumption.

    Checking for file changes... done!

    Searching for new files...

    I should have stuck to what I used to do, upload a few handfuls of files then sync...but it would be nice to get this function to work properly.
    Would love any input.
    Thank you!

  26. Fabian
    Member
    Plugin Author

    Posted 11 months ago #

    Things you could do to make sync working properly:
    - Make sure PHP exec() is allowed
    - Increase PHP's memory limit (ask your hosting provider)
    - Disable other plugins
    You can also consider to upgrade to Pro, that includes a better sync implementation for many files.

  27. rwilki
    Member
    Posted 10 months ago #

    Sync works flawlessly for me... I can't get batch upload to work and I need it for my customers.

    Thanks,
    Bob

  28. Fabian
    Member
    Plugin Author

    Posted 10 months ago #

    rwilki,
    can you give some details about the issue? Are there any error messages, whats happening after selecting a file?

    Regards
    Fabian

  29. rwilki
    Member
    Posted 10 months ago #

    thanks for your reply. I don't see any logged details and it's not throwing any errors that I've been able to see.

    If i add more than one file with the batch uploader, it grabs the name of each file when uploading, but when it's finished uploading that file, it changes the name of the file to "undefined". None of the files are added to the wp-filebase repository and the .tmp files stay in the tmp directory.

    Single file uploads work fine and sync works flawlessly.

    Thanks,
    Bob

  30. Fabian
    Member
    Plugin Author

    Posted 10 months ago #

    Bob, this will be fixed with the next update.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.