Xampp + Wordpress, Error 500 .htaccess - wordpress

I'm trying to host a local WordPress site on my machine using Xampp.
I got everything working, I can get on the site etc. However I can't change the Permalinks without editing the .htaccess, and here lies my problem.
I've removed the "#" in front of the "Load rewrite" module in Xampp, and also changed the "AllowOverride All".
If I add in my own .htaccess file into the WordPress root (Xampp/htdocs/mysite/.htaccess) then the error comes up, otherwise it doesn't. I have hidden files visible yet I can't see a .htaccess file there, even adding a blank one breaks it.
Error from webpage:
The server encountered an internal error and was unable to complete your request. Either the server is overloaded or there was an error in a CGI script.
Error form Apache Error Log:
[Fri May 16 13:45:48.885862 2014] [core:alert] [pid 18435] [client ::1:54974] /Applications/XAMPP/xamppfiles/htdocs/PMD-new/.htaccess: Invalid command '{\\rtf1\\ansi\\ansicpg1252\\cocoartf1038\\cocoasubrtf360', perhaps misspelled or defined by a module not included in the server configuration, referer: http://localhost/PMD-new/wp-admin/options-permalink.php?settings-updated=true
.htaccess File:
http://pastebin.com/vb3zScdx
When I remove the .htaccess file it works fine, but I can't change the permalinks.
I'm new when it comes to this so any help is appreciated.

Related

Strange issue with wordpress - critical error but nothing in debug.log

I have just put some changes to a wordpress theme live, it all works on the staging server but for some reason it's giving a critical error on the live site.
As normal i go and look at the debug.log file and there is no fatal error is showing in that file, and no error_log is showing it either.
Any ideas on why it's not recording the fatal error (usually that is what causes the wordpress critical error)
Probably, the "fatal error" you're talking about occurred before WordPress was initialized. For example, if the code, that triggers the error is located in index.php of your active theme.
In this case, try to find error messages not in wp-content/debug.log, but in webserver logs folder /var/log/httpd/error_log/ or /var/log/apache2/error.log

Suddely files started missing from Wordpress and showing errors

My domain: bharahobe.info
I have installed WordPress in main domain and sydney theme. Everything was okay. Suddenly when I visit my site it shows error messages. Like this:
Warning: require(/home/bharahob/public_html/wp-includes/pomo/mo.php):
failed to open stream: No such file or directory in
/home/bharahob/public_html/wp-settings.php on line 102
Fatal error: require(): Failed opening required
'/home/bharahob/public_html/wp-includes/pomo/mo.php'
(include_path='.:/usr/lib/php:/usr/local/lib/php') in
/home/bharahob/public_html/wp-settings.php on line 102
What should I do now?
If you have access through FTP or SSH, you should log into the server and verify that those files exist. The files may have been deleted by a bot or botched upgrade. The permissions may have changed as well.
If the files are actually missing, you can probably get away with downloading the version of WP you're currently running and replace the missing files.

IIS HTTP Error 500.19 - Internal Server Error

I recently had to reformat my laptop and ever since I did I can't get IIS to work correctly. Ive given it all the same permissions it needs. I set it up the same way I did before the reformat, which is why I'm so confused that I can't get it wo rking.
When running my asp .net page, I get the follow error
IIS HTTP Error 500.19 - Internal Server Error
Error Code - 0x800700b7
Config Source:
14 <files>
15: <add value="index.aspx" />
16: </files>
When I comment out those 3 lines in my Web.config file I get a different 404 error
HTTP Error 404.3 - Not Found
Here is a screenshot of the original error
I have defined the index.aspx as the default document. However, I'm still getting a 404 error. WHen i try to right click and browse the site, I get a 404 which makes me think the index.aspx file isnt in the right location. But Its in the root and I can verify the by 'right clicking' and 'explore'
Here is a screen shot to show what I'm talking about
Go to IIS Manager, select your website on the left, and find the "Default Document" :
---------------------------------------------------------------------------------------
there you can add pages that will run DIRECTLY from the root folder of the website.
---------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------
if you want your start page to be located in a folder, you need to create one of the files above in the root folder of the website, and redirect onload to your custom start page
---------------------------------------------------------------------------------------

WordPress Site Error failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found

I am trying to open a WordPress site on an external server for which I do not have a domain yet using its ip address and an adjusted HOST file on my Mac to check it on the server. When I access the site I get errors like:
Warning: file_get_contents(http://domain/folder/wp-content/themes/theme-name/img/phonehead.svg) [function.file-get-contents]: failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found in /home/user/domains/domain.com/public_html/folder/wp-content/themes/theme-name/inc/control/file.php on line 16
I did find some articles on the same issues like this one. The issues is not that the path is wrong or the file is not there. It seems that it has something to do with either my router or the way I use the hosts file to resolve the domain to the new ip address.
The hosts file line I added should be fine, so perhaps there is an issue with my D-Link DVG-N5412SP router is handling the request. But nowhere did I find how I can fix the issue. What do I need to adjust?
Update
From another location I got
Warning: file_get_contents() [function.file-get-contents]: php_network_getaddresses: getaddrinfo failed: Temporary failure in name resolution in /home/user/domains/domain.com/public_html/folder/wp-content/themes/theme/inc/control/THeaderControl.php on line 16
This might point me to the right direction. Working on it.
To make the path request local and not over the network I had to use the WordPress template tag get_template_directory() instead of get_bloginfo('stylesheet_directory') .

[an error occurred while processing this directive]

Hey guys I'm in the middle of migrating a wordpress site from one host to another (BlueHost to LunarPages). I backed up everything on the old server, did a fresh WP install on the new server, imported the old files over, did the wp-config/database changes and got the site to show up.
http://www.albertineco.com
But if you navigate to any page it gives you [an error occurred while processing this directive]. I've tried deactivating my plugins and switching themes to see if that caused it with no luck. LunarPages didn't have a real idea of the cause of the problem either.
This was in the Cpanel error log:
[Fri Mar 22 10:57:32 2013] [error] [client 69.178.136.2] invalid CGI ref "/cgi-sys/fourohfour.cgi" in /home/alber27/public_html/404.shtml, referer: http://albertineco.com/
Any thoughts guys?
I had the same problem. This is how I solved:
I asked the hosting company to provide me the FTP credentials
I logged in to FTP and right clicked .htaccess file
I changed the cmod for .htaccess file to 777
I went back to my dashboard and re-did the permalink and saved.
Now, it works.

Resources