Title: Error when try to install plugin
Last modified: March 25, 2017

---

# Error when try to install plugin

 *  Resolved [savastgfx](https://wordpress.org/support/users/savastgfx/)
 * (@savastgfx)
 * [9 years, 2 months ago](https://wordpress.org/support/topic/error-when-try-to-install-plugin-2/)
 * I receive this error when i try to activate the plugin… I install it on other
   themes and i have no problem. I don’t know what can be the problem now. Thanks.
 * Parse error: syntax error, unexpected T_FUNCTION in /home/public_html/www.sitename.
   com/wp-content/plugins/woocommerce-pay-per-post/woocommerce-payperpost.php on
   line 152

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

 *  Plugin Author [Matt Pramschufer](https://wordpress.org/support/users/mattpramschufer/)
 * (@mattpramschufer)
 * [9 years, 2 months ago](https://wordpress.org/support/topic/error-when-try-to-install-plugin-2/#post-8957760)
 * You are running a very old version of PHP. You can upgrade to at least version
   5.3 of PHP or you can comment out that line of code. It turns off comments.
 *  Thread Starter [savastgfx](https://wordpress.org/support/users/savastgfx/)
 * (@savastgfx)
 * [9 years, 2 months ago](https://wordpress.org/support/topic/error-when-try-to-install-plugin-2/#post-8957798)
 * Thanks for your answer. I try to remove that line but i have the same problem
   with next line. It is a problem if i remove the other line etc…
 * Thanks for your quick answer.
 *  Plugin Author [Matt Pramschufer](https://wordpress.org/support/users/mattpramschufer/)
 * (@mattpramschufer)
 * [9 years, 2 months ago](https://wordpress.org/support/topic/error-when-try-to-install-plugin-2/#post-8958870)
 * you need to remove the entire filter. So comment out or delete all of the lines
   below.
 * //Turn off comments for pages user doesn’t have access to.
    add_filter(‘comments_open’,
   function () { return false; });
 *  Thread Starter [savastgfx](https://wordpress.org/support/users/savastgfx/)
 * (@savastgfx)
 * [9 years, 2 months ago](https://wordpress.org/support/topic/error-when-try-to-install-plugin-2/#post-8968215)
 * Hi, It worked after i delete this line, but now i have another error. Can this
   be solved? “Warning: call_user_func_array() [function.call-user-func-array]: 
   First argument is expected to be a valid callback, ‘Woocommerce_PayPerPost::render’
   was given in /home/public_html/www.sitename.com/wp-includes/class-wp-hook.php
   on line 298”. Thanks.
 *  Plugin Author [Matt Pramschufer](https://wordpress.org/support/users/mattpramschufer/)
 * (@mattpramschufer)
 * [9 years, 2 months ago](https://wordpress.org/support/topic/error-when-try-to-install-plugin-2/#post-8969411)
 * What version of wordpress are you running, what version of php are you running?
   Where does that warning appear? That isn’t an error just a warning, but it still
   should not be happening.
 *  Thread Starter [savastgfx](https://wordpress.org/support/users/savastgfx/)
 * (@savastgfx)
 * [9 years, 2 months ago](https://wordpress.org/support/topic/error-when-try-to-install-plugin-2/#post-8969501)
 * Hi, I am using the latest version of WordPress and php version is 5.2… this warning
   substitute post excerpt.
 *  Plugin Author [Matt Pramschufer](https://wordpress.org/support/users/mattpramschufer/)
 * (@mattpramschufer)
 * [9 years, 2 months ago](https://wordpress.org/support/topic/error-when-try-to-install-plugin-2/#post-8969521)
 * you can easily hide those warnings by simply turning error reporting off. Take
   a look at [https://wordimpress.com/php-turn-on-or-off-error-reporting/](https://wordimpress.com/php-turn-on-or-off-error-reporting/)
 * I would recommend upgrading PHP as that will remove the warning, but if you cant
   then hide the notice.

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

The topic ‘Error when try to install plugin’ is closed to new replies.

 * ![](https://ps.w.org/woocommerce-pay-per-post/assets/icon-256x256.png?rev=2252656)
 * [Pay For Post with WooCommerce](https://wordpress.org/plugins/woocommerce-pay-per-post/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woocommerce-pay-per-post/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woocommerce-pay-per-post/)
 * [Active Topics](https://wordpress.org/support/plugin/woocommerce-pay-per-post/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woocommerce-pay-per-post/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woocommerce-pay-per-post/reviews/)

 * 7 replies
 * 2 participants
 * Last reply from: [savastgfx](https://wordpress.org/support/users/savastgfx/)
 * Last activity: [9 years, 2 months ago](https://wordpress.org/support/topic/error-when-try-to-install-plugin-2/#post-8969501)
 * Status: resolved