Title: tunjic's Replies | WordPress.org

---

# tunjic

  [  ](https://wordpress.org/support/users/tunjic/)

 *   [Profile](https://wordpress.org/support/users/tunjic/)
 *   [Topics Started](https://wordpress.org/support/users/tunjic/topics/)
 *   [Replies Created](https://wordpress.org/support/users/tunjic/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/tunjic/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/tunjic/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/tunjic/engagements/)
 *   [Favorites](https://wordpress.org/support/users/tunjic/favorites/)

 Search replies:

## Forum Replies Created

Viewing 15 replies - 1 through 15 (of 37 total)

1 [2](https://wordpress.org/support/users/tunjic/replies/page/2/?output_format=md)
[3](https://wordpress.org/support/users/tunjic/replies/page/3/?output_format=md)
[→](https://wordpress.org/support/users/tunjic/replies/page/2/?output_format=md)

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Zapier for WordPress] PHP Warning (PHP 8 issue?)](https://wordpress.org/support/topic/php-warning-php-8-issue/)
 *  [tunjic](https://wordpress.org/support/users/tunjic/)
 * (@tunjic)
 * [3 years ago](https://wordpress.org/support/topic/php-warning-php-8-issue/#post-16825153)
 * It looks like the error occurs in the function:
 *     ```wp-block-code
           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 `$_SERVER` superglobal
   array.
 * So change line 176 from
 *     ```wp-block-code
       $is_zapier_request = $_SERVER['HTTP_USER_AGENT'] === 'Zapier' && isset($_SERVER['HTTP_X_ZAPIER_AUTH']);
       ```
   
 * to
 *     ```wp-block-code
       $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](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Zapier for WordPress] PHP Warning (PHP 8 issue?)](https://wordpress.org/support/topic/php-warning-php-8-issue/)
 *  [tunjic](https://wordpress.org/support/users/tunjic/)
 * (@tunjic)
 * [3 years ago](https://wordpress.org/support/topic/php-warning-php-8-issue/#post-16825070)
 * 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](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WooCommerce] Deadlock error on ActionScheduler actions table](https://wordpress.org/support/topic/deadlock-error-on-actionscheduler-actions-table/)
 *  Thread Starter [tunjic](https://wordpress.org/support/users/tunjic/)
 * (@tunjic)
 * [4 years, 2 months ago](https://wordpress.org/support/topic/deadlock-error-on-actionscheduler-actions-table/#post-15565603)
 * OK! 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](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WooCommerce] Deadlock error on ActionScheduler actions table](https://wordpress.org/support/topic/deadlock-error-on-actionscheduler-actions-table/)
 *  Thread Starter [tunjic](https://wordpress.org/support/users/tunjic/)
 * (@tunjic)
 * [4 years, 2 months ago](https://wordpress.org/support/topic/deadlock-error-on-actionscheduler-actions-table/#post-15565520)
 * Thanks [@shaonback2](https://wordpress.org/support/users/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](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WooCommerce] Deadlock error on ActionScheduler actions table](https://wordpress.org/support/topic/deadlock-error-on-actionscheduler-actions-table/)
 *  Thread Starter [tunjic](https://wordpress.org/support/users/tunjic/)
 * (@tunjic)
 * [4 years, 2 months ago](https://wordpress.org/support/topic/deadlock-error-on-actionscheduler-actions-table/#post-15564777)
 * Thanks [@chiape](https://wordpress.org/support/users/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, 2 months ago by [tunjic](https://wordpress.org/support/users/tunjic/).
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WooCommerce] Stuck on WC-Admin page](https://wordpress.org/support/topic/stuck-on-wc-admin-page/)
 *  [tunjic](https://wordpress.org/support/users/tunjic/)
 * (@tunjic)
 * [5 years, 6 months ago](https://wordpress.org/support/topic/stuck-on-wc-admin-page/#post-13886233)
 * Hi [@boutq](https://wordpress.org/support/users/boutq/)
 * Did you get this resolved? If so, I would like to know how, and what caused the
   issue.
 * Thank you.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Schema] Two Schema Not Showing for VideoObject to oEmbed](https://wordpress.org/support/topic/two-schema-not-showing-for-videoobject-to-oembed/)
 *  [tunjic](https://wordpress.org/support/users/tunjic/)
 * (@tunjic)
 * [5 years, 9 months ago](https://wordpress.org/support/topic/two-schema-not-showing-for-videoobject-to-oembed/#post-13443923)
 * [@titusraj](https://wordpress.org/support/users/titusraj/) I see that you fixed
   this issue on you example page. How were you successful? Thanks.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Yoast SEO - Advanced SEO with real-time guidance and built-in AI] Something went wrong while optimising the SEO data of your site. Please try agai](https://wordpress.org/support/topic/something-went-wrong-while-optimising-the-seo-data-of-your-site-please-try-agai/)
 *  [tunjic](https://wordpress.org/support/users/tunjic/)
 * (@tunjic)
 * [6 years, 2 months ago](https://wordpress.org/support/topic/something-went-wrong-while-optimising-the-seo-data-of-your-site-please-try-agai/#post-12744517)
 * 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:
   464`
 * Different than the above error, so just reporting it.
    -  This reply was modified 6 years, 2 months ago by [tunjic](https://wordpress.org/support/users/tunjic/).
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[W3 Total Cache] Removing the footer comment](https://wordpress.org/support/topic/removing-the-footer-comment/)
 *  [tunjic](https://wordpress.org/support/users/tunjic/)
 * (@tunjic)
 * [7 years, 11 months ago](https://wordpress.org/support/topic/removing-the-footer-comment/#post-10515126)
 * After poking around I believe this is the solution:
 * Edit this file:
    /wp-content/w3tc-config/master.php
 * Somewhere 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, 11 months ago by [tunjic](https://wordpress.org/support/users/tunjic/).
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[W3 Total Cache] Removing the footer comment](https://wordpress.org/support/topic/removing-the-footer-comment/)
 *  [tunjic](https://wordpress.org/support/users/tunjic/)
 * (@tunjic)
 * [7 years, 11 months ago](https://wordpress.org/support/topic/removing-the-footer-comment/#post-10514605)
 * I 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](https://wordpress.org/support/users/justjamie71/) Did you find
   a solution?
    -  This reply was modified 7 years, 11 months ago by [tunjic](https://wordpress.org/support/users/tunjic/).
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Yoast SEO - Advanced SEO with real-time guidance and built-in AI] Meta title and description missing JS Console error](https://wordpress.org/support/topic/meta-title-and-description-missing-js-console-error/)
 *  [tunjic](https://wordpress.org/support/users/tunjic/)
 * (@tunjic)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/meta-title-and-description-missing-js-console-error/#post-6766194)
 * 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.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[MonsterInsights - Google Analytics Dashboard for WordPress (Website Stats Made Easy)] Update to 5.2.8 breaks Admin Bar on website?](https://wordpress.org/support/topic/update-to-528-breaks-admin-bar-on-website/)
 *  [tunjic](https://wordpress.org/support/users/tunjic/)
 * (@tunjic)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/update-to-528-breaks-admin-bar-on-website/page/2/#post-5649701)
 * [@tacoverdo](https://wordpress.org/support/users/tacoverdo/) Yes! 5.3 solves 
   the problem for me. I updated the plugin and activated it Network-wide. No issues.
   Thanks for the update.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[MonsterInsights - Google Analytics Dashboard for WordPress (Website Stats Made Easy)] Update to 5.2.8 breaks Admin Bar on website?](https://wordpress.org/support/topic/update-to-528-breaks-admin-bar-on-website/)
 *  [tunjic](https://wordpress.org/support/users/tunjic/)
 * (@tunjic)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/update-to-528-breaks-admin-bar-on-website/page/2/#post-5649699)
 * [@joycegrace](https://wordpress.org/support/users/joycegrace/) Yes, for our small
   network, activating just on ID=1 fixes this issue for all the sites on the network.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[MonsterInsights - Google Analytics Dashboard for WordPress (Website Stats Made Easy)] Update to 5.2.8 breaks Admin Bar on website?](https://wordpress.org/support/topic/update-to-528-breaks-admin-bar-on-website/)
 *  [tunjic](https://wordpress.org/support/users/tunjic/)
 * (@tunjic)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/update-to-528-breaks-admin-bar-on-website/#post-5649600)
 * 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](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Gravity Forms + Custom Post Types] Wrong Slug Returned when Form Submitted](https://wordpress.org/support/topic/wrong-slug-returned-when-form-submitted/)
 *  Thread Starter [tunjic](https://wordpress.org/support/users/tunjic/)
 * (@tunjic)
 * [12 years, 2 months ago](https://wordpress.org/support/topic/wrong-slug-returned-when-form-submitted/#post-4854270)
 * Found 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.

Viewing 15 replies - 1 through 15 (of 37 total)

1 [2](https://wordpress.org/support/users/tunjic/replies/page/2/?output_format=md)
[3](https://wordpress.org/support/users/tunjic/replies/page/3/?output_format=md)
[→](https://wordpress.org/support/users/tunjic/replies/page/2/?output_format=md)