WordPress.org

Forums

WP-Filebase Download Manager
[resolved] Impossible to change default permissions (6 posts)

  1. vertex-polygon
    Member
    Posted 2 years ago #

    I have problems with the parameters of this plugin in several blogs.

    In the first blog, I can't change the default permissions. "Everyone" is checked and if I change this option, it's not conserved after saving. It's "Everyone" again.

    In the second blog, there is a message of error in the roles list :

    Tout le monde
    
        Warning: in_array() expects parameter 2 to be array, integer given in .../wp-content/plugins/wp-filebase/classes/Admin.php on line 1187
        Administrateur
    
        Warning: in_array() expects parameter 2 to be array, integer given in .../wp-content/plugins/wp-filebase/classes/Admin.php on line 1187
        Éditeur
    
        Warning: in_array() expects parameter 2 to be array, integer given in .../wp-content/plugins/wp-filebase/classes/Admin.php on line 1187
        Auteur
    
        Warning: in_array() expects parameter 2 to be array, integer given in .../wp-content/plugins/wp-filebase/classes/Admin.php on line 1187
        Contributeur
    
        Warning: in_array() expects parameter 2 to be array, integer given in .../wp-content/plugins/wp-filebase/classes/Admin.php on line 1187
        Abonné
    
        Warning: in_array() expects parameter 2 to be array, integer given in .../wp-content/plugins/wp-filebase/classes/Admin.php on line 1187
        Calendar Contributor

    I have translated the plugin in french and "Everyone" is "Tout le monde" for the second blog.
    Have you got an idea of the problem? A folder permission issue?

    Thank's for your help.

    PS: the problem is with the 2.9.19. It works fine with 2.9.18 with an other blog and same problem (error message) after update.

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

  2. rusola
    Member
    Posted 2 years ago #

    Vertex, I also experience this problem and would like to know how it would be fixed.

  3. beeann
    Member
    Posted 2 years ago #

    Same here with the everyone staying clicked and not saving. I posted days ago about another permissions issue and still no replies.

  4. vertex-polygon
    Member
    Posted 2 years ago #

    I tested several situations with the last update of this plugin and I still have a bug. Permissions are buggy, in the settings but also when creating categories.

  5. Fabian
    Member
    Plugin Author

    Posted 2 years ago #

    Yeah, you're right, it's buggy.

    I found a bug in AdminGuiSettings.php. You can fix it by replacing the following lines:

    case 'roles':
    						foreach(array_keys($post[$opt_tag]) as $i) {
    							if(empty($post[$opt_tag][$i])) unset($post[$opt_tag][$i]);
    						}

    with

    case 'roles':
    						$post[$opt_tag] = array_values(array_filter($post[$opt_tag]));
    						break;

    Fix will be included next update.

    Can you please try permissions when...
    - creating a category
    - editing a category
    - creating a file
    - editing a file
    and post the results here?
    Thanks!

  6. vertex-polygon
    Member
    Posted 2 years ago #

    Oooh,
    Thank you very much. Everything seems to work like a charm now.

    Can you please try permissions when...
    - creating a category
    - editing a category
    - creating a file
    - editing a file
    and post the results here?

    I did all the tests you asked and everything seems to work.

    Really great. Thank you again.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WP-Filebase Download Manager
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

Tags

No tags yet.