In this case, WordPress caught an error with one of your plugins, SEOPress.
visit the page where the error was caught (https://xxx.com/wp-admin/post.php?post=11257&action=elementor) and check for any visible issues.
Error Details
=============
An error of type E_ERROR was caused in line 719 of the file /home/1217751.cloudwaysapps.com/wsvsvngd/public_html/wp-content/plugins/wp-seopress/inc/admin/page-builders/elementor/inc/admin/class-document-settings-section.php. Error message: Uncaught TypeError: array_merge(): Argument #1 must be of type array, string given in /home/1217751.cloudwaysapps.com/wsvsvngd/public_html/wp-content/plugins/wp-seopress/inc/admin/page-builders/elementor/inc/admin/class-document-settings-section.php:719
When adding a pre-order item to the basket, it will say that the item has been added to the basket but the item will not show up in the basket. When you check the basket you will get an error that there is a problem and you should return to the basket and fix the problem. When you check the basket, it is empty and nothing has been added. The problem also affects products allowed on backorder and all other product orders.
It takes a huge amount of work to get the plugin working. I need to disable all the Woocommerce related plugins and then start by enabling back orders and then pre-orders, check that the pre-orders are working, clear the cache check again and then enable all the plugins again one at a time. Pre-orders will work for a while but when a product change is made or a Woocommerce plug in is updated the Pre-orders stop working and then the whole process to get Pre-orders working starts again.
Making a full backup of a working setup and restoring the backup when Pre-orders stops working does not help. It seems that Pre-orders is unstable or the instability is caused by something else. I cannot find any single plug in that seems to be the root cause.
This is a problem, because the website is live and while I am trying to fix the problem, I am losing orders and customers.
Is there a log that I could collect when the plugin stops functioning? Can you advise please? Currently Pre-orders is working on the site but could stop at any moment.
]]>I used code in function.php to modify the price displayed on the front end, but when using currency switching, the page always remains in US dollars. When I turn off the wp super cache plugin, the currency on the page displays the correct currency symbol. I want to know how to make the wp super cache plugin bypass the cache of the currency switching plugin?
Hope to get help.
Thank you
]]>[03-Oct-2024 10:28:03 UTC] PHP Fatal error: Uncaught TypeError: json_decode(): Argument #1 ($json) must be of type string, array given in *****/wp-content/plugins/cleantalk-spam-protect/lib/Cleantalk/ApbctWP/AdjustToEnvironmentModule/AdjustToEnv/AdjustToEnvLiteSpeedCache.php:201
Stack trace: 0 *****/wp-content/plugins/cleantalk-spam-protect/lib/Cleantalk/ApbctWP/AdjustToEnvironmentModule/AdjustToEnv/AdjustToEnvLiteSpeedCache.php(201): json_decode() 1 *****/wp-content/plugins/cleantalk-spam-protect/lib/Cleantalk/ApbctWP/AdjustToEnvironmentModule/AdjustToEnv/AdjustToEnvLiteSpeedCache.php(70): Cleantalk\ApbctWP\AdjustToEnvironmentModule\AdjustToEnv\AdjustToEnvLiteSpeedCache->setLiteSpeedCacheJsExcludesState() 2 *****/wp-content/plugins/cleantalk-spam-protect/lib/Cleantalk/ApbctWP/AdjustToEnvironmentModule/AdjustToEnv/AdjustToEnvAbstract.php(25): Cleantalk\ApbctWP\AdjustToEnvironmentModule\AdjustToEnv\AdjustToEnvLiteSpeedCache->doAdjust() 3 *****/wp-content/plugins/cleantalk-spam-protect/lib/Cleantalk/ApbctWP/AdjustToEnvironmentModule/AdjustToEnvironmentHandler.php(47): Cleantalk\ApbctWP\AdjustToEnvironmentModule\AdjustToEnv\AdjustToEnvAbstract->run() 4 *****/wp-content/plugins/cleantalk-spam-protect/inc/cleantalk-updater.php(1290): Cleantalk\ApbctWP\AdjustToEnvironmentModule\AdjustToEnvironmentHandler->handle() 5 *****/wp-content/plugins/cleantalk-spam-protect/inc/cleantalk-updater.php(72): apbct_update_to_6_42_0() 6 *****/wp-content/plugins/cleantalk-spam-protect/cleantalk.php(3302): apbct_run_update_actions() 7 *****/wp-content/plugins/cleantalk-spam-protect/cleantalk.php(239): apbct_update_actions() 8 *****/wp-admin/includes/plugin.php(2387): include_once('…') 9 *****/wp-admin/includes/plugin.php(673): plugin_sandbox_scrape() 10 *****/wp-admin/plugins.php(60): activate_plugin() 11 {main}
thrown in *****/wp-content/plugins/cleantalk-spam-protect/lib/Cleantalk/ApbctWP/AdjustToEnvironmentModule/AdjustToEnv/AdjustToEnvLiteSpeedCache.php on line 201
My Fix
private function setLiteSpeedCacheJsExcludesState($state)
{
$state = (bool)$state;
if (!(
apbct_is_plugin_active('litespeed-cache/litespeed-cache.php') &&
get_option('litespeed.conf.optm-js_exc')
)) {
return;
}
$current_js_exc = get_option('litespeed.conf.optm-js_exc');
// Check if the current JS exclusion list is already an array
if (!is_array($current_js_exc)) {
$current_js_exc_array = json_decode($current_js_exc, true); // Decode as associative array
} else {
$current_js_exc_array = $current_js_exc;
}
if (!isset($this->info[static::class]) || !key_exists('original_config_js_exc', $this->info[static::class]) ) {
$this->info[static::class]['original_config_js_exc'] = $current_js_exc;
}
try {
if ($state === false) {
// Add 'apbct-public-bundle.min.js' to the exclusion list
$current_js_exc_array[] = 'apbct-public-bundle.min.js';
} else {
// Remove 'apbct-public-bundle.min.js' from the exclusion list
$current_js_exc_array = array_filter($current_js_exc_array, function ($value) {
return $value !== 'apbct-public-bundle.min.js';
});
}
// Encode back to JSON and update the option if it was originally a JSON string
if (!is_array($current_js_exc)) {
update_option('litespeed.conf.optm-js_exc', json_encode($current_js_exc_array));
} else {
update_option('litespeed.conf.optm-js_exc', $current_js_exc_array);
}
if (class_exists('\LiteSpeed\Purge')) {
Purge::purge_all();
}
} catch (\Exception $e) {
error_log('Antispam by CleanTalk error: ' . __METHOD__ . ' ' . $e->getMessage());
}
}
]]>I run two networks, and unfortunately, the older one of the two crashed on update. I fiddled around until I was sure that the plugin update that caused the problem was Multisite Enhancements. I’m now running with it deactivated and the site is up. I tried activating it and it crashed so I reverted to a backup with it deactivated and I’m up and running again. All other plugins are up to date and it’s running WP 6.5.4 and that was true when I last attempted to activate MSE without success.
Of course I find this plugin essential – hint, hint Core folks – so I’d like to get it going again. Does anyone have any suggestions? Are there plugins that are conflicting with this new version? My other network handled the update just fine. Both are on WPEngine if that matters.
I’d be happy to give any additional information. Here is my list of all plugins. Of course none of the sites have them all active. I’m pretty confident that no site has more than one plugin that performs the same function active. Thanks in advance for any suggestions.
Admin Menu Editor
Advanced Custom Fields
Better Search Replace
BlockMeister
Custom Post Type UI
Dashboard To-Do List
Disable Comments
EWWW Image Optimizer
Find My Blocks
Flexible Table Block
Fluent Forms
Fluent Forms Connector for MailPoet
Fluent Forms PDF Generator
Fluent Forms Pro Add On Pack
Fluent Snippets
FluentCRM - Marketing Automation For WordPress
FluentSMTP
Force Regenerate Thumbnails
Formidable Forms
Formidable Forms Pro
Genesis Blocks
Genesis Simple EditsGutenbergImsanity
Kadence AI Starter Templates
Kadence Blocks - PRO Extension
Kadence Blocks – Gutenberg Blocks for Page Builder Features
Kadence Conversions - Popups, slide-ins
Kadence Pro - Premium addon for the Kadence Theme
Mai Archive Pages
Mai Engine - Mai Theme Dependency
Mai Icons
Mai Pro Plugin (formerly Mai Design Pack)
MailPoet
ManageWP - Worker
Members
Multisite Enhancements
NS Cloner - Site Copier
Pattern Manager
Post Type Switcher
Print My Blog
Print, PDF & Email by PrintFriendly
PublishPress Blocks
PublishPress Capabilities
Quick Page/Post Redirect Plugin
Redirection
SEOPress
SEOPress PRO
Simple Custom CSS
Simple History
SureCart
SureMembers
SWIS Performance
Toolset Types
User Switching
WordPress Importer
WP All Import
WP Dashboard Notes
WP Help
Yoast Duplicate Post
Yoast SEO
Yoast SEO Premium
]]>When the plugin is activated, it causes the the posts page in the admin back end to display all the posts names in narrower columns so that the names that used to be on one line, is now displayed over say 3 lines. There are other plugins that also do this, and when each are activated, it causes a cumulative effect.
For example, if I have another plugin that causes this effect, when this plugin (the WP Last Modified Info plugin) is activated too, the columns become even more narrow so that the titles goes from originally being displayed as one line to over 3 lines to over 5 lines (or more) with a few words per line, eventually even 1 letter per line the more such plugins I activate or not.
Can you assist with this?
]]>Fatal error: Uncaught Error: Call to a member function get_page_permastruct() on null in /home/customer/www/employees.cybermetrics.com/public_html/wp-includes/link-template.php:435 Stack trace: #0 /home/customer/www/employees.cybermetrics.com/public_html/wp-includes/link-template.php(397): _get_page_link(Object(WP_Post), false, false) #1 /home/customer/www/employees.cybermetrics.com/public_html/wp-includes/link-template.php(197): get_page_link(Object(WP_Post), false, false) #2 /home/customer/www/employees.cybermetrics.com/public_html/wp-content/plugins/wp-user-manager/includes/filters.php(129): get_permalink(Object(WP_Post)) #3 /home/customer/www/employees.cybermetrics.com/public_html/wp-includes/class-wp-hook.php(310): wpum_login_url(‘https://employe…’, ”, false) #4 /home/customer/www/employees.cybermetrics.com/public_html/wp-includes/plugin.php(205): WP_Hook->apply_filters(‘https://employe…’, Array) #5 /home/customer/www/employees.cybermetrics.com/public_html/wp-includes/general-template.php(467): apply_filters(‘lo in /home/customer/www/employees.cybermetrics.com/public_html/wp-includes/link-template.php on line 435
Thank you in advance for your assistance in this matter.
Brandon Jones – War Horse Agency
Hi,
I use Duplicator Pro to push updates manually, daily via the drag-n-drop "Import" method that makes it very simple and hassle-free. The one thing that isn't so simple, is how WordFence reacts.
My site works perfectly on my laptop local dev WAMPServer system. However, whenever I push DEV changes to the IONOS STAGING server (a live url online) WordFence seems to always experience hiccups.
HOW I GET WORDFENCE WORKING WITH DUPLICATOR:
1) Disable WordFence firewall (WAF) on STAGING
2) Import backup package into Duplicator on STAGING
AFTER SUCCESSFUL SITE RESTORE ...
WordFence says it's not installed, so I have to do all this on STAGING:
- PLUGINS > Deactivate WordFence
- Select "DELETE ALL TABLES AND DATA"
- ACTIVATE: WordFence Assistant
- WFA: DISABLE WordFence Firewall
- WFA: ENABLE Delete 2FA secrets
- WFA: delete all Wordfence data and tables
- WP-Optimize: DATABASE OPTIMIZATIONS
- WP-Optimize: TABLES - Removed those associated with:
WP All Import/Export,
- MANUALLY deleted wp_wfwaffailures (because even WFA didn't clean that one)
- INSTALL WordFence from Plugins menu
- INSTALL free license key
Great, WordFence is now successfully installed and running, but whenever I try to import a settings configuration via
WordFence > Tools > Import/Export Options
it fails with this error:
Import Options Error
An error occurred: Invalid response: array ( 'ok' => 1, 'export' => NULL, )
Interestingly, I seem to be the first reporting this specific error. Google has all kinds of false positives, but no articles that actually address this error message, and I can't find any reports of this error on the forums here either.
QUESTIONS YOU MIGHT ASK
* There are no console error message in Chrome dev tools
* Windows 10
* WordFence is persistently in "Learning Mode"
* I have exported diagnostics, but am unclear if it is recommended to post that info in this forum
Thanks in advance!
]]>