Forum Replies Created

Viewing 15 replies - 16 through 30 (of 80 total)
  • Thread Starter salescart

    (@codeaholic)

    Thanks. I’m trying to switch it back to an earlier version before 5.9 when it was working. It tried to automatically update on 1/22/2022 and destroyed the site.

    If you go there now, this is a TOTAL blank version of WordPress version 5.5.8. I don’t exactly know what the previous version that was working before it automatically upgraded. Anyway, I updated the database connection and I STILL have the white screen of death.

    Do you know what was the major version of WordPress BEFORE 5.9?

    Thread Starter salescart

    (@codeaholic)

    Ok, I downgrade to php 7.4.

    https://www.comcity.com/

    Now it shows this error:

    Warning: "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in C:\Domains\***.com\wwwroot\wp-includes\pomo\plural-forms.php on line 210
    
    Fatal error: Uncaught Error: Call to undefined function mysql_connect() in C:\Domains\***.com\wwwroot\wp-includes\wp-db.php:1564 Stack trace: #0 C:\Domains\***.com\wwwroot\wp-includes\wp-db.php(592): wpdb->db_connect() #1 C:\Domains\***.com\wwwroot\wp-includes\load.php(404): wpdb->__construct('wordpressuser20...', '^&m-#OffXWA&', 'wordpress205', '127.0.0.1') #2 C:\Domains\***.com\wwwroot\wp-settings.php(106): require_wp_db() #3 C:\Domains\***.com\wwwroot\wp-config.php(101): require_once('C:\\Domains\\comc...') #4 C:\Domains\***.com\wwwroot\wp-load.php(37): require_once('C:\\Domains\\comc...') #5 C:\Domains\***.com\wwwroot\wp-blog-header.php(13): require_once('C:\\Domains\\comc...') #6 C:\Domains\***.com\wwwroot\index.php(17): require('C:\\Domains\\comc...') #7 {main} thrown in C:\Domains\***.com\wwwroot\wp-includes\wp-db.php on line 1564

    The troubleshooting steps located in that article are rather “simplified” for some mostly minor issues. I have logs on and errors on. The website appears to be crashing all over the place.

    If I simply download the latest WP5.9 version and attempt to unzip the files into the website, what files do I need to back up, and/or make sure they don’t get overwritten.

    I know wp-settings.php. Are there others?

    • This reply was modified 3 years, 1 month ago by salescart.
    Thread Starter salescart

    (@codeaholic)

    Well it had PHP 5.6 there. I only upgraded it to PHP 8 because you list a higher PHP requirement. What minimum version and maximum version is best?

    • This reply was modified 3 years, 1 month ago by salescart.
    Thread Starter salescart

    (@codeaholic)

    (Did this site get auto updated to the latest WordPress 5.9 version?)

    Yes, Probably…. It seems like all the auto update sites failed. There are other WP websites on the server that are fine but they auto updates seem to be off.

    The problem started around January 25th.

    • This reply was modified 3 years, 1 month ago by salescart.
    Thread Starter salescart

    (@codeaholic)

    Ok, I just went to github and got that file and created it where it expects it.
    https://github.com/WordPress/WordPress/blob/master/wp-includes/rest-api/endpoints/class-wp-rest-attachments-controller.php

    However, most of the files in that director do not exist. I am seeing this complaint of failed wordpress websites and blank white screens all over the forum. As a programmer, it is like the installation make file for the last version of WordPress are missing half the files for the installation.

    Thread Starter salescart

    (@codeaholic)

    We are the web-hosting company. I have the same problem on multiple sites. The white screen of death doesn’t sound like a popular thing because we all know about the green screen of death and it didn’t do that company much good.

    The error logs of one the websites say this:

    Warning: require(C:\Domains\***.com\wwwroot/wp-includes/rest-api/endpoints/class-wp-rest-attachments-controller.php): failed to open stream: No such file or directory in C:\Domains\***.com\wwwroot\wp-settings.php on line 228

    Fatal error: require(): Failed opening required ‘C:\Domains\***.com\wwwroot/wp-includes/rest-api/endpoints/class-wp-rest-attachments-controller.php’ (include_path=’.;C:\php\pear’) in C:\Domains\***.com\wwwroot\wp-settings.php on line 228

    It is a rather obscure message….leaving much to the imagination.

    I just reinstalled PHP 8 to make sure PHP is not the problem. It tests fine via a phpinfo.php screen. Also, the entire Plugs folder is already renamed so it isn’t a plugin. This looks bonafide 100% WordPress ONLY PROBLEM. It just magically happen. Maybe it had WordPress automatic updates on. If that is the case, I know that will be off from this point on.

    Line 228 reads:
    require( ABSPATH . WPINC . ‘/rest-api/endpoints/class-wp-rest-attachments-controller.php’ );

    It is correct, that file doesn’t exist. Why doesn’t it exist? Nothing has been touched on this website for years.
    Any ideas?

    I cannot ping your website at all. I don’t think you have a wordpress problem. You have a “my website is down” problem. Contact your ISP.

    Thread Starter salescart

    (@codeaholic)

    Anybody know the answer to this? I turned on error logging and I see this message:

    Warning: require(C:\deprecated\wwwroot/wp-includes/rest-api/endpoints/class-wp-rest-attachments-controller.php): failed to open stream: No such file or directory in C:\deprecated\wwwroot\wp-settings.php on line 228

    Fatal error: require(): Failed opening required ‘C:\deprecated\wwwroot/wp-includes/rest-api/endpoints/class-wp-rest-attachments-controller.php’ (include_path=’.;C:\php\pear’) in C:\deprecated\wwwroot\wp-settings.php on line 228

    Thread Starter salescart

    (@codeaholic)

    Ok, it doesn’t look like I am 100% there yet. The database is restored but WordPress is giving the error:
    Error establishing a database connection

    The issue is I have the “vanilla” /mysql database. When I look at the tables_priv in /mysql it is empty. I’m guessing somehow I need to get the privileges for this WordPress database into /mysql right?

    Thread Starter salescart

    (@codeaholic)

    Ok, I got it!!
    The procedure is.

    • Install vanilla mySQL on new server (I had already done that)
    • Stop mySQL service
    • Move the /data/wordpress953 folder over “intact” “as is”.
    • and move ONLY the ibdata1 file and ib_logfiles off of the root over.
    • Leave the /mysql data “as is” from the vanilla install
    • Start mySQL service

    It was basically an “incarnation” of what I was doing but you have to only change certain things. The ibdata1 file in the root went with the /wordpress953 folder but apparently not with anything else.

    Thread Starter salescart

    (@codeaholic)

    I tried again to reset the password for mySQL but it fails. Here is an image of what I see:
    Junk

    I don’t understand why I can’t reset the mysql password???

    Thread Starter salescart

    (@codeaholic)

    This is NOT a system crash! The hard drive was operating at half speed we believe for some reason so we just moved to a new drive. It was taking 45 mins to reboot and an hour to log in with RDP.

    I have ALL the data on the old drive. It is “as if” the mySQL went down for a reboot. No data has changed in the WordPress953 files since 2/22/18 and in the mysql files since 5/31/18 the day before we even had issues. That is the day I changed the root password. It doesn’t make sense to me why I can’t just replace the files and reboot since I have ALL the data. BTW, I have recovered MS SQL and a dozen of other databases like this before no problem and restored 3 MS SQL databases this time as well from just the files.

    Attempt 3:
    I shut down the mysql server, I put the /mysql and the /wordpress953 folders in the /data folder and the files in the root ibdata1, ib_logfile0, and ib_logfile1 as you indicated. I rebooted the system. I tried to login and I get the same as Attempt 2:

    ! #1045 Cannot log in to the MySQL server

    Where is the root password saved? In ibdata1? I would have thought this is saved in the /mysql. Isn’t that the master tables?

    Thread Starter salescart

    (@codeaholic)

    953 -vs- 954 = typo (sorry)

    YES, it does. I have ALL of the files including the ibdata1, ibdata0, .frm, etc. files. In both attempt 1 and attempt 2, I am moving the WHOLE /data folder with all files including the ibdata1 file. In fact, there is a .err file created in attempt1 complaining about the isam id problem in the log file.

    It’s simply not working.

    In attempt 1, I am NOT moving /data/MySQL. I can try that. However, in attempt 2, I am also moving the /data/MySQL!

    It is NOT working in either case. Of course, Attempt 2 might be working but I have no way to start MySQL or login to see the database tables. So who knows in that case. I changed the MySQL root password only about 2 weeks ago so I am 100% correct of what it was and I made the new instance with the same root password.

    I’ll retry attempt1 moving both the WP MySQL data folder as well as the MySQL data folder ONLY

    You need to get “file manager” access via a hosting control panel or FTP access using FileZilla and see what files are located in your website directory.

    I try to got to plain vanilla files like: https://www.castroyalepodcast.com/license.txt or https://www.castroyalepodcast.com/readme.html and they also don’t show up. These files should be accessible even if there is something severely wrong with your WordPress install.

    See this url for basic files you should expect to see in your Root directory with basic FTP access–>
    https://www.wpbeginner.com/beginners-guide/beginners-guide-to-wordpress-file-and-directory-structure/

    Thread Starter salescart

    (@codeaholic)

    lol No that didn’t help at all. I know what chmod is and the equivalency of it in IIS which is a GUI. Keep in mind IIS runs completely different than Apache especially in Windows 2012 where you not only have NTFS file permissions, you also have Application Pool/Application Pool “user” permissions. You also have management pipeline mode/type in the App pool. The App pool is/has it’s own set of permissions.

    In Apache, all you have is the “file permissions”.

    So it is many times more complex than Unix/Linux/Apache thanks to Microsoft. So what I need is a full break down of permissions.

    1. The NTFS permissions of IUSR or does IUSR even need NTFS Permissions.
    2. What the App pool mode should be set to
    3. The App pool Identity
    4. Any special permission the App pool identity would need on NTFS in addition to or as it relates to IUSR.

    Unfortunately, this is a “migration” backup/restore not a straight install by the widget install which seems to get the permissions right about 60% of the time or all you have to do is open it up a tiny bit for IUSR. So I have a more complicated IIS install problem than normal where I would click on buttons and everything would magically happen. I have to restore from scratch so I actually must “know” what ALL the permissions are to the letter. This has to be documented somewhere by WordPress???

Viewing 15 replies - 16 through 30 (of 80 total)