• Hi there,
    Our local Primary school site seems to be offline and gives a number of errors in the backend. I update their site, as a (now former) parent of a pupil. The site simply went disappeared a week ago and not sure exactly what to do to get it back online. I include a few of the errors form the log and hope someone can advise as we want to get it online asap please. A staff member informs me that they use the 2011 theme as this was recommended to them when the site was set up in 2014, I think.

    [03-Aug-2020 19:20:27 UTC] PHP Warning:  mysqli_query(): MySQL server has gone away in D:\Inetpub\vhosts\SCHOOL DOMAIN REMOVED\httpdocs\wp-includes\wp-db.php on line 2024
    [03-Aug-2020 19:20:27 UTC] PHP Warning:  mysqli_query(): Error reading result set's header in D:\Inetpub\vhosts\SCHOOL DOMAIN REMOVED\httpdocs\wp-includes\wp-db.php on line 2024
    [05-Aug-2020 03:30:34 UTC] PHP Fatal error:  Uncaught Error: Call to undefined function get_header() in D:\Inetpub\vhosts\SCHOOL DOMAIN REMOVED\httpdocs\wp-content\themes\twentytwenty\404.php:10
    Stack trace:
    #0 {main}
      thrown in D:\Inetpub\vhosts\SCHOOL DOMAIN REMOVED\httpdocs\wp-content\themes\twentytwenty\404.php on line 10
    [06-Aug-2020 05:07:30 UTC] PHP Fatal error:  Uncaught Error: Call to undefined function get_header() in D:\Inetpub\vhosts\SCHOOL DOMAIN REMOVED\httpdocs\wp-content\themes\twentynineteen\archive.php:12
    Stack trace:
    #0 {main}
      thrown in D:\Inetpub\vhosts\SCHOOL DOMAIN REMOVED\httpdocs\wp-content\themes\twentynineteen\archive.php on line 12
    [09-Aug-2020 13:07:33 UTC] PHP Fatal error:  Uncaught Error: Call to undefined function get_header() in D:\Inetpub\vhosts\SCHOOL DOMAIN REMOVED\httpdocs\wp-content\themes\twentyeleven\archive.php:15
    Stack trace:
    #0 {main}
      thrown in D:\Inetpub\vhosts\SCHOOL DOMAIN REMOVED\httpdocs\wp-content\themes\twentyeleven\archive.php on line 15
    [20-Aug-2020 04:39:08 UTC] PHP Warning:  mysqli_query(): MySQL server has gone away in D:\Inetpub\vhosts\SCHOOL DOMAIN REMOVED\httpdocs\wp-includes\wp-db.php on line 2024
    [20-Aug-2020 04:39:08 UTC] PHP Warning:  mysqli_query(): Error reading result set's header in D:\Inetpub\vhosts\SCHOOL DOMAIN REMOVED\httpdocs\wp-includes\wp-db.php on line 2024
    • This topic was modified 4 years, 3 months ago by Jan Dembowski. Reason: Moved to Fixing WordPress, this is not an Everything else WordPress topic

    The page I need help with: [log in to see the link]

Viewing 9 replies - 1 through 9 (of 9 total)
  • Moderator James Huff

    (@macmanx)

    Are you sure that you have the correct MySQL database username and password in the wp-config.php file?

    Are you sure that you have typed the correct MySQL database hostname into the wp-config.php file?

    If yes to both, then you’ll need to contact your hosting provider’s support to ask why your database server is offline.

    Thread Starter andyd_ohd

    (@andyd_ohd)

    Hi James, thanks for the reply. To be honest we haven’t done anything. The site has been online for the last few years and has simply stopped functioning. When I look in Plesk I see this under the “Databases” tab.

    Host: sql02.vws.ifl.net:3306 (MySQL) The server is unavailable.Users: r6228_slcwpadmin

    Does this mean there has been some form of disconnect between the database and the site?
    The school has contacted the Hosting company to ask what has happened to the site and their reply is that they do not offer support for WP.

    Moderator James Huff

    (@macmanx)

    Yes, that all means the database server is not available, which either means it’s not online, or somehow the wp-config.php file was edited to not contain the proper credentials for your database.

    Thread Starter andyd_ohd

    (@andyd_ohd)

    That’s interesting. Knowing that none of the school staff would have touched it, and I certainly haven’t, do you have any ideas how this could have happened? The Headteacher contacted me last night to say that she has heard other schools are having similar issues – I have checked a few local schools and their sites also seem to be offline, but I have no idea who they host with.
    I’ll have a look at the wp-config.php to see what is says regards databases, but no other database seems to be visible on the “Databases” tab.
    Thanks for your input, the school have been without their site for about a week now without much joy from the Hosting company.

    Thread Starter andyd_ohd

    (@andyd_ohd)

    I just had a look in the wp-config.php and it looks as though it is set to that database.

    // ** MySQL settings – You can get this info from your web host ** //
    /** The name of the database for WordPress */
    define(‘DB_NAME’, ‘r62287_slcwpdb’);

    /** MySQL database username */
    define(‘DB_USER’, ‘r6228_slcwpadmin’);

    /** MySQL database password */
    define(‘DB_PASSWORD’, ‘PasswordHiddenByMe’);

    /** MySQL hostname */
    define(‘DB_HOST’, ‘sql02.vws.ifl.net:3306’);

    Thread Starter andyd_ohd

    (@andyd_ohd)

    I wonder how such a disconnect could have happened?

    I presume I could simply follow the “Assign this databse to a site” and see what happens as the site is quite non-existent at the moment. The “Database” tab simply has the belowe info, and if I open the “Assign this database to a site” I have 2 options, one being the domain for the school the other is “No related sites”.

    phpMyAdminr62287_slcwpdb Assign this database to a site
    Host: sql02.vws.ifl.net:3306 (MySQL) The server is unavailable.Users: r6228_slcwpadmin

    Remove Database

    • This reply was modified 4 years, 3 months ago by andyd_ohd.
    • This reply was modified 4 years, 3 months ago by andyd_ohd.
    Moderator James Huff

    (@macmanx)

    We have no way of knowing the correct database credentials, that’s between you and the hosting provider.

    Either the database server is offline or the database user no longer has permissions for this. The hosting provider will need to sort this out.

    Thread Starter andyd_ohd

    (@andyd_ohd)

    I was receiving errors for absolutely anything I did on Plesk today. I tried “assigning” the database to the domain within Plesk. Things appear to be working now but I’m not convinced it’s from anything I tinkered with… Thanks for your advice.

    Moderator James Huff

    (@macmanx)

    Yeah, that’s definitely something the hosting provider will need to sort out.

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Error messages on my site’ is closed to new replies.