T.McGuire
Forum Replies Created
-
Forum: Plugins
In reply to: [Scrrraps] Page content layout?Fully understand the one-man effort. I have about a dozen plugins I maintain.
WPBakery aside – I think having it work with regular classic editor plugin (9+ million installs) is important.
After turning off the classic editor plugin and wp-bakery plugin it’s still not displaying the page content.This is in the console.
Uncaught TypeError: Cannot read properties of undefined (reading ‘top’)
at scrrraps/scripts.js?ver=11ae15e167b645a0a9f34e6436d4e558:78:50I think I just fixed it.
I replaced your function with my own and now it’s working. There were mixed paty types in yoru rewrite contidions and rules in Activate.php. It was creating double folder paths.public function rules(){ $begin = '# BEGIN Serve Static Cache'; $end = '# END Serve Static Cache'; $site_url = get_site_url(); // Parse the URL $parsed_url = wp_parse_url($site_url); // Check if there is a path component in the URL if(isset($parsed_url['path']) && !empty($parsed_url['path'])) { // Get the folder name from the path $folders = explode('/', trim($parsed_url['path'], '/')); $folder_name = $folders[0]; // Assuming the folder is the first component of the path // Now $folder_name contains the name of the subdirectory (if it exists) $folder = $folder_name; } if ( ! isset( $folder ) ) { //If not on sub-folder, then do nothing $folder = ''; } else { $folder = '/' . $folder; } if ( ! defined( 'WP_CONTENT_FOLDERNAME' ) ){ define( 'WP_CONTENT_FOLDERNAME', 'wp-content' ); }- This reply was modified 9 months ago by T.McGuire.
Bump.
Yes — this is Apache. I have removed the Serve Static .htaccess rules, and deactivated/reactivated the plugin. Upon reactivation, .htaccess rules reappear. Cleared the cache, regenerated a full cache and verified the cache files exist on the server.
Disabled the PHP fallback method and the plugin is not serving the cached file. If I turn ON the PHP fallback, it serves the cached file. Tested on 2 different web sites in different homdir’s
There are no errors in the logs and mod_security is not being triggered. There are no other caching plugins installed.
Tested on 2 seperate websites. Same issue is on both.Fantastic! I have upgraded the plugin to the latest version and it activated successfully.
Fantastic! I look forward to the update!
I believe it is [redacted]
- This reply was modified 1 year, 10 months ago by T.McGuire.
The error reported in the debug log is:
[09-Jul-2024 20:54:31 UTC] PHP Parse error: syntax error, unexpected ‘Class’ (T_CLASS), expecting identifier (T_STRING) in /home/website/public_html/wp-content/plugins/serve_static/class/Activate.php on line 3
I’ve retyped the opening 10 lines of the Activate.php file in case there were some hidden spaces or some text encoding that wasn’t showing but it still not activating.
Forum: Plugins
In reply to: [Open User Map] XSS VulnerabilityYou’re awesome. Super quick to patch and great communication.
-Tom
Forum: Plugins
In reply to: [Mega Addons For WPBakery Page Builder] Plugin VulnerabilityAny update on this? I reached out to the developer and no response from them either. What’s up!? Can we get this fixed? It’s a pretty bad vulnerability.
Forum: Plugins
In reply to: [Worth The Read] Plugin VulnerabilityDoesn’t look like it. The last update to the plugin was 4 months ago with no update since.
Update. I had the bright idea to take a look at the Apache mod_security logs and it turns out there are a set of rules that monitor the ‘METHODS’ for GET and POST data that is causing the 403 to be returned.
When disabling this particular mod_security config file the settings save and stay saved!
rules/REQUEST-911-METHOD-ENFORCEMENT.confKeeping the config disabled is not something I am okay with. I have instead whitelisted my IP in the mod_security user conf.
In conclusion, these rules are part of the standard config for WHM/CPanel servers and it seems could be the cause for errors relating to this plugin. I would recommend the plugin developer investigate the issue further as the benefits of fixing this PUT method would greatly improve the plugin use.
Here is a video showing the issue: https://streamable.com/7epazv
I have done everything above on several websites. No errors are reported except for that 403 in the server logs. I’m not sure that’s even related.
I have activated the logs for the shipping & tax plugin and no errors are ported in the logs. Debug is turned on in wp-config.php as well.
This morning I setup fresh website with only the necessary plugins and the problem still exists.
After adding a new package and saving it, I do see the green ‘saved’ message. But then on refresh the package is gone.
Here is the system report:
### WordPress Environment ### WordPress address (URL): https://www.hivedrive.com Site address (URL): https://www.hivedrive.com WC Version: 7.1.0 REST API Version: ✔ 7.1.0 WC Blocks Version: ✔ 8.7.5 Action Scheduler Version: ✔ 3.4.0 Log Directory Writable: ✔ WP Version: 6.1.1 WP Multisite: – WP Memory Limit: 256 MB WP Debug Mode: – WP Cron: ✔ Language: en_US External object cache: – ### Server Environment ### Server Info: Apache PHP Version: 7.4.33 PHP Post Max Size: 32 MB PHP Time Limit: 60 PHP Max Input Vars: 1000 cURL Version: 7.86.0 OpenSSL/1.1.1s SUHOSIN Installed: – MySQL Version: 5.7.40 Max Upload Size: 32 MB Default Timezone is UTC: ✔ fsockopen/cURL: ✔ SoapClient: ✔ DOMDocument: ✔ GZip: ✔ Multibyte String: ✔ Remote Post: ✔ Remote Get: ✔ ### Database ### WC Database Version: 7.1.0 WC Database Prefix: wptest_ Total Database Size: 2.56MB Database Data Size: 2.24MB Database Index Size: 0.32MB wptest_woocommerce_sessions: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wptest_woocommerce_api_keys: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wptest_woocommerce_attribute_taxonomies: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wptest_woocommerce_downloadable_product_permissions: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wptest_woocommerce_order_items: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wptest_woocommerce_order_itemmeta: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wptest_woocommerce_tax_rates: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wptest_woocommerce_tax_rate_locations: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wptest_woocommerce_shipping_zones: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wptest_woocommerce_shipping_zone_locations: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wptest_woocommerce_shipping_zone_methods: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wptest_woocommerce_payment_tokens: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wptest_woocommerce_payment_tokenmeta: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wptest_woocommerce_log: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wptest_actionscheduler_actions: Data: 0.01MB + Index: 0.02MB + Engine MyISAM wptest_actionscheduler_claims: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wptest_actionscheduler_groups: Data: 0.00MB + Index: 0.01MB + Engine MyISAM wptest_actionscheduler_logs: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wptest_commentmeta: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wptest_comments: Data: 0.00MB + Index: 0.01MB + Engine MyISAM wptest_gla_budget_recommendations: Data: 0.11MB + Index: 0.12MB + Engine MyISAM wptest_gla_merchant_issues: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wptest_gla_shipping_rates: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wptest_gla_shipping_times: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wptest_links: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wptest_options: Data: 2.06MB + Index: 0.07MB + Engine MyISAM wptest_postmeta: Data: 0.01MB + Index: 0.01MB + Engine MyISAM wptest_posts: Data: 0.02MB + Index: 0.01MB + Engine MyISAM wptest_termmeta: Data: 0.00MB + Index: 0.01MB + Engine MyISAM wptest_terms: Data: 0.00MB + Index: 0.01MB + Engine MyISAM wptest_term_relationships: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wptest_term_taxonomy: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wptest_usermeta: Data: 0.00MB + Index: 0.01MB + Engine MyISAM wptest_users: Data: 0.00MB + Index: 0.01MB + Engine MyISAM wptest_wc_admin_notes: Data: 0.02MB + Index: 0.00MB + Engine MyISAM wptest_wc_admin_note_actions: Data: 0.01MB + Index: 0.00MB + Engine MyISAM wptest_wc_category_lookup: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wptest_wc_customer_lookup: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wptest_wc_download_log: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wptest_wc_order_coupon_lookup: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wptest_wc_order_product_lookup: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wptest_wc_order_stats: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wptest_wc_order_tax_lookup: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wptest_wc_product_attributes_lookup: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wptest_wc_product_download_directories: Data: 0.00MB + Index: 0.01MB + Engine MyISAM wptest_wc_product_meta_lookup: Data: 0.00MB + Index: 0.01MB + Engine MyISAM wptest_wc_rate_limits: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wptest_wc_reserved_stock: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wptest_wc_tax_rate_classes: Data: 0.00MB + Index: 0.01MB + Engine MyISAM wptest_wc_webhooks: Data: 0.00MB + Index: 0.00MB + Engine MyISAM ### Post Type Counts ### attachment: 3 mailpoet_page: 1 page: 8 post: 3 product: 1 revision: 1 ### Security ### Secure connection (HTTPS): ✔ Hide errors from visitors: ✔ ### Active Plugins (4) ### Jetpack: by Automattic – 11.5.1 WooCommerce Payments: by Automattic – 5.0.3 WooCommerce Shipping & Tax: by WooCommerce – 2.0.0 WooCommerce: by Automattic – 7.1.0 ### Inactive Plugins (0) ### ### Settings ### API Enabled: ✔ Force SSL: – Currency: USD ($) Currency Position: left Thousand Separator: , Decimal Separator: . Number of Decimals: 2 Taxonomies: Product Types: external (external) grouped (grouped) simple (simple) subscription (subscription) variable (variable) variable subscription (variable-subscription) Taxonomies: Product Visibility: exclude-from-catalog (exclude-from-catalog) exclude-from-search (exclude-from-search) featured (featured) outofstock (outofstock) rated-1 (rated-1) rated-2 (rated-2) rated-3 (rated-3) rated-4 (rated-4) rated-5 (rated-5) Connected to WooCommerce.com: – Enforce Approved Product Download Directories: ✔ ### WC Pages ### Shop base: #6 - /shop/ Cart: #7 - /cart/ Checkout: #8 - /checkout/ My account: #9 - /my-account/ Terms and conditions: ❌ Page not set ### Theme ### Name: Storefront Version: 4.2.0 Author URL: https://woocommerce.com/ Child Theme: ❌ – If you are modifying WooCommerce on a parent theme that you did not build personally we recommend using a child theme. See: How to create a child theme WooCommerce Support: ✔ ### Templates ### Overrides: – ### Subscriptions ### WCS_DEBUG: ✔ No Subscriptions Mode: ✔ Live Subscriptions Live URL: https://www.hivedrive.com Subscription Statuses: – WooCommerce Account Connected: ❌ No ### Store Setup ### Country / State: United States (US) — Texas ### Payment Gateway Support ### WooCommerce Payments: products refunds multiple_subscriptions subscription_cancellation subscription_payment_method_change_admin subscription_payment_method_change_customer subscription_payment_method_change subscription_reactivation subscription_suspension subscriptions gateway_scheduled_payments tokenization add_payment_method ### Admin ### Enabled Features: activity-panels analytics coupons customer-effort-score-tracks experimental-products-task experimental-import-products-task experimental-fashion-sample-products shipping-smart-defaults shipping-setting-tour homescreen marketing multichannel-marketing mobile-app-banner navigation onboarding onboarding-tasks remote-inbox-notifications remote-free-extensions payment-gateway-suggestions shipping-label-banner subscriptions store-alerts transient-notices woo-mobile-welcome wc-pay-promotion wc-pay-welcome-page Disabled Features: minified-js new-product-management-experience settings Daily Cron: ✔ Next scheduled: 2022-11-22 17:39:05 +00:00 Options: ✔ Notes: 17 Onboarding: completed ### WooCommerce Payments ### Version: 5.0.3 Connected to WPCOM: Yes Blog ID: redacted Account ID: acct_redacted ### Action Scheduler ### Complete: 19 Oldest: 2022-11-21 17:39:08 +0000 Newest: 2022-11-21 18:03:13 +0000 Failed: 1 Oldest: 2022-11-21 17:48:12 +0000 Newest: 2022-11-21 17:48:12 +0000 Pending: 3 Oldest: 2022-11-21 18:57:47 +0000 Newest: 2022-11-22 17:57:47 +0000 ### Status report information ### Generated at: 2022-11-21 18:49:37 +00:00I’m having a similar issue where I can’t seem to get my packages I add to stay added. Once I save them and then navigate away from the setting page and return, the packages are gone. The Label size etc all stay persistent. But not the packages.
Thoughts?
-Tom
Forum: Plugins
In reply to: [Mailchimp for WooCommerce] First sync failed to subscribe customersYes, this makes sense as you explained it. However, I think having the checkbox stating that the customers will be auto subscribed on sync is a bit misleading. Maybe re-wording it’s purpose will give some clarity in the future.
Great tip on updating the meta on the customers to reflect their subscription status however!