How to fix Wordpress Error wp-settings.php line 173

Followed this wordpress tutorial, stuck on step 3 because I get this error warning everytime I try to access my droplet’s IP/domain

Warning: require(/var/www/html/wp-includes/class-wp-theme-json-schema.php): Failed to open stream: No such file or directory in /var/www/html/wp-settings.php on line 173

Fatal error: Uncaught Error: Failed opening required ‘/var/www/html/wp-includes/class-wp-theme-json-schema.php’ (include_path=‘.:/usr/share/php’) in /var/www/html/wp-settings.php:173 Stack trace: #0 /var/www/html/wp-config.php(96): require_once() #1 /var/www/html/wp-load.php(50): require_once(‘…’) #2 /var/www/html/wp-blog-header.php(13): require_once(‘…’) #3 /var/www/html/index.php(17): require(‘…’) #4 {main} thrown in /var/www/html/wp-settings.php on line 173`

Submit an answer
Answer a question...

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Bobby Iliev
Site Moderator
Site Moderator badge
June 19, 2022

Hi there,

I just tried creating a new WordPress server using the 1-Click installation and it seems to be working as expected.

If this is a brand new Droplet for you too, I could suggest deleting it and creating a new one from scratch.

Let me know how it goes!

You can follow the first 6 minutes from this video here too which shows you how exactly to use the 1-Click installation:



Site Moderator
Site Moderator badge
June 18, 2022

Hi @a99ffa7df796-43e6-9a98-88064a

This seems to me like there are some files missing. Are you sure you have a vanilla WordPress installation? Following the tutorial, you should not be getting the said error. My suggestion would be to start from the beginning and carefully follow the tutorial to the leter.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.