Title: Parse error: syntax error, unexpected &#8216;new&#8217; (T_NEW)
Last modified: August 21, 2017

---

# Parse error: syntax error, unexpected ‘new’ (T_NEW)

 *  [thor333](https://wordpress.org/support/users/thor333/)
 * (@thor333)
 * [8 years, 9 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-new-t_new/)
 * Hi guys,
    I just checked an old site of mine, and my frontpage looks like :
 * Parse error: syntax error, unexpected ‘new’ (T_NEW) in /homepages/1/d381725306/
   htdocs/livrescuisine_net/wp-content/plugins/db-cache-reloaded-fix/db-module.php
   on line 214
 * I tried to rename wp-content/plugins in plugins2, and this is what i get.
 * Warning: require_once(/homepages/1/d381725306/htdocs/livrescuisine_net/wp-content/
   plugins/db-cache-reloaded-fix/db-module.php): failed to open stream: No such 
   file or directory in /homepages/1/d381725306/htdocs/livrescuisine_net/wp-content/
   db.php on line 94
 * Fatal error: require_once(): Failed opening required ‘/homepages/1/d381725306/
   htdocs/livrescuisine_net/wp-content/plugins/db-cache-reloaded-fix/db-module.php’(
   include_path=’.:/usr/lib/php7.0′) in /homepages/1/d381725306/htdocs/livrescuisine_net/
   wp-content/db.php on line 94
 * I can’t access to wp-login on anything else other than my FTP access. I would
   prefer not to install everything again from scratch… 🙁
    Any ideas?
 * Pierre Adrien
 * 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-new-t_new%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  [Botrax](https://wordpress.org/support/users/botrax/)
 * (@botrax)
 * [8 years, 9 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-new-t_new/#post-9439720)
 * I am also stuck with this error. Need to fix it.
 * Restored an old site with DBCacheReloadedFix enabled, and now i’m stuck with 
   this error and a non-functional site.
 *  Thread Starter [thor333](https://wordpress.org/support/users/thor333/)
 * (@thor333)
 * [8 years, 8 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-new-t_new/#post-9521472)
 * Hoho!
 * Somebody cares about that problem?
 *  [aeternal](https://wordpress.org/support/users/aeternal/)
 * (@aeternal)
 * [8 years, 8 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-new-t_new/#post-9591509)
 * This plugin has started giving me problems on some on my very old sites with 
   an http 500 error. My solution was to delete the db-cache-reloaded-fix plugin
   folder and as well as a db.php file (and if there is also a db.ini file) in the
   wp-content directory.
 *  [frustigor](https://wordpress.org/support/users/frustigor/)
 * (@frustigor)
 * [8 years, 5 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-new-t_new/#post-9847946)
 * Well, the plugin is written many years ago. At that time, we did not use PHP7,
   which has some changes on syntax.
 * This issue is caused by a change of php & usage. Now you should modify the source
   code to fix, follow:
 * >  // db-cache-reload-fix.php
   >  // find ‘new pcache()’ // look, it uses ‘=& new
   > pcache()’ which is not allowed in PHP7 // change the line to: $pcache = new
   > pcache(); $this->dbcr_cache =& $pcache; // and do the same in db-module.php
 * Upload the file again, and go to your wp-admin to active the plugin.
    -  This reply was modified 8 years, 5 months ago by [Andrew Nevins](https://wordpress.org/support/users/anevins/).
    -  This reply was modified 8 years, 5 months ago by [frustigor](https://wordpress.org/support/users/frustigor/).
    -  This reply was modified 8 years, 5 months ago by [frustigor](https://wordpress.org/support/users/frustigor/).
 *  [rgires](https://wordpress.org/support/users/rgires/)
 * (@rgires)
 * [7 years, 11 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-new-t_new/#post-10458810)
 * Hi
    I made the changes on this branch git [https://github.com/pourri-dixit/DB-Cache-Reloaded-Fix](https://github.com/pourri-dixit/DB-Cache-Reloaded-Fix)

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

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

 * ![](https://s.w.org/plugins/geopattern-icon/db-cache-reloaded-fix.svg)
 * [DB Cache Reloaded Fix](https://wordpress.org/plugins/db-cache-reloaded-fix/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/db-cache-reloaded-fix/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/db-cache-reloaded-fix/)
 * [Active Topics](https://wordpress.org/support/plugin/db-cache-reloaded-fix/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/db-cache-reloaded-fix/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/db-cache-reloaded-fix/reviews/)

## Tags

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

 * 5 replies
 * 5 participants
 * Last reply from: [rgires](https://wordpress.org/support/users/rgires/)
 * Last activity: [7 years, 11 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-new-t_new/#post-10458810)
 * Status: not resolved