tunjic
Forum Replies Created
-
Forum: Plugins
In reply to: [Zapier for WordPress] PHP Warning (PHP 8 issue?)It looks like the error occurs in the function:
public function determine_current_user($user) { $rest_api_slug = rest_get_url_prefix(); $is_valid_rest_api_uri = strpos($_SERVER['REQUEST_URI'], $rest_api_slug); $is_valid_token_uri = strpos($_SERVER['REQUEST_URI'], $this->namespace . '/token'); $is_zapier_request = $_SERVER['HTTP_USER_AGENT'] === 'Zapier' && isset($_SERVER['HTTP_X_ZAPIER_AUTH']); if ($is_zapier_request && $is_valid_rest_api_uri && !$is_valid_token_uri) { $user_id = $this->get_user_from_token(); if ($user_id) { return $user_id; } } return $user; }because the “HTTP_USER_AGENT” key is not present in the
$_SERVERsuperglobal array.So change line 176 from
$is_zapier_request = $_SERVER['HTTP_USER_AGENT'] === 'Zapier' && isset($_SERVER['HTTP_X_ZAPIER_AUTH']);to
$is_zapier_request = isset($_SERVER['HTTP_USER_AGENT']) && $_SERVER['HTTP_USER_AGENT'] === 'Zapier' && isset($_SERVER['HTTP_X_ZAPIER_AUTH']);That seems to clear things up. At least until the plugin is updated. 🙂
Forum: Plugins
In reply to: [Zapier for WordPress] PHP Warning (PHP 8 issue?)Yep. I’m seeing this too for a site on PHP 8.1
Got error ‘PHP message: PHP Warning: Undefined array key “HTTP_USER_AGENT” in /wp-content/plugins/zapier/zapier.php on line 176
It seems tied to an IP address receiving a 404 Get.
Forum: Plugins
In reply to: [WooCommerce] Deadlock error on ActionScheduler actions tableOK! I believe I have fixed the issue.
I deactivated wp-rocket, and then cleared all mention of the plugin from pending cron tasks… including all of the rocket_rucss_pending_jobs_cron actions that were stacked up for some reason. I reactivated wp-rocket and now all is well.
My theory is that this glitch arose during an update of the wp-rocket plugin. This rogue cron task (which doesn’t appear in the new version) was interfering with the a Woocommerce action and causing the Deadlock.
Thanks again.
Forum: Plugins
In reply to: [WooCommerce] Deadlock error on ActionScheduler actions tableThanks @shaonback2.
Wp-rocket does not do database caching, but I do have Redis object caching in place, so I have tried clearing that cache too. So far, that is not affecting the issue.
Still digging!
Forum: Plugins
In reply to: [WooCommerce] Deadlock error on ActionScheduler actions tableThanks @chiape
Good call on the caching plugin. Digging around I noticed that there are thousands (!) of pending “scheduled actions” under the WC status tab: rocket_rucss_pending_jobs_cron
That seemed odd. So deactivating wp-rocket was a test, but it did not make a difference for this error.
This site is also using cloudflare. So that’s the next point of interest. I’ll look into that. I don’t understand how that might be the culprit, but I suppose it’s possible. Any ideas there?
- This reply was modified 4 years, 1 month ago by tunjic.
Forum: Plugins
In reply to: [WooCommerce] Stuck on WC-Admin pageHi @boutq
Did you get this resolved? If so, I would like to know how, and what caused the issue.
Thank you.
Forum: Plugins
In reply to: [Schema] Two Schema Not Showing for VideoObject to oEmbed@titusraj I see that you fixed this issue on you example page. How were you successful? Thanks.
I’m seeing this in my logs:
Uncaught exception 'PDOException' with message 'SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry '2236-2235' for key 'PRIMARY'' in /httpdocs/wp-content/plugins/wordpress-seo-premium/vendor_prefixed/j4mie/idiorm/idiorm.php:464Different than the above error, so just reporting it.
- This reply was modified 6 years, 1 month ago by tunjic.
Forum: Plugins
In reply to: [W3 Total Cache] Removing the footer commentAfter poking around I believe this is the solution:
Edit this file:
/wp-content/w3tc-config/master.phpSomewhere near line 793,
Change:
"common.support": "footer",To:
"common.support": "",I think that will remove the link in the footer. But please be nice and show your support of the plugin in some other way… 🙂
- This reply was modified 7 years, 10 months ago by tunjic.
Forum: Plugins
In reply to: [W3 Total Cache] Removing the footer commentI think the question is how to remove the footer link that appears: “Optimization WordPress Plugins & Solutions by W3 EDGE.”
Apparently there once was a “link” setting available on the plugin’s dashboard to “spread the word,” but that seems to have been removed.
@justjamie71 Did you find a solution?
- This reply was modified 7 years, 10 months ago by tunjic.
When writing a new post/page, you can save as draft, then go to the SEO>Tools>Bulk editor and enter your title and description. After that, when you return to edit the post/page, the title and description fields will be there and you can edit them there too.
Inconvenient, but it’s a workaround for now.
@tacoverdo Yes! 5.3 solves the problem for me. I updated the plugin and activated it Network-wide. No issues. Thanks for the update.
@joycegrace Yes, for our small network, activating just on ID=1 fixes this issue for all the sites on the network.
I was experiencing this issue too, but activating the plugin on the main blog (ID=1 in the multisite network) and NOT network wide fixed it.
Forum: Plugins
In reply to: [Gravity Forms + Custom Post Types] Wrong Slug Returned when Form SubmittedFound the problem.
The clue came from the fact that the 404 was generated at the server level and not via WordPress. This suggested that maybe it was a server configuration or htaccess problem.
Found two problems. My htaccess file was not allowing Symlinks. I needed:
Options +FollowSymLinks
That line was commented out for some reason…. Fixed that but still no good.
So I stripped my htaccess file down to the bones on my dev site, and suddenly we were working. Added back blocks and found this directive was causing a problem too:
RewriteCond %{ENV:REDIRECT_STATUS} !^$ [OR]
I removed that line and now all is well. I’m no htaccess guru, but for some reason that directive was interfering with the permalinks of this particular plugin combination.