Title: Use Shortcode show error message
Last modified: February 17, 2021

---

# Use Shortcode show error message

 *  Resolved [joechanaalimited](https://wordpress.org/support/users/joechanaalimited/)
 * (@joechanaalimited)
 * [5 years, 2 months ago](https://wordpress.org/support/topic/use-shortcode-show-error-message/)
 * Mine only customize product page can’t use the shortcode [cusrev_reviews] but
   other product pages can use it.
 * The WordPress shows the error message is Trying to get property of non-object
   in cr-ajax-product-reviews.php on line 32 and Uncaught Error: Call to a member
   function get_review_count() on array in cr-ajax-product-reviews.php on line 40.
 * Thankyou
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fuse-shortcode-show-error-message%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Plugin Support [cusrev](https://wordpress.org/support/users/cusrev/)
 * (@cusrev)
 * [5 years, 2 months ago](https://wordpress.org/support/topic/use-shortcode-show-error-message/#post-14071860)
 * Thanks for trying our plugin!
 * I think the problem is that you added the shortcode [cusrev_reviews] to the area
   on the page that is not related to WooCommerce and hence does not have access
   to its product-related variables. Please try using other shortcodes where there
   is an option to set the product ID as a shortcode parameter.
 *  Thread Starter [joechanaalimited](https://wordpress.org/support/users/joechanaalimited/)
 * (@joechanaalimited)
 * [5 years, 2 months ago](https://wordpress.org/support/topic/use-shortcode-show-error-message/#post-14071887)
 * We can use the [cusrev_all_reviews] shortcode but there is not give the client
   add the new review.
 * Can give the shortcode sample?
 * Thank you.
 *  Plugin Support [cusrev](https://wordpress.org/support/users/cusrev/)
 * (@cusrev)
 * [5 years, 2 months ago](https://wordpress.org/support/topic/use-shortcode-show-error-message/#post-14071892)
 * Thanks for providing additional information.
 * You can find full details about available shortcodes and supported parameters
   on the “Review Extensions” tab of the plugin’s settings.
 * Shortcodes that come with the plugin do not provide on-page review forms because
   reviews submitted directly on a store’s site cannot be verified.
 *  Thread Starter [joechanaalimited](https://wordpress.org/support/users/joechanaalimited/)
 * (@joechanaalimited)
 * [5 years, 2 months ago](https://wordpress.org/support/topic/use-shortcode-show-error-message/#post-14071905)
 * I tried to use the available shortcodes, but nothing is displayed add the review
   button.
 * Thank you.
 *  Thread Starter [joechanaalimited](https://wordpress.org/support/users/joechanaalimited/)
 * (@joechanaalimited)
 * [5 years, 2 months ago](https://wordpress.org/support/topic/use-shortcode-show-error-message/#post-14071911)
 * I tried to use the available shortcodes, but there is not showed to add a review
   button
 * Thank you.
 *  Plugin Support [cusrev](https://wordpress.org/support/users/cusrev/)
 * (@cusrev)
 * [5 years, 2 months ago](https://wordpress.org/support/topic/use-shortcode-show-error-message/#post-14081954)
 * Thanks for providing additional information.
 * As I wrote above, shortcodes that come with the plugin do not provide on-page
   review forms because reviews submitted directly on a store’s site cannot be verified.
   Our plugin was built for collection of verified reviews via email invitations.
   The plugin does not provide ‘add a review’ button in the shortcodes.
 *  Thread Starter [joechanaalimited](https://wordpress.org/support/users/joechanaalimited/)
 * (@joechanaalimited)
 * [5 years, 2 months ago](https://wordpress.org/support/topic/use-shortcode-show-error-message/#post-14082131)
 * ok.
    please tell me how to add a review button.
 * Thank you
 *  Plugin Support [cusrev](https://wordpress.org/support/users/cusrev/)
 * (@cusrev)
 * [5 years, 2 months ago](https://wordpress.org/support/topic/use-shortcode-show-error-message/#post-14082147)
 * Please use the standard WooCommerce review form – it already comes with an “add
   a review” button. No need to use any shortcodes.
 *  Thread Starter [joechanaalimited](https://wordpress.org/support/users/joechanaalimited/)
 * (@joechanaalimited)
 * [5 years, 2 months ago](https://wordpress.org/support/topic/use-shortcode-show-error-message/#post-14082166)
 * ok.
    Thank you.

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

The topic ‘Use Shortcode show error message’ is closed to new replies.

 * ![](https://ps.w.org/customer-reviews-woocommerce/assets/icon-256x256.png?rev
   =2532349)
 * [Customer Reviews for WooCommerce](https://wordpress.org/plugins/customer-reviews-woocommerce/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/customer-reviews-woocommerce/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/customer-reviews-woocommerce/)
 * [Active Topics](https://wordpress.org/support/plugin/customer-reviews-woocommerce/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/customer-reviews-woocommerce/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/customer-reviews-woocommerce/reviews/)

 * 9 replies
 * 2 participants
 * Last reply from: [joechanaalimited](https://wordpress.org/support/users/joechanaalimited/)
 * Last activity: [5 years, 2 months ago](https://wordpress.org/support/topic/use-shortcode-show-error-message/#post-14082166)
 * Status: resolved