Support » Plugin: WP-Filebase Download Manager » [Plugin: WP-Filebase Download Manager] Impossible to change default permissions

  • Resolved vertex-polygon

    (@vertex-polygon)


    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/

Viewing 5 replies - 1 through 5 (of 5 total)
  • Vertex, I also experience this problem and would like to know how it would be fixed.

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

    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.

    Plugin Author Fabian

    (@fabifott)

    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!

    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.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘[Plugin: WP-Filebase Download Manager] Impossible to change default permissions’ is closed to new replies.