WordPress.org

Forums

WP-Filebase Download Manager
Broken (6 posts)

  1. GTBAOC
    Member
    Posted 2 years ago #

    I installed and now get this when I attempt to go to anything on the dashboard: Fatal error: func_get_args(): Can't be used as a function parameter in /home/content/05/7443105/html/wp-content/plugins/wp-filebase/wp-filebase.php on line 33

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

  2. Miquel
    Member
    Posted 2 years ago #

    I solved it by editing the file /wp-content/plugins/wp-filebase/wp-filebase.php (accessing it via FTP) and changing the original line 33:

    if(func_num_args() > 1)
    	return array_map(__FUNCTION__, func_get_args());

    by the following:

    if(func_num_args() > 1) {
    	$arg_list = func_get_args();
    	return array_map(__FUNCTION__, $arg_list);
    	}

    That worked for me.

  3. Amets Eroak
    Member
    Posted 2 years ago #

    DonĀ“t work for me....

  4. Miquel
    Member
    Posted 2 years ago #

    Amets, then try uploading the old version of the plugin from the backup, that should work too without tinkering with the code.

    If you don't have a backup or a copy of the older version of the plugin, you can always comment the code in the file, or even delete the wp-filebase plugin folder to recover your site. Good luck.

  5. chrisringtail
    Member
    Posted 2 years ago #

    Altering the code worked for me. but the update is poor. The default template that I was using is bad.

  6. Fabian
    Member
    Plugin Author

    Posted 2 years ago #

    Upgrade to 0.2.9.30 to fix it.

    The error was occurring on PHP versions earlier than 5.3. (I had updated my test systems to latest PHP Version, that's why I did not notice the incompatibility.)

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.