Fatal error Failed opening required wordfence waf.php  - ❌ PHP Fatal error:  Unknown: Failed opening required wordfence-waf.php

❌ PHP Fatal error: Unknown: Failed opening required wordfence-waf.php

After migrating a WordPress website ot another cPanel account, the website displayed 500 error, and the following was recorded inside the error_log file: [17-Aug-2022 12:46:18 Europe/Belgrade] PHP Fatal error: Unknown: Failed opening required ‘/home/XXXXX/XXXXX.com/wordfence-waf.php’ (include_path=’.:/opt/alt/php74/usr/share/pear’) in Unknown on line 0 WordFence adds rules to .htaccess file to include the wordfence-waf.php file by full path: php_value … Read full article →

woocommerce phone number verification - WooCommerce 📱 phone number verification (+381)

WooCommerce 📱 phone number verification (+381)

One of the most important checkout fields for online stores that is also prone to oversight is phone verification. Order confirmation and delivery can both be made much simpler with proper phone verification. In WooCommerce, the phone number field provides an HTML check for a straightforward number: But by ensuring that the number contains a … Read full article →

Uncaught Error Call to undefined function wp in wp blog header.php16 - Uncaught Error: Call to undefined function wp() in wp-blog-header.php:16

Uncaught Error: Call to undefined function wp() in wp-blog-header.php:16

[20-Feb-2023 11:21:11 Europe/Belgrade] PHP Fatal error: Uncaught Error: Call to undefined function wp() in /home/user/example.com/wp-blog-header.php:16 Stack trace: #0 /home/user/example.com/index.php(17): require() #1 {main} thrown in /home/user/example.com/wp-blog-header.php on line 16 You may notice this error Uncaught Error: Call to undefined function wp() in wp-blog-header.php:16 on your error_log file if: wp() is a WordPress core function that calls … Read full article →

wp data breach - What is ℹ️ Data breach (information disclosure) and How to prevent WordPress information disclosure

What is ℹ️ Data breach (information disclosure) and How to prevent WordPress information disclosure

Information disclosure, also known as data breach is the unintentional exposure of sensitive information. This sensitive information can be anything from technical information such as plugin versions or hosting plan limits, to users information that should not be made public. Information disclosure is not a hack but allows an attacker to obtain sensitive information that … Read full article →

Missing a temporary folder - Hot to fix error: Missing a temporary folder. ✔️

Hot to fix error: Missing a temporary folder. ✔️

Missing a temporary folder. WordPress error can be caused for multiple reasons: How to fix this error: 1. Enable required extensions Check if required extensions are enabled in Tools > Site Health: If they are not, enable them from cPanel > PHP Selector 2. Check wp-config.php for WP_TEMP_DIR Check if a custom path for file … Read full article →

Display the total number of WooCommerce products - Display the total number of WooCommerce products

Display the total number of WooCommerce products

To display the total number of WooCommerce products, you can use the following code snippet: <?php $products = wc_get_products(array( ‘limit’ => -1 )); echo count($products); ?> This code uses the wc_get_products() function to retrieve all published products, with no limit on the number of products returned. The count() function is then used to count the … Read full article →

softaculous backup - How to Backup a WordPress site using Softaculous

How to Backup a WordPress site using Softaculous

If you’ve installed your WordPress installation via Softaculous or Installatron, you can set backups directly in the WordPress management screen. Step 1. Simply login to your cPanel and scroll down to web applications section. Step 2. Choose the installation that you want to set backups for and click on the backup button, as shown in the screenshot … Read full article →