Page 1 of 1

All xampp wordpress websites same error.

PostPosted: 05. April 2017 00:34
by dec0d3d
Hello.
I did a few wordpress websites on xampp and now they showing all the same error.

1- one of them is totally out of order, so it seems a database error but last time i checked it was fine and i didn't touch it anymore.
2- all the other websites show the same error:
Warning: require(C:\xampp\htdocs\*foldername*/wp-includes/post.php): failed to open stream: No such file or directory in C:\xampp\htdocs\*foldername*\wp-settings.php on line 167
Fatal error: require(): Failed opening required 'C:\xampp\htdocs\*foldername*/wp-includes/post.php' (include_path='C:\xampp\php\PEAR') in C:\xampp\htdocs\*foldername*\wp-settings.php on line 167

Can you please tell me what can i do to open those websites and recover them because i really need them.

Thanks in advance.
Regards.

Re: All xampp wordpress websites same error.

PostPosted: 05. April 2017 15:30
by Altrea
Hi,

dec0d3d wrote:2- all the other websites show the same error:
Warning: require(C:\xampp\htdocs\*foldername*/wp-includes/post.php): failed to open stream: No such file or directory in C:\xampp\htdocs\*foldername*\wp-settings.php on line 167
Fatal error: require(): Failed opening required 'C:\xampp\htdocs\*foldername*/wp-includes/post.php' (include_path='C:\xampp\php\PEAR') in C:\xampp\htdocs\*foldername*\wp-settings.php on line 167

So, who put this *foldername* in the path?

best wishes,
Altrea

Re: All xampp wordpress websites same error.

PostPosted: 05. April 2017 19:30
by dec0d3d
I just replaced the actual folder name with *foldername*
The folder real name its medical. To be clear, they used to work just fine before.

Re: All xampp wordpress websites same error.

PostPosted: 05. April 2017 20:07
by Altrea
dec0d3d wrote:I just replaced the actual folder name with *foldername*

But why?

Re: All xampp wordpress websites same error.

PostPosted: 05. April 2017 21:31
by dec0d3d
I think you misunderstood. I replaced it here when i copy pasted the error, i didn't chance the name on localhost. Or you were asking why did i do it here? :D
Anyway, any suggestions/help?

Re: All xampp wordpress websites same error.

PostPosted: 05. April 2017 21:52
by Altrea
dec0d3d wrote:Or you were asking why did i do it here? :D

That is exactly what i wanted to know.
Anyways, it is not the best idea to mask the only helpful message that can help us to help you.
That is like driving into a car repair shop and don't want to tell which component is making weird noises.

dec0d3d wrote:Anyway, any suggestions/help?

The error message is very clear. PHP cannot find or access files. Which files in which folders and if they are present and accessible for Apache can only be clear for you.
We don't have that information.

Re: All xampp wordpress websites same error.

PostPosted: 06. April 2017 00:30
by dec0d3d
What about i didn't even touch the files and they suddenly just miss something?
How can i fix that since i'm not very good at solving this kind of problems.

Thanks for your help btw! :)

Re: All xampp wordpress websites same error.

PostPosted: 06. April 2017 01:16
by Altrea
dec0d3d wrote:What about i didn't even touch the files and they suddenly just miss something?

Maybe you touched the configuration!? Or your files gets lost on some mysterious ways?
XAMPP don't delete any of your files so i don't see how this could be a XAMPP problem.

dec0d3d wrote:How can i fix that since i'm not very good at solving this kind of problems.

If this is a configuration problem, correct the configuration.
If this is a data constistence problem, maybe the only solution would be to restore a backup of your files and/or data.