Title: plugin meta box generates warning log when using file_input
Last modified: March 30, 2022

---

# plugin meta box generates warning log when using file_input

 *  Resolved [Super Pel](https://wordpress.org/support/users/oiewhfufbhjsdfjbkfskjduhuyuy/)
 * (@oiewhfufbhjsdfjbkfskjduhuyuy)
 * [4 years, 2 months ago](https://wordpress.org/support/topic/plugin-meta-box-generates-warning-log-when-using-file_input/)
 *     ```
       hello,
   
       thank you for this awesome plugin,
   
       I want to report an issue when using the "file_input" type.
   
       the error is:
   
       [30-Mar-2022 09:04:35 UTC] PHP Notice:  Only variables should be passed by reference in C:\fakepath\wp-content\plugins\meta-box\inc\fields\file-input.php on line 38
   
       after I look at file-input.php on line 38, I change it 
       <strong>from</strong>
   
       <blockquote>$file_ext   = strtolower( end( explode( '.', $meta ) ) );</blockquote>
   
       <strong>to </strong>
   
       <blockquote>$end = explode( '.', $meta );
       $file_ext   = strtolower( end( $end ) );</blockquote>
   
       the error disappears.
   
       I hope this issue will be patched asap, thank you
       ```
   
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fplugin-meta-box-generates-warning-log-when-using-file_input%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 1 replies (of 1 total)

 *  Plugin Support [Neo WhiteRabbit](https://wordpress.org/support/users/longnguyen89/)
 * (@longnguyen89)
 * [4 years, 2 months ago](https://wordpress.org/support/topic/plugin-meta-box-generates-warning-log-when-using-file_input/#post-15509751)
 * Hi,
 * Thanks for your feedback.
 * This issue was fixed from this commit [https://github.com/wpmetabox/meta-box/commit/73f9b021a48ff68c393b7d5d618b08ce3bb8a72f](https://github.com/wpmetabox/meta-box/commit/73f9b021a48ff68c393b7d5d618b08ce3bb8a72f)
 * It will be included in the next update.

Viewing 1 replies (of 1 total)

The topic ‘plugin meta box generates warning log when using file_input’ is closed
to new replies.

 * ![](https://ps.w.org/meta-box/assets/icon-128x128.png?rev=1100915)
 * [Meta Box](https://wordpress.org/plugins/meta-box/)
 * [Support Threads](https://wordpress.org/support/plugin/meta-box/)
 * [Active Topics](https://wordpress.org/support/plugin/meta-box/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/meta-box/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/meta-box/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Neo WhiteRabbit](https://wordpress.org/support/users/longnguyen89/)
 * Last activity: [4 years, 2 months ago](https://wordpress.org/support/topic/plugin-meta-box-generates-warning-log-when-using-file_input/#post-15509751)
 * Status: resolved