jocke_gbg
Forum Replies Created
-
What permalink structure are you using? Currently it only supports %postname%
Forum: Fixing WordPress
In reply to: Remove Permalink Slug from Custom Post TypeThis is a tricky one, I had exactly the same problem but after a lot of debugging and troubleshooting I managed to fix it.
The trick is to add a new rewrite rule
function book_rewrite_rule() { add_rewrite_rule('(.*?)$', 'index.php?book=$matches[1]', 'top'); } add_action('after_theme_setup', 'book_rewrite_rule');
I posted on my blog a step by step guide: https://www.ultimatewebtips.com/remove-slug-from-custom-post-type/
Hope that’s what you looking for
Forum: Everything else WordPress
In reply to: localhost install: http error on image upload/wordpress/wp-admin/async-upload.php returns a 500 response code
That means that PHP is creating a fatal error in that file, and that page is accessed by the flash so you wont see anything on your screen more then “Http error”.
Make sure you log the errors into a file to debug.
You are correct to give the full windows path “D:\……\php_errors.log”
If you dont get that to work try this:
ini_set( “log_errors” , “1”);
ini_set( “error_log” , “error_file.log” );Forum: Everything else WordPress
In reply to: localhost install: http error on image uploadSorry, change error_display to error_reporting ..
Forum: Everything else WordPress
In reply to: localhost install: http error on image uploadAre you showing errors?
I can see that you have PHP 5.3, there are a lot of deprecated functions that gives an E_DEPRECATED.
Add following 2 lines to functions.php in your theme
ini_set(‘display_errors’, 1);
error_display(E_ALL ^ E_NOTICE);I know that wp-settings has some issues with PHP 5.3
If you need help tracking your errors, read more about it here:
https://www.ultimatewebtips.com/services/apache/how-to-enable-php-error-logging-via-htaccess/Forum: Everything else WordPress
In reply to: localhost install: http error on image uploadI can think of a couple of things:
1. If you are running wp-admin in https with an invalid certificate you can get this error.
2. If you running WP in MU mode there is a value you need to update in wp_X_options, check for option_name = “fileupload_url” and update to your local URL
3. Check permissions, but you probably already done that ??