WordPress.org

Ready to get started?Download WordPress

Forums

Syntax error (18 posts)

  1. rmmiles
    Member
    Posted 2 years ago #

    I am getting the following message when I try to open my site, http://www.edit30.com...

    Parse error: syntax error, unexpected T_OBJECT_OPERATOR in /home/content/r/m/m/rmmiles/html/edit30/wp-content/plugins/w3-total-cache/lib/W3/Db.php on line 190

    and I have not clue what this means and, therefore, how to fix it.

    Can anyone help, please?

    RM Miles

  2. esmi
    Forum Moderator
    Posted 2 years ago #

    FTP into your site (or use whatever file management application your host provides) and rename the wp-content/plugins/w3-total-cache folder to wp-content/plugins/w3-total-cache-old.

  3. rmmiles
    Member
    Posted 2 years ago #

    esmi,

    pardon my ignorance, but I don't seem to have the file you mention. The closet I can come to it is:

    wp-content > plugins > w3-total-cache > wp > content > then there are other files but none for

    any guidance?

    Thanks in advance
    Richard

  4. rmmiles
    Member
    Posted 2 years ago #

    okay, got it renamed, so that takes that directory out of action. Don't I have to put a new similar directory in its place?
    And I am still getting the error stating...

    W3 Total Cache Error: some files appear to be missing or out of place. Please re-install plugin or remove /home/content/r/m/m/rmmiles/html/edit30/wp-content/advanced-cache.php.

    sorry for being a pain

    rmm

  5. esmi
    Forum Moderator
    Posted 2 years ago #

    Rename the wp-content/advanced-cache.php file to wp-content/advanced-cache.php.old

  6. rmmiles
    Member
    Posted 2 years ago #

    The following have been accomplished

    wp-content/plugins/w3-total-cache folder to wp-content/plugins/w3-total-cache-old
    and

    Rename the wp-content/advanced-cache.php file to wp-content/advanced-cache.php.old

    and the error message I get is:

    Parse error: syntax error, unexpected T_OBJECT_OPERATOR in /home/content/r/m/m/rmmiles/html/edit30/wp-content/plugins/w3-total-cache/lib/W3/Db.php on line 190

    REALLY appreciate your help with this!
    Richard

  7. esmi
    Forum Moderator
    Posted 2 years ago #

    Ok - let's approach this from another direction. Download a fresh copy of the plugin, unzip the archive and upload the plugin's folder to wp-content/plugins. Then rename wp-content/advanced-cache.php.old back to wp-content/advanced-cache.php

  8. rmmiles
    Member
    Posted 2 years ago #

    thanks, will do.
    leave the other two marked .old? Or change them back?
    r

  9. esmi
    Forum Moderator
    Posted 2 years ago #

    Leave wp-content/plugins/w3-total-cache-old as is for now.

  10. rmmiles
    Member
    Posted 2 years ago #

    Had to be away for a while.
    Thanks, but I have no idea which plugin is causing the problem.
    Can I delete them from the directory on the server?
    r

  11. rmmiles
    Member
    Posted 2 years ago #

    esmi
    how 'bout i just delete total-cache?
    r

  12. rmmiles
    Member
    Posted 2 years ago #

    esmi
    I decided to manually delete db.php and, amazingly, that worked.
    I don't know what plugin that was associated with, do you?
    Important because I don't EVER want to download it again.
    If you know, please pass the name along.
    thanks for your patience.
    r

  13. esmi
    Forum Moderator
    Posted 2 years ago #

    don't know what plugin that was associated with, do you?

    Yes - w3-total-cache.

  14. rmmiles
    Member
    Posted 2 years ago #

    well, duh! talk about thick!
    I'll stay away from that in the future.
    thanks for your patience and help.
    r

  15. esmi
    Forum Moderator
    Posted 2 years ago #

    No problem. Glad you got everything working again. :-)

  16. erniekatie
    Member
    Posted 2 years ago #

    rmmiles,
    can you help me with a similar problem? I am getting this message:
    Parse error: syntax error, unexpected T_OBJECT_OPERATOR in /usr/local/pem/vhosts/261894/webspace/siteapps/134602/htdocs/wp-content/plugins/w3-total-cache/lib/W3/Db.php on line 190

    but when I go into wp-content/plugins - I can't find one that says w3-total-cache. The only one I had was askimet so I deleted that but nothing happened. Thanks.

  17. rmmiles
    Member
    Posted 2 years ago #

    The problem appeared to have been with the plug-in: w3-total-cache. There evidently was something wrong with the code, so I just eliminated the plug-in.
    BUT, I couldn't get to the wp-admin page until I went into the code, which was in a directory on my host's server at GoDaddy.

    The instructions esmi gave me didn't work, however... I modified them.

    He said "FTP into your site (or use whatever file management application your host provides) and rename the wp-content/plugins/w3-total-cache folder to wp-content/plugins/w3-total-cache-old."

    That didn't work. So I went to that file and deleted "w3-total-cache" and that DID work,
    I reloaded the WP-admin page that was showing the error message and bingo, there was my own page.

    Hope it works for you.

  18. Frederick Townes
    Member
    Posted 2 years ago #

    This is fixed in the next release.

Topic Closed

This topic has been closed to new replies.

About this Topic