Fabian
Forum Replies Created
-
Defaults can be set in WP-Filebase settings now.
Try new version.
Try the new version, there was a small MySQL syntax bug causing errors on some servers (not my 2 test systems ?? )
Ah, and you should try to disable the Option
Hide inaccessible files and categories
, found in the Security tab.Anyone experiencing issues with syncing and file listing should try this version: https://fabi.me/download/wp-filebase0.2.9.3.1.zip
It should give more debug info about whats going wrong. Please post your results here.Can you please post the shortcode for your file list?
When trying to download, do you get an error message?You can use a File Tree Browser and set its root category to “2011”. However, I will modify the list code so all files are listed if an empty category is selected.
Dou you have custom user roles?
Just found a little bug in classes/File.php.
Will be fixed next update.
You can patch the file to get it working right now:in classes/File.php look for
$dl_limit = intval(WPFB_Core::GetOpt('daily_limit_'.$user_role)); if($usr_dls_today >= $dl_limit) $this->DownloadDenied(($dl_limit > 0) ? sprintf(WPFB_Core::GetOpt('daily_limit_exceeded_msg'), $dl_limit) : 'inaccessible_msg');
and replace it with:
$dl_limit = intval(WPFB_Core::GetOpt('daily_limit_'.$user_role)); if($dl_limit > 0 && $usr_dls_today >= $dl_limit) $this->DownloadDenied(sprintf(WPFB_Core::GetOpt('daily_limit_exceeded_msg'), $dl_limit));
WP-Filebase checks the user role for permission “upload_file”, so make sure this is in your role permissions.
Btw, do a File Sync to fix the file counters.
Thank you for the detailed report!
About the file list: I must admit that lists with more than one category never worked correctly. Theif($n > $num) break;
was to limit the list length, i.e pagination. And now I recall why this was tagged TODO!!, think about $num=0 should be no limit ;). In the meantime the code of ListTpl changed a lot and all existing bugs should be fixed (never said that there aren’t any new bugs).2nd bug:
last_parent is used for caching in Item::GetParent. I replicated the issue, and fixed it by just removing the ancestor check in NotifyFileRemoved. This should be safe, since this function is always called on a file’s or category’s parent.Update will be released during this week.
Hi,
WP-Filebase already supports unlimited category levels.
Just create a categor and set it’s parent category.
You can also upload folder structure and sync the filebase.Can you post any download URL for testing?
Any cache plugins enabled?Forum: Plugins
In reply to: [WP-Filebase Download Manager] Wp-FileBase and S2Member conflictThis should be fixed in 0.2.9.1.
755 causes issues on some servers. See wp-filebase.php:
define('WPFB_PERM_FILE', 666); define('WPFB_PERM_DIR', 777);
You can adjust these constants, but be aware that they will be reset on plugin update!