Fatal error Uncaught Error Call to undefined function wp check php mysql versions - Fatal error: Uncaught Error: Call to undefined function wp_check_php_mysql_versions()

Fatal error: Uncaught Error: Call to undefined function wp_check_php_mysql_versions()

WordPress website was broken and inside the error_log file the following error was repeatedly printed: Fatal error: Uncaught Error: Call to undefined function wp_check_php_mysql_versions() This fatal error indicates that WordPress was unable to check server configuration: PHP and MySQL versions. In 99% of the time, the error is caused by missing or modified WP core … Read full article →

curl error 60 - How to fix curl error 60: SSL certificate problem: certificate has expired error ✅

How to fix curl error 60: SSL certificate problem: certificate has expired error ✅

From September 30, 2021, WordPress websites that use Let’s Encrypt certificates are having issues with HTTP API requests. For example, here is an example that will cause this error: $res = wp_remote_get( ‘https://abcdef.com/’ ); if( is_wp_error( $res ) ){ echo $res->get_error_message(); } the error message: cURL error 60: SSL certificate problem: certificate has expired What causes this error? … Read full article →

How to DEBUG in WordPress - How to properly DEBUG in WordPress ✔️

How to properly DEBUG in WordPress ✔️

WordPress has many built-in functions that can help you debug. They can be activated by editing them in the wp-config.php file: 1. Enable debug mode By default Debug mode is disabled in WordPress, so you need to enable it by editing the wp-config.php file and changing the value from define( ‘WP_DEBUG’, false ); to define( … Read full article →

Move wp config outside the web root directory - Move wp-config.php outside the web root directory

Move wp-config.php outside the web root directory

I recently did a guide on 5 (Less known) WordPress Security Tips to keep your website safe from hackers where I suggested moving wp-config.php outside the web root directory as a simple change that adds an additional layer of security to your WordPress website. The wp-config.php file contains your MySQL database username & password, along with … Read full article →

phpinfo WordPress Shortcode - phpinfo() WordPress Shortcode

phpinfo() WordPress Shortcode

Here is an example of a simple WordPress plugin that uses the [phpinfo] shortcode to display PHP information similar to what the phpinfo() function does: <?php /* Plugin Name: PHP Info Shortcode Description: Displays PHP information using the [phpinfo] shortcode. */ function phpinfo_shortcode_handler( $atts ) { // Build the HTML for the data $html = … Read full article →

move wp pages to doc root - How to move WordPress pages to the Domain Root

How to move WordPress pages to the Domain Root

I have a WordPress blog on pcelarstvopejcic.com/blog and a few pages that I would like to move to the domain document root, so that: pcelarstvopejcic.com/blog/contact becomes pcelarstvopejcic.com/contact pcelarstvopejcic.com/blog/shop becomes pcelarstvopejcic.com/shop So this way I only have one WP installation and blog posts would be accessible via pcelarstvopejcic.com/blog/POST and pages in pcelarstvopejcic.com/PAGE To do this, edit … Read full article →

XML RPC WordPress Tutorial - Introduction to XML-RPC

Introduction to XML-RPC

XML-RPC is a remote procedure call (RPC) protocol that uses XML to encode its calls and HTTP as a transport mechanism. It is often used by WordPress to allow remote access to the WordPress functions from external clients. Here are some examples of how XML-RPC can be used in WordPress: Enabling XML-RPC in WordPress To … Read full article →