WordPress.org

Ready to get started?Download WordPress

Forums

Reinstallation error (11 posts)

  1. stardustent
    Member
    Posted 4 months ago #

    My WordPress files were attacked with malware with my GoDaddy hosting. So, I searched the net and spent hours following the different instructions that I found and decided that since so many files were altered, it was best to just download a fresh copy of WordPress and manually install it back to my domain via FTP.

    However, I'm having issues with getting the wp-config file to work for me. Any assistance that someone can provide is MUCH appreciated! I'm going crazy trying to figure this out.

    This is what it says when I try to access my domain, "Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING in /my-domain-information-is-here/wp-config.php on line 64"

    Line 64 is:
    $table_prefix = 'wp_';

    You can view this issue on stardust-ent.com

    THANK YOU

  2. JumboClicks
    Member
    Posted 4 months ago #

    normally what that is is...
    you forgot a quote but that line looks correct.

    I would recount maybe you are looking at the wrong line

    look for missing 'quotes and for mismatched "quotes' and for special characters that look like a quote but arent a quote

  3. JumboClicks
    Member
    Posted 4 months ago #

    Also since you say your site has been attacked you should do a manual reinstall of all of your core files at minimum.

    It is possible someone attacked your files in a way to look for a different wp-config.php file

    Do a backup of everything now if you haven't yet
    make a copy of that
    put it in a zip file and don't touch it
    use your first backup for restoration

  4. Senff
    Member
    Posted 4 months ago #

    Can you post the lines from wp-config.php that come before line 64? If possible, lines 63-65.

  5. stardustent
    Member
    Posted 4 months ago #

    This is lines 56-66.

    /**#@-*/
    
    /**
     * WordPress Database Table prefix.
     *
     * You can have multiple installations in one database if you give each a unique
     * prefix. Only numbers, letters, and underscores please!
     */
    $table_prefix  = 'wp_';
    
    /**
  6. Senff
    Member
    Posted 4 months ago #

    My guess is that there is a missing semicolon or quote even before that, in the line that starts with define('NONCE_SALT',.

    Sorry, can you post a few lines more? 50-55 more specifically.

  7. stardustent
    Member
    Posted 4 months ago #

    Sure! I generated the keys via this website and had copied and pasted them in to the file. I'll change them again too.

    define('SECURE_AUTH_SALT', 'PntiPP/h{CSL3b; eoT@ajo~_TSZo-u?<HOJjgA%}X#]VTmZ$T4/-B(KhNY5+wey');
    define('LOGGED_IN_SALT',   ',z,Hw :X>+0LBGy:S5?#72aLh+>;1#B}x|AeVf)aq{C#ur@Y0*S@+CW=[(FU|hZG');
    define('NONCE_SALT',       'mj5|Y^)^cf+):3o {+k.d5~2<code>$|h$26|:O/+D<+-iezK +4XI%ZCd?BBmWS</code>=v7q');
    define('FORCE_SSL_LOGIN', true);
    define('FORCE_SSL_ADMIN', true');
  8. Senff
    Member
    Posted 4 months ago #

    There is an apostrophe/quote too many after "true" on the last line of that last block of code. You have:

    define('FORCE_SSL_ADMIN', true');

    Which should be:

    define('FORCE_SSL_ADMIN', true);
  9. stardustent
    Member
    Posted 4 months ago #

    Oh my goodness. I feel like I should have caught that. Thank you sooooooooo much for your assistance!

  10. stardustent
    Member
    Posted 4 months ago #

    I seem to be having a different issue with the re-installation. After having gotten all of this squared away, I had a white screen pop up in the place of the website.

    After searching and reading numerous troubleshooting suggestions that other people have had, I looked to make sure the database and version numbers were all the same--one number was different in the config file so I changed it to what the database had listed. Tried refreshing and the screen is still white.

    I know it's possible that I did the reinstall incorrectly, but I deleted everything because it all had the malware codes attached to it and I wanted to make sure that everything was going to be clean.

    I have also tried renaming the plugins folder, and that still gave me a white screen. Is it easier to just delete this particular database and begin everything all over again with the fresh install?

  11. Senff
    Member
    Posted 4 months ago #

    Is it easier to just delete this particular database and begin everything all over again with the fresh install?

    Starting over completely (with a fresh copy of WordPress and an empty database) is for sure the cleanest way and is sure to be free from the malware that infected your previous site.

    Of course, it'll be a lot of work. You could start from scratch and then replace the new install bit by bit with parts of your old install (first the theme files, then the old database, etc.) but that way you run the risk that you're moving infected parts into your new site again.

Reply

You must log in to post.

About this Topic