Fatal error: Out of memory

I’m not sure where you’re getting those stats, but I doubt that is showing you the amount of memory being used while processing the images. If you navigate to some memory use screen, you’re seeing the amount of memory currently allocated, which is now an entirely different process from when you were uploading images. The … Read more

Can’t Change Theme And White Screen When Activating Any Plugin

As described in this SO answer – https://stackoverflow.com/questions/8028957/how-to-fix-headers-already-sent-error-in-php whitespace before the opening <?php tag of a file can cause a “headers already sent error”. In particular, if the error message is indicating the problem is on line one of the file, this can point to leading whitespace before the first <?php tag (mentioned in point … Read more

WP 5.5 Fatal Error – get_rest_controller() in rest-api.php

Since 5.5 WP_Taxonomy objects now have a new method, get_rest_controller(), to allow for per-taxonomy controller overrides. The problem is that your plugin overwrites the taxonomy saved in the global $wp_taxonomies cache with a version that isn’t a real WP_Taxonomy object, just a stdObject property bag, and so does not have get_rest_controller() to call. This is … Read more

How to make my plugin code die gracefully

Fatal errors point to bad syntax, or bad naming conventions. WordPress does a good job of not activating plugins that throw fatal errors. However, once a plugin is activated, all bets are off. If you’ve created a function or a class, it’s best to follow good naming conventions and namespace properly. For example, a function … Read more

500 Error only one one page in the WP admin

It means you have a PHP syntax error. You need to consult the logs or turn on debug mode. In wp-config.php in your root wordpress directory, find the line as follows: define( ‘WP_DEBUG’, false ); and change it to: define( ‘WP_DEBUG’, true ); Refresh your page that appears blank to find the error. If it … Read more

How to customize the critical error message?

You can use the wp_php_error_message filter to customise this message: add_filter( ‘wp_php_error_message’, function( $message, $error ) { return ‘My custom message.’; }, 10, 2 ); I haven’t tested to be sure, but I would assume that if the critical error that causes this message happens to be in the code of same theme or plugin … Read more

Admin Blank Page with Working Front-End After Updating to WordPress 4.6

After debugging this problem, I found this error in the PHP error log located at public_html/mywebsite/wp-admin/error_log: PHP Fatal error: Call to undefined function wp_raise_memory_limit() in /home/example/public_html/mywebsite/wp-admin/admin.php on line 141 This function wp_raise_memory_limit() should be defined in wp-includes/functions.php but it is not defined in my case due to an unsuccessful update by WordPress. So Solution: Do … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)