Title: How to fix JS and PHP errors
Last modified: November 12, 2018

---

# How to fix JS and PHP errors

 *  Resolved [lastant](https://wordpress.org/support/users/lastant/)
 * (@lastant)
 * [7 years, 6 months ago](https://wordpress.org/support/topic/fix-js-and-php-error/)
 * I could only get the plugin to work by fixing the following:
    -rename the JS 
   function ‘datepicker’ and thus ‘e.fn.datepicker.*’ to something else, because
   it conflicted with existing jQueryUI plugin. -wp-post-expires.php:287 changed
   $del_post[‘post_status’] to $del_post->post_status , because this is an object,
   not an array
    -  This topic was modified 7 years, 6 months ago by [lastant](https://wordpress.org/support/users/lastant/).

Viewing 1 replies (of 1 total)

 *  Plugin Author [X-NicON](https://wordpress.org/support/users/x-nicon/)
 * (@x-nicon)
 * [7 years, 2 months ago](https://wordpress.org/support/topic/fix-js-and-php-error/#post-11281599)
 * Tnx, fixed

Viewing 1 replies (of 1 total)

The topic ‘How to fix JS and PHP errors’ is closed to new replies.

 * ![](https://ps.w.org/wp-post-expires/assets/icon-128x128.png?rev=1475897)
 * [WP Post Expires](https://wordpress.org/plugins/wp-post-expires/)
 * [Support Threads](https://wordpress.org/support/plugin/wp-post-expires/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-post-expires/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-post-expires/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-post-expires/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [X-NicON](https://wordpress.org/support/users/x-nicon/)
 * Last activity: [7 years, 2 months ago](https://wordpress.org/support/topic/fix-js-and-php-error/#post-11281599)
 * Status: resolved