Title: php warnings undefined array
Last modified: July 25, 2023

---

# php warnings undefined array

 *  Resolved [preface1728](https://wordpress.org/support/users/preface1728/)
 * (@preface1728)
 * [2 years, 8 months ago](https://wordpress.org/support/topic/php-warnings-undefined-array/)
 * Uploading custom_font.ttf with plugin “Custom Fonts” gives the following php 
   warnings:
   Trying to access array offset on value of type bool in /path/to/public_html/
   wp-includes/script-loader.php on line 3437Undefined array key “font-family” in/
   path/to/public_html/wp-includes/script-loader.php on line 3583Undefined array
   key “font-family” in /path/to/public_html/wp-includes/script-loader.php on line
   3601
 * They are seen on the WP admin screen

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

 *  Plugin Support [Herman Asrori (BSF)](https://wordpress.org/support/users/bsfherman/)
 * (@bsfherman)
 * [2 years, 8 months ago](https://wordpress.org/support/topic/php-warnings-undefined-array/#post-16926118)
 * Hi [@preface1728](https://wordpress.org/support/users/preface1728/),
 * As I am aware of, there’s no users report the same thing. Is there any specific
   step to replicate this? Also, what PHP version you are using? Just in case it
   is related.
 * I look forward to hearing from you.
 * Kind regards,
    Herman 😊
 *  Thread Starter [preface1728](https://wordpress.org/support/users/preface1728/)
 * (@preface1728)
 * [2 years, 8 months ago](https://wordpress.org/support/topic/php-warnings-undefined-array/#post-16933172)
 * Hello Herman,
 * I think the problem is related to php. I have OpenLiteSpeed with lsphp82.
 * I have personally found another plugin as a workaround.
    -  This reply was modified 2 years, 8 months ago by [preface1728](https://wordpress.org/support/users/preface1728/).
 *  Plugin Support [Herman Asrori (BSF)](https://wordpress.org/support/users/bsfherman/)
 * (@bsfherman)
 * [2 years, 8 months ago](https://wordpress.org/support/topic/php-warnings-undefined-array/#post-16935125)
 * Hi [@preface1728](https://wordpress.org/support/users/preface1728/),
 * Thanks for the update. Could you confirm that downgrading PHP to 8.1 or even 
   8.0 fixes this?
 * I look forward to hearing from you.
 * Kind regards,
    Herman 😊
 *  Plugin Support [Herman Asrori (BSF)](https://wordpress.org/support/users/bsfherman/)
 * (@bsfherman)
 * [2 years, 7 months ago](https://wordpress.org/support/topic/php-warnings-undefined-array/#post-16986706)
 * Hi,
 * It’s been a while since my last message. I am marking this thread as Resolved
   due to inactivity. Feel free to start a new thread if there is anything else 
   related to this plugin, we can help you with.
 * Kind regards,
    Herman 😊

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

The topic ‘php warnings undefined array’ is closed to new replies.

 * ![](https://ps.w.org/custom-fonts/assets/icon-256x256.gif?rev=3001076)
 * [Custom Fonts - Host Your Fonts Locally](https://wordpress.org/plugins/custom-fonts/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/custom-fonts/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/custom-fonts/)
 * [Active Topics](https://wordpress.org/support/plugin/custom-fonts/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/custom-fonts/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/custom-fonts/reviews/)

## Tags

 * [php](https://wordpress.org/support/topic-tag/php/)

 * 4 replies
 * 2 participants
 * Last reply from: [Herman Asrori (BSF)](https://wordpress.org/support/users/bsfherman/)
 * Last activity: [2 years, 7 months ago](https://wordpress.org/support/topic/php-warnings-undefined-array/#post-16986706)
 * Status: resolved