Title: Parse error: syntax error, unexpected &#8216;-&gt;&#8217; (T_OBJECT_OPERATOR)
Last modified: November 24, 2021

---

# Parse error: syntax error, unexpected ‘->’ (T_OBJECT_OPERATOR)

 *  Resolved [marcusr44](https://wordpress.org/support/users/marcusr44/)
 * (@marcusr44)
 * [4 years, 6 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-t_object_operator-9/)
 * Hi,
 * Hoping you can help. We just updated Ninja Forms plugin to latest update and 
   it caused the site to go down. I renamed the file to deactivate the plugin so
   I could see the error. The error appearing is:
 * Parse error: syntax error, unexpected ‘->’ (T_OBJECT_OPERATOR) in /home/composi5/
   public_html/wp-content/plugins/ninja-forms/includes/Routes/Submissions.php on
   line 716
 * Any ideas what I can do to fix this please?
 * Thanks.
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fparse-error-syntax-error-unexpected-t_object_operator-9%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  [renemanuel92](https://wordpress.org/support/users/renemanuel92/)
 * (@renemanuel92)
 * [4 years, 6 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-t_object_operator-9/#post-15114324)
 * I have the same problem, actually i had to deactivate the plugin
 *  [hinsert](https://wordpress.org/support/users/hinsert/)
 * (@hinsert)
 * [4 years, 5 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-t_object_operator-9/#post-15117206)
 * Had the same problem, plugin was deactivated.
 * Solution was to upgrade the PHP version from 5.6 to 7.3. Then I was able toe 
   reactivate the plugin and everything works fine now.
 *  Plugin Contributor [Justin McElhaney](https://wordpress.org/support/users/jmcelhaney/)
 * (@jmcelhaney)
 * [4 years, 5 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-t_object_operator-9/#post-15159451)
 * [@marcusr44](https://wordpress.org/support/users/marcusr44/) [@renemanuel92](https://wordpress.org/support/users/renemanuel92/)
   
   I am sorry for the trouble. [@hinsert](https://wordpress.org/support/users/hinsert/)
   is correct. Can you update your PHP version to at least PHP 7.2 and let us know
   if you are still having the same issue. WordPress recommends PHP 7.4 or later.
   [https://wordpress.org/about/requirements/](https://wordpress.org/about/requirements/)
 *  [ericksonstudio](https://wordpress.org/support/users/ericksonstudio/)
 * (@ericksonstudio)
 * [4 years, 5 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-t_object_operator-9/#post-15164201)
 * This is also happening in PHP 7.4 and 8.0:
 * `Parse error: syntax error, unexpected '->' (T_OBJECT_OPERATOR) in /(path)/wp-
   content/plugins/ninja-forms/includes/Routes/Submissions.php on line 717`
    -  This reply was modified 4 years, 5 months ago by [ericksonstudio](https://wordpress.org/support/users/ericksonstudio/).
 *  [grodanBoll](https://wordpress.org/support/users/grodanboll/)
 * (@grodanboll)
 * [4 years, 4 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-t_object_operator-9/#post-15217679)
 * ok so what version does it work for? I need to update but want to know what version
   ninja forms start working.

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

The topic ‘Parse error: syntax error, unexpected ‘->’ (T_OBJECT_OPERATOR)’ is closed
to new replies.

 * ![](https://ps.w.org/ninja-forms/assets/icon-256x256.png?rev=1649747)
 * [Ninja Forms - The Contact Form Builder That Grows With You](https://wordpress.org/plugins/ninja-forms/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/ninja-forms/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/ninja-forms/)
 * [Active Topics](https://wordpress.org/support/plugin/ninja-forms/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/ninja-forms/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/ninja-forms/reviews/)

 * 5 replies
 * 6 participants
 * Last reply from: [grodanBoll](https://wordpress.org/support/users/grodanboll/)
 * Last activity: [4 years, 4 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-t_object_operator-9/#post-15217679)
 * Status: resolved