Viewing 15 replies - 16 through 30 (of 30 total)
  • Thread Starter beezwings

    (@beezwings)

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

    Plugin Author Fabian

    (@fabifott)

    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.
    https://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.

    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 -->

    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 -->

    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 –>

    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.

    Gwyneth Llewelyn

    (@gwynethllewelyn)

    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!

    Gwyneth Llewelyn

    (@gwynethllewelyn)

    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.

    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!

    Plugin Author Fabian

    (@fabifott)

    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.

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

    Thanks,
    Bob

    Plugin Author Fabian

    (@fabifott)

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

    Regards
    Fabian

    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

    Plugin Author Fabian

    (@fabifott)

    Bob, this will be fixed with the next update.

    thanks for your reply Fabian. It’s a perfect plugin otherwise and very useful. I worry though because my customers won’t be very good with ftp and the batch upload would be the right solution for them.

    thanks again!
    Bob

Viewing 15 replies - 16 through 30 (of 30 total)
  • The topic ‘[Plugin: WP-Filebase Download Manager] Sync not working’ is closed to new replies.