derrick_w
Forum Replies Created
-
I will investigate at my earliest convenience, and report back.
Recap & hacks for three unique wc-captcha 1.3.1 entries in the WP 6.1.1 error log (IIS or LiteSpeed, with or without output buffering):
PHP Warning: magic method Wc_Captcha::__wakeup(){} must have public visibility in … wc-captcha/wc-captcha.php on line 93
hack: wc-captcha.php:93, changed visibility of __wakeup() to public, was a private empty method.PHP Warning: Cannot modify header information – headers already sent in … wc-captcha/includes/class-cookie-session.php on line 53, 55, & 58 (5 entries),
triggered by WP cron events (aprox 30 per day), and whenever new cookies required.
hack: class-cookie-session.php:27, add test of headers_sent
was setting cookies after admin.php called nocache_headersPHP Warning: Trying to access array offset on value of type null in … wc-captcha\includes\class-core.php on line 707, triggered on edit a Page that included a wp7 form.
In generate_captcha_phrase() Line 707: $session_id = Wc_Captcha()->cookie_session->session_ids[‘multi’][$this->session_number++];
session_ids[‘multi’] null cuz if is_admin() does not run Wc_Captcha_Cookie_Session::init_session which populates session_ids
hack: prefix lines 707 & 720 with ‘if (!is_admin())’Forum: Plugins
In reply to: [JetBackup - Backup, Restore & Migrate] Does BackupGuard support PHP 8 ?That link refers to single issue.
Is this your final answer to this topic?
Thank you
Oops. Same fatal error on LiteSpeed x64 php8 BG 1.6.15, but thankfully also the same fix, (int) cast, stated above.
Let’s not assume. The system in use at the time of the OP was PHP 8.0.0 by FastCGI on IIS 7.5 on win 7 32-bit. Sorry, I don’t have an older version (7.x) of php to test with. Shall we talk about BG’s support for php 8.x+?
At the time of the original post, I did not realize that regardless of the standard php error handler stopping processing, at least toggling the cloud destination was still saved.
I can confirm com\core\schedule\SGScheduleAdapterWordpress.php line 73 edited thusly:
$dayOfInterval = (int) $cron['dayOfInterval']; # added cast to intmakes my BackupGuard happier on my php 8.0.
Incredibly, PHP 8.0 FastCGI, on IIS 7.5 (32-bit) displays and logs the origin of Warnings better than LiteSpeed. Here are repeatable warnings each visit to https://<domain>/wp-admin/site-health.php. I failed to mention in the 1st post that this is latest WP 6.1.1 and WC Captcha 1.3.1.
Warning: The magic method Wc_Captcha::__wakeup() must have public visibility in <path>\wc-captcha\wc-captcha.php on line 93
Warning: Cannot modify header information – headers already sent by (output started at <path>\wc-captcha\wc-captcha.php:93) in <path>\wp-admin\includes\misc.php on line 1416
Warning: Cannot modify header information – headers already sent by (output started at <path>\wc-captcha\wc-captcha.php:93) in <path>\wp-includes\functions.php on line 6865
Warning: Cannot modify header information – headers already sent by (output started at <path>\wc-captcha\wc-captcha.php:93) in <path>\wp-admin\admin-header.php on line 9Forum: Networking WordPress
In reply to: 800 Tables for 6 sites in a single WP MultisiteI don’t see why not. If you need the ‘errant tables’ for troubleshooting, it appears you have no problem recreating them.
Forum: Networking WordPress
In reply to: 800 Tables for 6 sites in a single WP MultisiteIt sounds like a plugin is responsible, and NOT WP. You’ll have to run the same experiment with only 1 plugin activated at a time. Read http://codex.ww.wp.xz.cn/Managing_Plugins#Troubleshooting. When you find which plugin is causing the extra tables, you’ll have to do more battle with the author(s), find another plugin, or stop using the plugin. Please post when you find which plugin, or combination of plugins, caused your prolific tables issue. Others may benefit from your experience.
Forum: Networking WordPress
In reply to: 800 Tables for 6 sites in a single WP MultisiteIf you don’t understand questions you have to let the asker know. OK, let’s see what happens with: Disable all plugins. Count the tables in your database (db). Add a site. Recount the tables in your db. How many tables were added by adding a site, with all plugins disabled
Forum: Networking WordPress
In reply to: 800 Tables for 6 sites in a single WP MultisiteCool. Waiting for your follow up. It’s starting to smell like a plugin issue. Repose the question to wpmudev asking something like, “Hey, I’m using your plugin, adding a site, and getting about a 100 tables added to my database. What am I doing wrong with your plugin?”
Forum: Networking WordPress
In reply to: 800 Tables for 6 sites in a single WP Multisite“I set this up a few months ago at Godaddy hosting…so I believe it is a multisite with subfolders.” It is important to KNOW. If you don’t know, you can’t even begin to read the documentation that applies to your WP Network. You keep referring to multisite. Are you in fact working with WP 3.5.1? Here’s one way to KNOW which of the 2 WP Network options you chose. Assuming this line has not been changed since the Network install, what does the line in your wp-config read?
define('SUBDOMAIN_INSTALL', ????);
You still haven’t stated your goal. Are you cool with the SUBDOMAIN_INSTALL setting in the above line?
“Earlier today I backed up and then deleted all table entries that had … “
Did you mean you deleted tables as opposed to table entries? Did you do that directly on the database or did you use Network Admin like I asked? My goal is to find out if WP, when it deletes a site, can delete the aprox. 100 very same tables that it creates when you add a site.
“No. Most of the additional sites end with 2. Here is a tally” Totally missed my point. Let me try again. Disable all plugins. Count the tables in your database (db). Add a site. Recount the tables in your db. How many tables were added by adding a site, with all plugins disabled.How many of your sites have content worth saving? You might want to export that content and start over.
Forum: Networking WordPress
In reply to: 800 Tables for 6 sites in a single WP Multisite“This is a WP multisite” only tells us we are in the right forum. Disabling a plugin should NEVER delete tables. I get the ‘correlation.’ Time/Date stamps I’ll leave you to look for. You have a larger problem and I’m focusing on that. I really need answers to the questions I posted.
Forum: Networking WordPress
In reply to: 800 Tables for 6 sites in a single WP MultisiteGlad you sent the urls. So your goal is WP subfolder Network then? I have only ever seen WP Network ‘core’ create about 7 extra tables per site added, and always wp_#_????. I think the Single site tables are about 11, and the Network tables add about another 7. So with 6 sites you should have around 60 tables.
What are some of the ‘z’ and ‘y’ numbers? Are all the wp_…6 tables deleted when you use Net admin to delete site 6? Back it up first if you need to.
Try disabling all plugins, and create another site. Does ‘WP’ still create about 100 tables for the site?Forum: Networking WordPress
In reply to: 800 Tables for 6 sites in a single WP MultisiteSiteA.com and SiteB.com is WP with multidomains, not WP Network with subdomain sites like sitea.domain.tld, siteb.domain.tld. For multidomains you need Multiple domains with multisite. So what is your goal?