• 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 to see the link]

Viewing 5 replies - 1 through 5 (of 5 total)
  • 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

    (@thor333)

    Hoho!

    Somebody cares about that problem?

    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.

    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 6 years, 10 months ago by Andrew Nevins.
    • This reply was modified 6 years, 10 months ago by frustigor.
    • This reply was modified 6 years, 10 months ago by frustigor.

    Hi
    I made the changes on this branch git
    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.