• Working on WordPress when I came across an error in loading background images.Wordpress blogs said to edit the .htaccess file , but in doing that , I lost all ability to see my blog and all I was able to view was coding.

    At that point I did a clean uninstall of WordPress and then reinstalled it.
    I am now able to view the WP dashboard, and uploaded a new theme.
    If I click on the website name , I do get the first page of my theme.
    However back on my dashboard , clicking “Pages” , all I get is php type coding. Not image representation of the site.
    I’ve lost the ability to add /edit any pages.

Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter Danster

    (@danster)

    The php coding I get when i click on the dashboard “Pages” starts with:

    <?php
    /**
    * Edit Posts Administration Screen.
    *
    * @package WordPress
    * @subpackage Administration
    */

    etc….

    At that point I did a clean uninstall of WordPress and then reinstalled it.

    The content of Posts and pages are pulled from the MySQL database. Is your wp-config.php file still pointing to the database that existed prior to the ‘re-install’? If you wiped the DB you lost your Posts and Pages. Ask your web host how to recover. You can also just delete (but save locally/backup) the .htaccess file and then reset permalinks (which will create a new one).

    Thread Starter Danster

    (@danster)

    I have no idea if the wp-config.php file is pointing to the database , as I am just new to creating websites. Is it easy to tell?

    I’ve already started a new WP install. Is the “clean” option to delete
    (but save locally/backup) the .htaccess file and then reset permalinks ?

    Thread Starter Danster

    (@danster)

    Have just gone to my cpanel – > My SQL database and wiped clean the existing databases and created a new one.

    Then uninstalled and reinstalled WP , and I now get the regular “hello world” page .

    However , once I go back into dashboard and “All pages” I still get the php coding showing up instead of a page.

    Anyone?

    I am sorry, but based on my experience your last two posts in this thread are not accurate.

    Please contact your web host about a site restore.

    Thread Starter Danster

    (@danster)

    I’ve had my web host re-set my cpanel for me .
    Have just gone into installatron and installed WP fresh.
    Have installed the Tesseract theme, however when I click on “All pages” I still get the php code

    <?php
    /**
    * Edit Posts Administration Screen.
    *
    * @package WordPress
    * @subpackage Administration
    */

    etc….

    If the web host has re-set everything then there must be something up with the WP install? I can virtually edit everything except “All Pages”.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Pages not showing. Can only view code’ is closed to new replies.