Title: Passing null to string warning
Last modified: July 3, 2024

---

# Passing null to string warning

 *  [cnxsoft](https://wordpress.org/support/users/cnxsoft/)
 * (@cnxsoft)
 * [1 year, 11 months ago](https://wordpress.org/support/topic/passing-null-to-string-warning/)
 * The plugin works but I have a warning showing up in debug.log:
 * [03-Jul-2024 04:05:30 UTC] PHP Deprecated: pathinfo(): Passing null to parameter#
   1 ($path) of type string is deprecated in /zzz/public_html/wp-content/plugins/
   urvanov-syntax-highlighter/class-urvanov-syntax-highlighter-langs.php on line
   86
 * I modified the code as follows and it seems OK:
 * `if ( '' != $path) {
    extract(pathinfo($path));}
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fpassing-null-to-string-warning%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 1 replies (of 1 total)

 *  Plugin Author [urvanov](https://wordpress.org/support/users/urvanov/)
 * (@urvanov)
 * [1 year, 10 months ago](https://wordpress.org/support/topic/passing-null-to-string-warning/#post-17928760)
 * Fixed in 2.8.37. I hope.

Viewing 1 replies (of 1 total)

The topic ‘Passing null to string warning’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/urvanov-syntax-highlighter.svg)
 * [Urvanov Syntax Highlighter](https://wordpress.org/plugins/urvanov-syntax-highlighter/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/urvanov-syntax-highlighter/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/urvanov-syntax-highlighter/)
 * [Active Topics](https://wordpress.org/support/plugin/urvanov-syntax-highlighter/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/urvanov-syntax-highlighter/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/urvanov-syntax-highlighter/reviews/)

## Tags

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

 * 1 reply
 * 2 participants
 * Last reply from: [urvanov](https://wordpress.org/support/users/urvanov/)
 * Last activity: [1 year, 10 months ago](https://wordpress.org/support/topic/passing-null-to-string-warning/#post-17928760)
 * Status: not resolved