Wordpress new post returns 500 - wordpress

I am creating a new page in Wordpress, but it returns 500:
http://d4zed.com/test-page/
What could be the reason why? The .htaccess looks pretty standard:
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /d4zed-new/
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /d4zed-new/index.php [L]
</IfModule>
I really have no idea about how Wordpress works internally (though I have quite an experience in Rails), so I am ready to answer your additional questions.
Thank you!

Internal Server Error in WordPress can be caused due to various reasons. You can try the following options in order to solve the problem.
Checking wrong .htaccess file
Rename .htaccess file. If the site loads after this then you can infer that the problem is due to wrong .htaccess file. So you have to create a new .htaccess file.
Increasing Memory Limit
Create a file named php.ini and paste the code memory_limit = 64M; in it and upload it to WordPress root folder as well as to wp-content, wp-admin folders in order to increase the Memory Limit.
Deactivating plugins
The problem can be caused by an installed plugin. So, by deactivating all plugins and activating one by one you can find out which plugin is making the problem.
Reuploading WordPress core folders
If the WordPress core files are creating the problem, it can be solved by reuploading wp-admin and wp-includes folders.
Contacting Hosting Provider
Contact your hosting provider. If it is a server problem they can help you.

Related

Recieving a 404 error when trying to open posts after permalink change to /%pagename%/

I’ve changed my custom permalink setting to /%pagename%/ (which is common, I guess). However, the following problem keeps occurring:
When trying to open a post on my website, I receive a 404 error. When changing the permalink setting back to Standard, the errors disappear.
After googling, I found that there is a way to solve this by editing your .htaccess file. Even after this, the same problem reoccurs. As I would like to have clean page-names, would anyone know how to solve this problem?
Greetings,
Tom
Kindly delete your .htaccess file from the root folder and check your site again, if the problem is still there than regenerate the permalinks using %postname%.
For the url rewriting WP feature to work, WP writes the .htaccess file at the root of your WP installation.
Open the .htaccess file and check whether or not you have this piece of code:
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress
If it is missing, you have 2 options:
change the file permissions so that WP can write it.
or add the missing code yourself to the .htaccess.

Wordpress .htaccess/template files

I have a Wordpress site that I assumed from another company which structurally is a bit different than other ones I've worked on. I'm primarily a Drupal developer, with enough of a working knowledge of Wordpress to get by.
What the developer who created the site did, is within the themes folder, they created a separate page-whatever-whatever.php file for each page on the site. Some of the content on the pages within the site have been entered through the CMS system - some are hard coded on to the template file.
Previously, it was hosted on a .NET server - we're on LAMP.
It appears that the pages with the hard coded data aren't being called - so the data the client previously saw is just coming up blank. The site appears to be ignoring those page-whatever-whatever.php files and using the default template page instead.
My first guess is that it's an htaccess issue? I just have the generic
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
Given the structure they have - is there something else I should be putting in there or changing within the config files?
Thanks in advance!
I guess no issue with .htaccess file. The error was in template file. Enable debug in wp-config.php.
By wp_debug was false.
define('WP_DEBUG', false);
Change this to
define('WP_DEBUG', true);
Now you can see php error in the template file then debug it.

Accessing a subfolder of a Wordpress site

So I have a wordpress website installed in the root of my domain and it is up and running fine. I want to install a shopping cart in a subfolder but it's giving me trouble. I have a folder called "magento". In that folder is a filed called downloader.php and index.php.
When I try to access the file, Wordpress was giving me a 404 error like it was thinking I meant it to look for a WP article.
I tried a different .htaccess file which changed it to a standard 500 error now.
I've googled for this and found tons of people with the same problem, but haven't found a solution that works. I also checked the permissions and the folder is 777 and I changed the files to 777 as well but it still doesn't work.
The .htaccess file in the root (public_html) file simply shows
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /wp/
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /wp/index.php [L]
</IfModule>
# END WordPress
I don't know anything about configuring .htaccess files but if anyone has any suggestions on how I can get this to work, that'd be great.
Thanks!!
You can install an empty .htaccess file in the magento subdirectory. This overrides the Wordpress .htaccess file and allows to access the files in that directory.
Never change file permissions to 777. This is dangerous, because it allows anybody to modify your files.

404 error transferring wordpress website from local server

I've transferred my wordpress website from my localserver to a folder on my server. It is located in /wordpress. I have created a new database, new user and password and imported. I have also changed the location and home of the website in wp-options. I have changed the wp-config file. I'm still getting a 404 error. I then tried removing all the files, adding a clean install of wordpress then added my theme but still the same error. I can't even access admin or install. Can someone talk a look and tell me what I've done wrong? I have done this before and it normally works fine. Could it be the hosting?
See website here
I've check my .htaccess file and it says the following:
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /wordpress/
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /wordpress/index.php [L]
</IfModule>
# END WordPress
Check you're .htaccess file. I had this exact same issue the other day. Because it's in a subdirectory, it's keeping track of that in the .htaccess file, and I'm going to guess the subdirectory on the server is named differently than what it was on your development environment :)
Check you're .htaccess file and if you dont want to do coding in htaccess file.
Then login to wp-admin and go to the permalink section and hit update button
Hope it will solve the problem
Thanks
First of all remove .htaccess file and login in wordpress to run normally, lets check to conform this error due to .htaccess file.
Hope this helps you. Thanks ;)

permalinks in wordpress

I just moved my wordpress blog from one host to another but permalink is giving trouble. Other than the homepage, other pages give a page not found error.
I edited the htaccess as per instructions
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /projects/
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /wdmgroup/index.php [L]
</IfModule>
I even tried deleting the htaccess and rewriting but to no avail.
P.S : htaccess and Mod Rewriteare both enabled in Apache's conf
Regards,
Loveleen
Delete .htaccess and reset permalinks from within Admin at Dashboard>>Settings>>Permalinks to be sure permalinks are set in the database as well as in the .htaccess file that WP generates.
Be sure WP is in /wdmgroup/ , because that's where it should be located, according to your .htaccess.
If you're moving WP to root, see Moving WordPress « WordPress Codex.
According to your .htaccess file, your site should be in the http://www.site.com/projects/wdmgroup/ - folder. Is it so? Also, have you update needed entries in the wp_options table in your database?
I found the solution. Everything else was tried but still it didnt work. Later i realized that I had to make a Virtual DIrectory in apache for folder wdmgroup which I had directly placed inside the www folder.
Check your apache configuration and verify that for the directory in which you store your Wordpress installation you have following settings enabled (probably you will have more configuration options for the specific directory, but these are the minimum required for Wordpress fancy permalinks):
<Directory var/www/>
FollowSymLinks
AllowOverride All
</Directory>

Resources