Title: Undefined variable: asset_file
Last modified: August 19, 2022

---

# Undefined variable: asset_file

 *  [Morgan Hvidt](https://wordpress.org/support/users/morganhvidt/)
 * (@morganhvidt)
 * [3 years, 10 months ago](https://wordpress.org/support/topic/undefined-variable-asset_file/)
 *     ```
       Notice: Undefined variable: asset_file in /www/conditionalblockscom_369/public/wp-content/plugins/lottiefiles/src/gutenberg-block/init.php on line 126
   
       Notice: Trying to access array offset on value of type null in /www/conditionalblockscom_369/public/wp-content/plugins/lottiefiles/src/gutenberg-block/init.php on line 126
       ```
   
 * I get this error on every page after installing the plugin and viewing the website
   while logged out.

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

 *  Thread Starter [Morgan Hvidt](https://wordpress.org/support/users/morganhvidt/)
 * (@morganhvidt)
 * [3 years, 10 months ago](https://wordpress.org/support/topic/undefined-variable-asset_file/#post-15930880)
 * The code on the line is
 * `$asset_file['version']`
 * should be
 * `$asset_file_front['version']`
 *  Plugin Author [LottieFiles](https://wordpress.org/support/users/lottiefile/)
 * (@lottiefile)
 * [3 years, 9 months ago](https://wordpress.org/support/topic/undefined-variable-asset_file/#post-15965559)
 * Hey [@morganhvidt](https://wordpress.org/support/users/morganhvidt/)
 * Thank you reporting the issue. Our team will look into this issue and resolve
   in the upcoming build.

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

The topic ‘Undefined variable: asset_file’ is closed to new replies.

 * ![](https://ps.w.org/lottiefiles/assets/icon.svg?rev=2726590)
 * [LottieFiles](https://wordpress.org/plugins/lottiefiles/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/lottiefiles/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/lottiefiles/)
 * [Active Topics](https://wordpress.org/support/plugin/lottiefiles/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/lottiefiles/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/lottiefiles/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [LottieFiles](https://wordpress.org/support/users/lottiefile/)
 * Last activity: [3 years, 9 months ago](https://wordpress.org/support/topic/undefined-variable-asset_file/#post-15965559)
 * Status: not resolved