7
votes
PHP Fatal error: Call to undefined function WP_Filesystem()
The error is in custom-functions.php line 529 where you might be using file system function outside of admin, you can fix this by including the core admin file.php file like this.
require_once(ABSPATH ...
4
votes
Accepted
Calling a wp_query $posts causes a 500 error
Is $posts a reserved variable
Yes, it is, $posts is the global variable which holds the array of posts from the main query. This is how it is set:
$GLOBALS['posts'] = & $wp_query->posts;
...
3
votes
Accepted
How to stop a 500 error on the WordPress theme folder
Adding this code to the top of the index.php file in your theme will return a 403 if the theme directory is accessed directly:
if ( ! defined( 'ABSPATH' ) ) {
header( 'HTTP/1.0 403 Forbidden' );
...
3
votes
WooCommerce - Call to undefined function is_woocommerce()
If you want to check one Plugin's Function / Class etc. from another Plugin, then it's best to use a hook like plugins_loaded.
Based on this, your Plugin CODE will look like:
<?php
/*
Plugin Name:...
3
votes
PHP Fatal error: Call to a member function locale() on a non-object
$sitepress is a global set by WPML, IIRC. Change your line 25 as follows:
if(isset($sitepress) && is_object($sitepress)) {
setlocale(LC_TIME, $sitepress->locale() . '.UTF-8');
}
As a ...
3
votes
Accepted
500 Internal Server Error when updating htaccess
As there are different modes that PHP can run in, it may be causing the internal server error (ie: FastCGI). You are better setting those values in your php.ini file or user.ini file to see if works ...
3
votes
Accepted
Derive child theme from separate theme
I don't understand your target. If you want to create a child theme, it is quite easy and strightforward; just follow these simple rules: https://codex.wordpress.org/Child_Themes
Nothing to do with ...
3
votes
Accepted
Plugin PHP file gives error 500
The 500 Internal Server Error is a very general HTTP status code that means something has gone wrong on the web site's server.
You have to enable the debug true to understand what is the problem.
...
3
votes
Accepted
.htaccess file redirecting to parent directory
For the sake of clarity, this should be your .htaccess
RewriteEngine On
RewriteBase /zingery/wordpress/
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{...
3
votes
Accepted
Can't access wp-admin Internal Server Error 500
There are so many for internal server error. The main reasons for internal server errors are.
Corrupt .htaccess file
PHP Memory limit
Corrupted plugin
Incompatible PHP version
Corrupted core files
...
2
votes
Accepted
What might cause a POST to wp-admin/async-upload.php to return JSON >and< HTML?
I had the same issue and did not find any information in my debug output.
It worked out, that DOING_AJAX was not defined (I don't know why).
Changing the beginning of async-upload.php from
if ( ...
2
votes
Accepted
Unable to access website admin page - 500 error - how to change landing page
Connect to you Cpanel through godaddy and search for PHPMyadmin. The interface that allow you to manage your database.
Then search for a table called wp_options then in this table you should be able ...
2
votes
Getting HTTP error 500 after migrating a website
Given these errors are all being generated by WP core, there might be a corrupt install (a file/files only partially copied)
Download the matching WP install and manually upload the files above ...
2
votes
Accepted
Error in Validate Field with ACF plugin in Wordpress
I did have the same issue. And I wasted enough time for the answer.
At first be sure that:
The ajax request isn't failed and happens. So, check:
Is acf_form_head() before get_header() and run ...
2
votes
HTTP 500 error after plugin install
The simplest way to disable a plugin when there is no access to admin, is renaming of plugin folder.
Connect via ftp by Filezilla, for example. Find plugin folder and put dot before its folder name. ...
2
votes
Accepted
How can I reactivate a plugin without access to my dashboard?
You can do this by editing the database via PhpMyAdmin.
Go to your database's Options table and find a row called active_plugins.
You should see something like this...
a:10:{
i:0;s:49:"1and1-...
2
votes
Accepted
Error Logs to Diagnose Error 500 in LAMP
You are using Apache for your http server,it will keep it owns logs for access & errors, depending on how you have it configured.
By default Apache will probably use the following logs;
/var/...
1
vote
Accepted
Nginx 404, 500 errors and Wordpress
Warning
Before you get started, I highly recommend you to create a child theme to safely modify the current theme you’re using. That way, if you need to update your theme, your changes won’t be ...
1
vote
Accepted
Wordpress 4.9.8 doesn't save if content has style="
I've had the same issue recently.
Inline styles, as well as <img> tags, would cause the 410 Gone status and error message (The requested resource /wp-admin/post.php is no longer available on ...
1
vote
Wordpress 4.9.8 doesn't save if content has style="
SOLVED:
as @milo suggests, I found solution disabling mod_security under cPanel. So I ask to my hoster (register.it) if there was some problem. They confirm me that servers are under updating security ...
1
vote
Accepted
Meta Query Array Error 500
In my previous answer (that I've deleted..), I suggested using custom SQL queries, which worked for me. However, since it didn't work (well) for you, let's try using this function:
function ...
1
vote
WooCommerce - Call to undefined function is_woocommerce()
This may or may not be a relevant answer.
However, I was receiving a very similar error after updating the Divi theme.
Uncaught Error: Call to undefined function et_is_woocommerce_plugin_active()
I ...
1
vote
Accepted
Using the child theme functions.php to change the customizer.php on parent theme
Put this code in function.php. create custom section in customizer for logo :
<?php
add_action('customize_register', 'theme_footer_customizer');
function theme_footer_customizer($wp_customize){
...
1
vote
How come I get internal server error even with try catch for get_the_title in functions.php?
You can avoid hard coded title tag in your theme template. Just use theme support.
add_theme_support('title-tag');
OR, If you want to use title tag then you can do something like this.
<title>...
1
vote
500 Internal Server Error after attempting to switch from subdirectory to addon domain
An update & resolution:
I asked the web host for help and they found that I had a piece of code in .htaccess limiting the access to wp-config.php. Once the code was removed, all worked as it ...
1
vote
full blog working fine but post-new.php throwing 404
Internal server errors (error 500) are often caused by plugin or theme function conflicts, so if you have access to your admin panel, try deactivating all plugins. If you don’t have access to your ...
1
vote
wordpress upgrade from 4.2.1 to 4.7.3 500 error
It is hard to track down the cause of a 500 error, so here's what I'd try:
Be sure to also copy the new root folder files (except wp-config.php) - not just the wp-admin and wp-includes directories.
...
1
vote
Activating Child Theme Breaks Website, Blank Page, Error 500
Looks like PHP errors are switched off and you have a fatal PHP error.
If they are being logged, you should check the logs as that would be your best bet to find out what's wrong. There you will find ...
1
vote
Accepted
Activating Child Theme Breaks Website, Blank Page, Error 500
Congrats on starting your first WordPress child theme. I'd recommend scraping what you have (because we don't know exactly what's wrong) and starting with the simplest child theme you can. Then add ...
1
vote
Activating Child Theme Breaks Website, Blank Page, Error 500
Your style.css file is probably not breaking the site. As you suspect, CSS alone can't break a site, but if there are any problems with your theme as a whole, activating the theme may cause problems.
...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
500-internal-error × 143errors × 24
php × 19
plugins × 16
internal-server-error × 9
ajax × 8
wp-admin × 8
htaccess × 8
uploads × 6
functions × 5
child-theme × 5
fatal-error × 5
plugin-development × 4
customization × 4
permalinks × 4
themes × 4
updates × 4
nginx × 4
http × 4
troubleshooting × 4
posts × 3
wp-query × 3
theme-development × 3
loop × 3
shortcode × 3