Title: PHP 8.0 issue: deprecated create_function()
Last modified: October 12, 2021

---

# PHP 8.0 issue: deprecated create_function()

 *  Resolved [sebiev](https://wordpress.org/support/users/sebiev/)
 * (@sebiev)
 * [4 years, 7 months ago](https://wordpress.org/support/topic/php-8-0-issue-deprecated-create_function/)
 * Hi, I have customized the function. Now error messages come in adminpanel->wp-
   filebase.
 *     ```
       function wpfb_callback($cl, $fnc) 
           { 
               return function() 
               { 
                   $p=func_get_args(); 
                   return wpfb_call("' . $cl . '","' . $fnc . '",$p,true); 
               }; 
           }
       ```
   
 * Notice: Undefined variable: cl in …/wp-content/plugins/wp-filebase/wp-filebase.
   php on line 86
 * Notice: Undefined variable: fnc in …/wp-content/plugins/wp-filebase/wp-filebase.
   php on line 86
 * Warning: include_once(…/plugins/wp-filebase/classes/’ . . ‘.php): failed to open
   stream: No such file or directory in …/wp-content/plugins/wp-filebase/wp-filebase.
   php on line 47
 * Warning: include_once(): Failed opening ‘…/wp-content/plugins/wp-filebase/classes/’..‘.
   php’ for inclusion (include_path=’.:/usr/local/lib/php/’) in …wp-content/plugins/
   wp-filebase/wp-filebase.php on line 47`
    `
 * call is set `wpfb_call('Output', 'PrintJS');` in AdminBar.php
 * do you have an idea?
    -  This topic was modified 4 years, 7 months ago by [sebiev](https://wordpress.org/support/users/sebiev/).
    -  This topic was modified 4 years, 7 months ago by [sebiev](https://wordpress.org/support/users/sebiev/).

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Thread Starter [sebiev](https://wordpress.org/support/users/sebiev/)
 * (@sebiev)
 * [4 years, 7 months ago](https://wordpress.org/support/topic/php-8-0-issue-deprecated-create_function/#post-14965376)
 * server is running on php 7.4
 * after changing the function the variable loses its content after including
    wpfb_call(‘
   Output’, ‘PrintJS’);.
 * WP-Filebase Error: Could not include class file ” . . ”!
 *  Thread Starter [sebiev](https://wordpress.org/support/users/sebiev/)
 * (@sebiev)
 * [4 years, 7 months ago](https://wordpress.org/support/topic/php-8-0-issue-deprecated-create_function/#post-14965779)
 *     ```
       return function() use($cl, $fnc){
            $p=func_get_args(); 
            return wpfb_call($cl, $fnc, $p, true);
        };
       ```
   
    -  This reply was modified 4 years, 7 months ago by [sebiev](https://wordpress.org/support/users/sebiev/).

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘PHP 8.0 issue: deprecated create_function()’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/wp-filebase_ffff6e.svg)
 * [WP-Filebase Download Manager](https://wordpress.org/plugins/wp-filebase/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-filebase/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-filebase/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-filebase/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-filebase/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-filebase/reviews/)

 * 2 replies
 * 1 participant
 * Last reply from: [sebiev](https://wordpress.org/support/users/sebiev/)
 * Last activity: [4 years, 7 months ago](https://wordpress.org/support/topic/php-8-0-issue-deprecated-create_function/#post-14965779)
 * Status: resolved