Title: Product ID called incorrectly &#8211; PHP Error
Last modified: January 5, 2023

---

# Product ID called incorrectly – PHP Error

 *  Resolved [shamppi](https://wordpress.org/support/users/shamppi/)
 * (@shamppi)
 * [3 years, 4 months ago](https://wordpress.org/support/topic/product-id-called-incorrectly-php-error/)
 * Hi!
 * While reading my php-error logs, I noticed that the plugin created tons of error
   lines saying: 
   **Notice: id was called incorrectly. Product properties should
   not be accessed directly.**
 * I fixed this error locally by changing this:
 *     ```wp-block-code
       /**** File
       ./includes/iworks/omnibus/integration/class-iworks-omnibus-woocommerce.php:260
       **/
   
       // From this:
       if ( ! $this->should_it_show_up( $product->get_id() ) )
   
       // To this:
       if ( ! $this->should_it_show_up( $product->get_id() ) )
       ```
   
 * Please check this out and update.
 * Great plugin! 🙏

Viewing 1 replies (of 1 total)

 *  Plugin Author [Marcin Pietrzak](https://wordpress.org/support/users/iworks/)
 * (@iworks)
 * [3 years, 4 months ago](https://wordpress.org/support/topic/product-id-called-incorrectly-php-error/#post-16346384)
 * hi [@shamppi](https://wordpress.org/support/users/shamppi/)
 * Should be fixed in 2.1.3
 * Thank you!
 * Marcin

Viewing 1 replies (of 1 total)

The topic ‘Product ID called incorrectly – PHP Error’ is closed to new replies.

 * ![](https://ps.w.org/omnibus/assets/icon.svg?rev=2840819)
 * [Omnibus — show the lowest price](https://wordpress.org/plugins/omnibus/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/omnibus/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/omnibus/)
 * [Active Topics](https://wordpress.org/support/plugin/omnibus/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/omnibus/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/omnibus/reviews/)

## Tags

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

 * 1 reply
 * 2 participants
 * Last reply from: [Marcin Pietrzak](https://wordpress.org/support/users/iworks/)
 * Last activity: [3 years, 4 months ago](https://wordpress.org/support/topic/product-id-called-incorrectly-php-error/#post-16346384)
 * Status: resolved