Wordpress installed via Plesk APS does show blank page instead of posts

Refers to:

  • Plesk 12.5 for Linux
  • Plesk 11.5 for Linux
  • Plesk 12.0 for Linux

Created:

2016-11-16 12:46:54 UTC

Modified:

2016-12-21 19:11:50 UTC

0

Was this article helpful?


Have more questions?

Submit a request

Wordpress installed via Plesk APS does show blank page instead of posts

Symptoms

Wordpress installed via Plesk APS does show blank page instead of posts.

Apache error log contains the following errors:

[Tue Apr 01 17:00:09 2014] [error] [client 1.1.1.1] PHP Warning:  require(/var/www/vhosts/example.com/httpdocs/wordpress/wp-includes/load.php): failed to open stream: No such file or dirctory in /var/www/vhosts/example.com/httpdocs/wordpress/wp-settings.php on line 21
[Tue Apr 01 17:00:09 2014] [error] [client 1.1.1.1] PHP Fatal error: require(): Failed opening required '/var/www/vhosts/example.com/httpdocs/wordpress/wp-includes/load.php' (include_pah='.:') in /var/www/vhosts/example.com/httpdocs/wordpress/wp-settings.php on line 21

Cause

Wordpress database inconsistency.

Resolution

  1. Make sure php-file in wordpress directory exists and has valid permissions: load.php .

    # stat /var/www/vhosts/example.com/httpdocs/wordpress/wp-includes/load.php
    File: `/var/www/vhosts/example.com/httpdocs/wordpress/wp-includes/load.php'
    Size: 23993 Blocks: 48 IO Block: 4096 regular file
    Access: (0646/-rw-r--rw-) Uid: (10009/ jane) Gid: ( 503/ psacln)
    Access: 2014-07-16 00:20:03.746018663 +0700
    Modify: 2014-06-11 22:49:52.000000000 +0700
    Change: 2014-07-16 00:20:03.746018663 +0700
  2. Check Wordpress database on error reports:

        mysql> check table wp_posts;
    +----------------------+-------+----------+-------------------------------------------------------+

    | Table | Op | Msg_type | Msg_text |
    +----------------------+-------+----------+-------------------------------------------------------+

    | wordpress_f.wp_posts | check | warning | Table is marked as crashed |
    | wordpress_f.wp_posts | check | warning | 1 client is using or hasn't closed the table properly |
    | wordpress_f.wp_posts | check | error | Found 16152 keys of 16156 |
    | wordpress_f.wp_posts | check | error | Corrupt |
    +----------------------+-------+----------+-------------------------------------------------------+
    4 rows in set (0.18 sec)
  3. Repair wordpress database:

    # mysqlcheck -uadmin -p`cat /etc/psa/.psa.shadow` --databases wordpress_db --repair

    wordpress_b.wp_commentmeta OK
    wordpress_b.wp_comments OK
    wordpress_b.wp_links OK
    wordpress_b.wp_options
    note : The storage engine for the table doesn't support repair
    wordpress_b.wp_postmeta OK
    wordpress_b.wp_posts
    note : The storage engine for the table doesn't support repair
    wordpress_b.wp_term_relationships OK
    wordpress_b.wp_term_taxonomy OK
    wordpress_b.wp_terms OK
    wordpress_b.wp_usermeta
    note : The storage engine for the table doesn't support repair
    wordpress_b.wp_users OK
Have more questions? Submit a request
Please sign in to leave a comment.