WordPress.org

Ready to get started?Download WordPress

Forums

Omni Secure Files
load_menu_root error (5 posts)

  1. Paul
    Member
    Posted 2 years ago #

    After upgrading from version 1.5 to 1.8 of Omni Secure Files I now get the following error:

    Warning: call_user_func_array() expects parameter 1 to be a valid callback, class 'OmniSecureFiles' does not have a method 'load_menu_root' in C:\xampp\htdocs\wp-includes\plugin.php on line 405

    I get the same error on both WordPress 3.2.1 and 3.3 and with both a web hosted site and local (XAMPP hosted ) site

    http://wordpress.org/extend/plugins/omni-secure-files/

  2. icc97
    Member
    Posted 2 years ago #

    Yes I am getting the same error.

    • OSF 1.8
    • WordPress 3.3.1
    • PHP 5.2.13
    • IIS
    • Windows 7
  3. icc97
    Member
    Posted 2 years ago #

    @pplumridge I've done some checking of the changes that were made. Looks like the call to load_menu_root is now redundant. The function load_menu_root existed in v1.7 but got removed in v1.8. Here's the actual plugin differences if you're interested.

    So if you edit your plugin and comment out line 63 of omni-secure-files/omni-secure-files.php (the line that mentions 'load_menu_root') then your error will go away.

    I'm not a developer for the plugin - but I'm pretty sure this is correct.

  4. icc97
    Member
    Posted 2 years ago #

    I'm getting an error when trying to create a directory with OSF 1.8. My PHP error log gives:

    WordPress database error Field 'node_uri' doesn't have a default value for query INSERT INTOwp_osf_nodes(node_name,node_type,node_parent_ID,modified,created) VALUES ('temp','directory','0','2012-01-13 15:04:57','2012-01-13 15:04:57') made by do_action, call_user_func_array, OmniSecureFiles->menu_root, OmniSecureFilesNode->save

  5. Paul
    Member
    Posted 2 years ago #

    Thanks @icc97. Commenting out the line is what i did in the end anyway. Hopefully there will be a fix for this soon. Probably best if you open a new topic for your directory creation problem.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic