Title: Parse Error
Last modified: August 30, 2016

---

# Parse Error

 *  [Ruchir](https://wordpress.org/support/users/ruchir/)
 * (@ruchir)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/parse-error-368/)
 * This is the error showing up.
 * Parse error: syntax error, unexpected ‘if’ (T_IF) in /home/rrmundra/public_html/
   aviralresources.com/wp-content/themes/magnis/framework/class-tgm-plugin-activation.
   php on line 1
 * Can someone please help me in getting this rectified.

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

 *  [Clayton James](https://wordpress.org/support/users/claytonjames/)
 * (@claytonjames)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/parse-error-368/#post-6697861)
 * Try replacing this file with a copy from your last backup, or a fresh unedited
   copy: /magnis/framework/**class-tgm-plugin-activation.php**
 * If that doesn’t work, use your ftp client or the file manager in your hosts control
   panel to rename or remove the magnis theme folder. When you log back in, the 
   default WordPress theme should take over and let you back in.
 *  [Juliette Reinders Folmer](https://wordpress.org/support/users/jrf/)
 * (@jrf)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/parse-error-368/#post-6697871)
 * Or you could try replacing that file (`wp-content/themes/magnis/framework/class-
   tgm-plugin-activation.php`) with the latest version of TGMPA which you can download
   for free: [http://tgmpluginactivation.com/download/](http://tgmpluginactivation.com/download/)
 * TGMPA is a helper library which handles dependencies between the theme and plugins.
   
   The theme appears to use the very out-of-date version 2.4.0, while the current
   version of TGMPA is 2.5.2.

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

The topic ‘Parse Error’ is closed to new replies.

## Tags

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

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 2 replies
 * 3 participants
 * Last reply from: [Juliette Reinders Folmer](https://wordpress.org/support/users/jrf/)
 * Last activity: [10 years, 7 months ago](https://wordpress.org/support/topic/parse-error-368/#post-6697871)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
