Title: WordPress Website Showing Code Text On Page
Last modified: August 21, 2016

---

# WordPress Website Showing Code Text On Page

 *  [GraphicsNinja](https://wordpress.org/support/users/graphicsninja/)
 * (@graphicsninja)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/wordpress-website-showing-code-text-on-page/)
 * Hi, this is Graphics Ninja. I’ve developed a WordPress website, and integrated
   Avada theme on it few months ago. But, yesterday when i opened my website “www.
   thecontentvendor.com” then it’s just showing the “index.php” file text on the
   page:
 * `/** * Front to the WordPress application. This file doesn't do anything, but
   loads * wp-blog-header.php which does and tells WordPress to load the theme. **
   @package WordPress */ /** * Tells WordPress to load the WordPress theme and output
   it. * * @var bool */ define('WP_USE_THEMES', true); /** Loads the WordPress Environment
   and Template */ require('./wp-blog-header.php');`
 * I’ve tried to opened the “www.thecontentvendor.com/wp-admin” and also the “/wp-
   login.php” it’s just showing the code text on the page.
 * Help me to troubleshoot the problem. I’ll be very thankful to you.
 * Thanks in advance.
 * Regards,
    Graphics Ninja.

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

 *  [Mike](https://wordpress.org/support/users/mike_vl/)
 * (@mike_vl)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/wordpress-website-showing-code-text-on-page/#post-4036178)
 * You need to contact your host asap!
 * Your php files seem to be not properly processed by the webserver.
 *  [Mike](https://wordpress.org/support/users/mike_vl/)
 * (@mike_vl)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/wordpress-website-showing-code-text-on-page/#post-4036179)
 * And be sure to change ALL your login credentials because they’re visible at the
   moment.
 * If you have php access see if you can place a htaccess that blocks everyone but
   you.
 * example
 * > order deny,allow
   >  deny from all allow from youripnumberhere
 *  Thread Starter [GraphicsNinja](https://wordpress.org/support/users/graphicsninja/)
 * (@graphicsninja)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/wordpress-website-showing-code-text-on-page/#post-4036181)
 * [@mike](https://wordpress.org/support/users/mike/).
 * Hi, thanks for the response. There’s no custom defined Apache handler of php.
   Should i add it there?
 *  [Mike](https://wordpress.org/support/users/mike_vl/)
 * (@mike_vl)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/wordpress-website-showing-code-text-on-page/#post-4036182)
 * Do you manage your own server?
 * First please make sure that your wp-config information (your database credentials
   are no longer visible to the world.
 * Apache will have to handle php, that is correct.
 *  Thread Starter [GraphicsNinja](https://wordpress.org/support/users/graphicsninja/)
 * (@graphicsninja)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/wordpress-website-showing-code-text-on-page/#post-4036186)
 * No, i don’t manage my own server. We’ve a JustHost.com shared hosting. But we
   have the access to “Apache Handlers” in our cpanel. Will it help?
 * Thanks.
 *  [Mike](https://wordpress.org/support/users/mike_vl/)
 * (@mike_vl)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/wordpress-website-showing-code-text-on-page/#post-4036189)
 * I’d advise you to have your host fix this. This is a potential security risk 
   for all their clients.
 *  [Mike](https://wordpress.org/support/users/mike_vl/)
 * (@mike_vl)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/wordpress-website-showing-code-text-on-page/#post-4036208)
 * [@tricksindia](https://wordpress.org/support/users/tricksindia/), you could be
   right.
 *  Thread Starter [GraphicsNinja](https://wordpress.org/support/users/graphicsninja/)
 * (@graphicsninja)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/wordpress-website-showing-code-text-on-page/#post-4036223)
 * [@mike](https://wordpress.org/support/users/mike/). Thanks a lot. I’ve just sent
   an email to the support.
 *  Thread Starter [GraphicsNinja](https://wordpress.org/support/users/graphicsninja/)
 * (@graphicsninja)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/wordpress-website-showing-code-text-on-page/#post-4036225)
 * @Ticksindia. Thanks for the response, but the solution in that thread is about
   to access the Admin Panel, I’m unable to access the Dashboard because “wp-admin”
   also have the same issue like “wp-admin”. Every php page is just showing the 
   code in text format.
 *  [esmi](https://wordpress.org/support/users/esmi/)
 * (@esmi)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/wordpress-website-showing-code-text-on-page/#post-4036227)
 * Try:
    – switching to the default theme by renaming your current theme’s folder
   inside wp-content/themes and adding “-old” to the end of the folder name using
   [FTP](http://codex.wordpress.org/FTP_Clients) or whatever file management application
   your host provides.
 * – [resetting the plugins folder](http://codex.wordpress.org/FAQ_Troubleshooting#How_to_deactivate_all_plugins_when_not_able_to_access_the_administrative_menus.3F)
   by FTP or phpMyAdmin.
 * Why are you using an old copy of WordPress? Were you aware that your site is 
   currently running a very real risk of being hacked? You need to upgrade WordPress
   asap.
 *  Thread Starter [GraphicsNinja](https://wordpress.org/support/users/graphicsninja/)
 * (@graphicsninja)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/wordpress-website-showing-code-text-on-page/#post-4036244)
 * Here’s my .htaccess:
 * # BEGIN WordPress
    <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteRule
   ^index\.php$ – [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME}!-
   d RewriteRule . /index.php [L] </IfModule>
 *  Thread Starter [GraphicsNinja](https://wordpress.org/support/users/graphicsninja/)
 * (@graphicsninja)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/wordpress-website-showing-code-text-on-page/#post-4036245)
 * Is there anything that should be added in .htaccess? It’s php version 5.2 running
   on the server.
 *  [esmi](https://wordpress.org/support/users/esmi/)
 * (@esmi)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/wordpress-website-showing-code-text-on-page/#post-4036249)
 * Did you see my post above?
 *  Thread Starter [GraphicsNinja](https://wordpress.org/support/users/graphicsninja/)
 * (@graphicsninja)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/wordpress-website-showing-code-text-on-page/page/2/#post-4036256)
 * [@esmi](https://wordpress.org/support/users/esmi/). Thanks for the response. 
   Tried both the methods but still not resolved. -_-
 *  [Mike](https://wordpress.org/support/users/mike_vl/)
 * (@mike_vl)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/wordpress-website-showing-code-text-on-page/page/2/#post-4036330)
 * Hi, php seems to be handled ok at the moment.
 * Could you confirm and if so fill us in on the solution?

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

The topic ‘WordPress Website Showing Code Text On Page’ is closed to new replies.

## Tags

 * [homepage](https://wordpress.org/support/topic-tag/homepage/)
 * [text](https://wordpress.org/support/topic-tag/text/)
 * [wp-admin.php](https://wordpress.org/support/topic-tag/wp-admin-php/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 15 replies
 * 3 participants
 * Last reply from: [Mike](https://wordpress.org/support/users/mike_vl/)
 * Last activity: [12 years, 9 months ago](https://wordpress.org/support/topic/wordpress-website-showing-code-text-on-page/page/2/#post-4036330)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
