Title: Fix for PHP errors
Last modified: August 31, 2016

---

# Fix for PHP errors

 *  [Phil McDonnell](https://wordpress.org/support/users/philmcdonnell/)
 * (@philmcdonnell)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/fix-for-php-errors/)
 * I have updated the plugin code for this version as the developer seems to have
   neglected it. You can download the update here: [https://www.dropbox.com/s/z71lr7akg0jvkli/wp-opening-hours.zip?dl=0](https://www.dropbox.com/s/z71lr7akg0jvkli/wp-opening-hours.zip?dl=0)
 * It works fully with the latest version of WordPress.
 * To the developer, feel free to use my updated version and bump your plugin version
   up as this code works fine now. Removed all short php issues.
 * [https://wordpress.org/plugins/wp-opening-hours/](https://wordpress.org/plugins/wp-opening-hours/)

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

 *  [kathzilstudio](https://wordpress.org/support/users/kathzilstudio/)
 * (@kathzilstudio)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/fix-for-php-errors/#post-6993073)
 * Thank you for the update 🙂
 *  [Wayne](https://wordpress.org/support/users/waynep16/)
 * (@waynep16)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/fix-for-php-errors/#post-6993075)
 * What did you update / change?
 *  Thread Starter [Phil McDonnell](https://wordpress.org/support/users/philmcdonnell/)
 * (@philmcdonnell)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/fix-for-php-errors/#post-6993076)
 * [@waynep16](https://wordpress.org/support/users/waynep16/), I don’t remember 
   exactly, but know that I touched a bunch of things. You can use a compare program
   to look at the original and my version to see the differences. Mostly it was 
   the way the PHP tags were used if I remember correctly. Let me know if I can 
   help with anything.
 *  [Wayne](https://wordpress.org/support/users/waynep16/)
 * (@waynep16)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/fix-for-php-errors/#post-6993077)
 * hey Phil, were using the new beta version of this plug in – which is miles better
   but was never released !
 * much like the original though – the beta has had no love or updates , so since
   the latest WP came out (few versions ago) our error log is filled with:
 *     ```
       PHP Warning:
       Declaration of OpeningHours\Module\Widget\AbstractWidget::form(array $instance) should be compatible with WP_Widget::form($instance) in /home/dev/public_html/wp-content/plugins/wp-opening-hours/classes/OpeningHours/Module/Widget/AbstractWidget.php on line 437
       Line 437 is just }
       ```
   
 * Whats your email – ill send over the v2 beta
 *  Thread Starter [Phil McDonnell](https://wordpress.org/support/users/philmcdonnell/)
 * (@philmcdonnell)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/fix-for-php-errors/#post-6993078)
 * [@waynep16](https://wordpress.org/support/users/waynep16/) That is just a warning
   because of a strict non-conformance. You can send it to me at pmcdonnell -at-
   gmail I won’t have time to look at it till tonight. Should be simple enough to
   fix though…
 *  [eemoore](https://wordpress.org/support/users/eemoore/)
 * (@eemoore)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/fix-for-php-errors/#post-6993079)
 * I just found this thread and see that your update precedes Coleman, when I first
   had any issues with this plug-in. Opening Hours seems to be the culprit with 
   my editor not functioning. Do you know if your update solves the issues described
   in the other thread, having to do with the WP update?
 * Thanks for working on the plug-in; I really liked it and was bummed to take it
   down. I tried a few others when I did and didn’t like them as much.
 *  Thread Starter [Phil McDonnell](https://wordpress.org/support/users/philmcdonnell/)
 * (@philmcdonnell)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/fix-for-php-errors/#post-6993080)
 * [@eemoore](https://wordpress.org/support/users/eemoore/) Not sure what other 
   thread you are talking about? I haven’t had any issues with my editor. You could
   download my file from above and give it a shot. Let us know if it is working 
   for you. I would assume that the original plugin could have caused issues with
   anything if it was not compatible with your server at the time…
 * [@waynep16](https://wordpress.org/support/users/waynep16/), I didn’t forget about
   you, just haven’t had time to test your version yet. Hope to do it by the weekend.

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

The topic ‘Fix for PHP errors’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/wp-opening-hours_3e2c4f.svg)
 * [Opening Hours](https://wordpress.org/plugins/wp-opening-hours/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-opening-hours/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-opening-hours/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-opening-hours/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-opening-hours/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-opening-hours/reviews/)

 * 7 replies
 * 4 participants
 * Last reply from: [Phil McDonnell](https://wordpress.org/support/users/philmcdonnell/)
 * Last activity: [9 years, 11 months ago](https://wordpress.org/support/topic/fix-for-php-errors/#post-6993080)
 * Status: not resolved