• 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)
  • You need to contact your host asap!

    Your php files seem to be not properly processed by the webserver.

    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

    (@graphicsninja)

    @mike.

    Hi, thanks for the response. There’s no custom defined Apache handler of php. Should i add it there?

    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

    (@graphicsninja)

    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.

    I’d advise you to have your host fix this. This is a potential security risk for all their clients.

    @tricksindia, you could be right.

    Thread Starter GraphicsNinja

    (@graphicsninja)

    @mike. Thanks a lot. I’ve just sent an email to the support.

    Thread Starter GraphicsNinja

    (@graphicsninja)

    @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.

    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 or whatever file management application your host provides.

    resetting the plugins folder 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

    (@graphicsninja)

    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

    (@graphicsninja)

    Is there anything that should be added in .htaccess? It’s php version 5.2 running on the server.

    Did you see my post above?

    Thread Starter GraphicsNinja

    (@graphicsninja)

    @esmi. Thanks for the response. Tried both the methods but still not resolved. -_-

    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.