Hey guys,
I just joined because I am having trouble with my WordPress blog... let me run down what I did...
My website was loading slowly so I looked up on Google for ways to speed it up. I disabled a plugin that was checking to see if I was online on several different messengers, which is what support from HostGator told me it may be. I found a site that suggested installing WP-Super Cache.
I already had WP-Cache installed, so I had to follow these instructions to install Super Cache:
# You must have mod mime, mod rewrite and fancy permalinks enabled. PHP safe mode should be disabled.
If you have WP-Cache installed already, please disable it. Edit wp-config.php and make sure the WP_CACHE define is deleted, and remove the files wp-content/wp-cache-config.php and wp-content/advanced-cache.php. These will be recreated when you install this plugin.
Upload this directory to your plugins directory. It will create a 'wp-content/plugins/wp-super-cache/' directory.
If you are using WordPress MU you will need to install this in 'wp-content/mu-plugins/wp-super-cache/' and the file wp-cache.php must be copied into the mu-plugins directory.
WordPress users should go to their Plugins page and activate "WP Super Cache".
So, I disabled WP_Cache. Removed the line that said WP_Cache 'True', and removed the said files. Then I uploaded Super Cache into the correct directory. I tried to go back onto the control panel and I got hit with a white page with nothing said but:
Parse error: syntax error, unexpected T_STRING in /home/bobcox88/public_html/blog/wp-config.php on line 2
This is what my php file looks like (with user name and other stuff replaced with AAAAAAA
<?php// ** MySQL settings ** //
define('DB_NAME', 'AAAAAAA'); // The name of the databasedefine('DB_USER', 'AAAAAAA'); // Your MySQL usernamedefine('DB_PASSWORD', 'lcHKednG8NYT'); // ...and passworddefine('DB_HOST', 'localhost'); // 99% chance you won't need to change this valuedefine('DB_CHARSET', 'utf8');define('DB_COLLATE', '');// You can have multiple installations in one database if you give each a unique prefix$table_prefix = 'wp_'; // Only numbers, letters, and underscores please!// Change this to localize WordPress. A corresponding MO file for the// chosen language must be installed to wp-content/languages.// For example, install de.mo to wp-content/languages and set WPLANG to 'de'// to enable German language support.define ('WPLANG', '');/* That's all, stop editing! Happy blogging. */define('ABSPATH', dirname(__FILE__).'/');require_once(ABSPATH.'wp-settings.php');?>
This is exactly how it looks when I open the PHP file with notepad. Sorry if it's messy.
Any idea what is wrong? What I need to do? I do not have a backup of the wp-config file, sadly, but if there is a fix for it, bring it on 🙂