Out of memory error reporting

How do your users upload photos? You’re right about register_shutdown_function. It seems to work well in my code, though I only ever call my back-end via AJAX (I’ve also got file upload functionality), and so only need to account for this case. Here’s how I set it up in my plugin. Outside of the plugin … Read more

Fatal error: Cannot redeclare when switching themes

The CSS for my parent theme (core) was incorrectly formatted. The code at the top read: Theme Name: Core Theme URI: http://www.domain.co.uk Description: The core theme. Author: Squideyes Author URI: http://www.domain.co.uk Template: Core Version: 1.0.0 Tags: clean, simple, easy The Template: tag should only appear in the child theme css. This is what caused the … Read more

Fatal Error relating to sessions.php

I fixed it by: 1) checking wordpress version in: /home/myusername/public_html/version.php 2) downloading this version package from wordpress website 3) addingwp-includes/session.php file from downloaded package into /home/myusername/public_html/wp-includes/session.php (that file was empty or not existing)

Fatal error in wp-admin/customize.php after fresh install due to null $wp_customize

It seems I got some faulty nginx configuration from an article on how to configure WordPress in a subdirectory. Config Before location @wp { rewrite ^/blog(.*) /blog/index.php?q=$1; } location ^~ /blog { root /home/user; index index.php index.html index.htm; try_files $uri $uri/ @wp; location ~ \.php$ { include fastcgi_params; fastcgi_index index.php; fastcgi_intercept_errors on; # Deleted this … Read more

Cannot access WordPress Appearance → Editor

Why it happened: Since WordPress back end editor runs on top of WordPress itself, if you cause a critical Error within the PHP files, that will cause error on the backend Admin Panel as well. At that point you will no longer be able to access the backend editor until you fix the error. What … Read more

Fatal Error in WordPress WooCommerce theme “Call to undefined function wc_get_theme_slug_for_templates()”

Ok, the error is telling you this: The error comes from this theme file: \themes\vw-ecommerce-shop\woocommerce\global\wrapper-end.php Line: 23. In that file on line 23 the following function is called wc_get_theme_slug_for_templates() but at that point it’s not (yet) available. The function should be available though, because it’s a valid Woocommerce function, see here. Can you update your … Read more

Fatal error after updating to WordPress 5

Corrupted files If this happened during/after an update, the update may have not completed correctly. Try a manual update: https://codex.wordpress.org/Upgrading_WordPress#Manual_Update wp-config.php Your wp-config.php file might be empty for some reason. See: https://codex.wordpress.org/Editing_wp-config.php

Fatal error…Please help me

You have another plugin/theme adding the WP_Importer class. Did you install any recent plugin/theme that broke the website? If you did install a plugin that broke the website go in the wp-content/plugins folder and change/delete the folder of the plugin you installed. It will work again after that. You should also open a ticket with … Read more

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