Title: PHP warning
Last modified: December 28, 2021

---

# PHP warning

 *  Resolved [ArtGoddess](https://wordpress.org/support/users/artgoddess/)
 * (@artgoddess)
 * [4 years, 5 months ago](https://wordpress.org/support/topic/php-warning-332/)
 * Hello,
 * There are PHP warnings in the wp-debug.log file.
 *     ```
       [27-Dec-2021 21:21:14 UTC] PHP Fatal error:  Uncaught Error: Undefined constant "shortpixelKey" in /home/user/domain.com/wp-content/plugins/phoenix-media-rename/class-media-rename.php:787
       Stack trace:
       #0 /home/user/domain.com/wp-content/plugins/phoenix-media-rename/class-media-rename.php(673): Phoenix_Media_Rename::update_metadata()
       #1 /home/user/domain.com/wp-content/plugins/phoenix-media-rename/class-media-rename.php(367): Phoenix_Media_Rename::do_rename()
       #2 /home/user/domain.com/wp-includes/class-wp-hook.php(303): Phoenix_Media_Rename->ajax_pnx_rename()
       #3 /home/user/domain.com/wp-includes/class-wp-hook.php(327): WP_Hook->apply_filters()
       #4 /home/user/domain.com/wp-includes/plugin.php(470): WP_Hook->do_action()
       #5 /home/user/domain.com/wp-admin/admin-ajax.php(187): do_action()
       #6 {main}
         thrown in /home/user/domain.com/wp-content/plugins/phoenix-media-rename/class-media-rename.php on line 787
       ```
   
 * Debug log file is activated:
    [https://wordpress.org/support/article/debugging-in-wordpress/#wp_debug_log](https://wordpress.org/support/article/debugging-in-wordpress/#wp_debug_log)
 * WordPress 5.8.2
    Debug activated PHP 8 with Apache
 * Thanks for listening.

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

 *  Plugin Author [crossi72](https://wordpress.org/support/users/crossi72/)
 * (@crossi72)
 * [4 years, 5 months ago](https://wordpress.org/support/topic/php-warning-332/#post-15203272)
 * Hi [@artgoddess](https://wordpress.org/support/users/artgoddess/),
    I fixed a
   similar warning raised by code that manages the compatibility with ShortPixel,
   are you using ShortPixel Image Optimizer?
 * I’ll release the new version next week, I’ll let you know as soon as it will 
   be released to check if the warnings persist.
 * Thank you for reporting
    C.
 *  Thread Starter [ArtGoddess](https://wordpress.org/support/users/artgoddess/)
 * (@artgoddess)
 * [4 years, 5 months ago](https://wordpress.org/support/topic/php-warning-332/#post-15203396)
 * Hi [@crossi72](https://wordpress.org/support/users/crossi72/)
 * Thank you for your answer.
 * Yes, I confirm I’m using Enable Media Replace Version 3.6.3 By ShortPixel
 * I’ll test and let you know. Many thanks! 🙂
 *  [mattce](https://wordpress.org/support/users/mattce/)
 * (@mattce)
 * [4 years, 4 months ago](https://wordpress.org/support/topic/php-warning-332/#post-15250383)
 * I’m also having this issue, if you could publish the new version soon, it would
   be great! Thanks a lot!
 *  Plugin Author [crossi72](https://wordpress.org/support/users/crossi72/)
 * (@crossi72)
 * [4 years, 4 months ago](https://wordpress.org/support/topic/php-warning-332/#post-15251834)
 * Hi [@mattce](https://wordpress.org/support/users/mattce/),
    I’m sorry, but the
   new release has been delayed because I’ve been quarantined due to covid infection.
 * I will go back to my office on next Monday, I hope to release the new version
   on Tuesday.
 * C.
 *  [mattce](https://wordpress.org/support/users/mattce/)
 * (@mattce)
 * [4 years, 4 months ago](https://wordpress.org/support/topic/php-warning-332/#post-15261478)
 * Thanks a lot! And I hope you’re feeling well 👌
 *  Thread Starter [ArtGoddess](https://wordpress.org/support/users/artgoddess/)
 * (@artgoddess)
 * [4 years, 4 months ago](https://wordpress.org/support/topic/php-warning-332/#post-15261554)
 * Hi, [@crossi72](https://wordpress.org/support/users/crossi72/) many thanks for
   your time.
 * After updating to Versión 3.4.9, I have tested in two sites, changed the filename
   of a media element with no issues, and no PHP warnings neither in the backend
   nor debug file.
 * Let’s consider the issue solved. Many thanks, and stay safe. 🙂
 *  Plugin Author [crossi72](https://wordpress.org/support/users/crossi72/)
 * (@crossi72)
 * [4 years, 4 months ago](https://wordpress.org/support/topic/php-warning-332/#post-15268734)
 * Hi all,
    thanks for your patience, excuse me for making you wait.
 * Now I’m back to work, another release will follow in a few week to address another
   issue (related to wp-cli).
 * C.

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

The topic ‘PHP warning’ is closed to new replies.

 * ![](https://ps.w.org/phoenix-media-rename/assets/icon-256x256.png?rev=3120623)
 * [Phoenix Media Rename](https://wordpress.org/plugins/phoenix-media-rename/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/phoenix-media-rename/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/phoenix-media-rename/)
 * [Active Topics](https://wordpress.org/support/plugin/phoenix-media-rename/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/phoenix-media-rename/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/phoenix-media-rename/reviews/)

## Tags

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

 * 7 replies
 * 3 participants
 * Last reply from: [crossi72](https://wordpress.org/support/users/crossi72/)
 * Last activity: [4 years, 4 months ago](https://wordpress.org/support/topic/php-warning-332/#post-15268734)
 * Status: resolved