diegpl
Forum Replies Created
-
Forum: Plugins
In reply to: [Abandoned Cart Reports For WooCommerce] Does it capture the phone number?What do you mean with “I could look it up, but the plugin does not show it currently”? So, it does not capture the phone?
Forum: Plugins
In reply to: [W3 Total Cache] W3 Total Cache suppressing all cookies after 2.2.7 updateIf you see this site https://storecosmeticos.com/ all cookies are loaded, but that does not happen when browser cache is enabled.
Forum: Plugins
In reply to: [W3 Total Cache] W3 Total Cache suppressing all cookies after 2.2.7 updateHow to “tell” w3 total cache a page is using a specific cookie? It seems I could workaround with that. Even if I set a page to not being cached, the cookie is missing. Just if I press ctrl+r it is loaded.
Forum: Plugins
In reply to: [W3 Total Cache] W3 Total Cache suppressing all cookies after 2.2.7 updateIt seems to be related to the browser cache and even if I uncheck “Don’t set cookies for static files” the issue persists.
I am referring about other wp users not being able to see data if not in GA, that was possible before, I am pretty sure about it…
/wp-content/plugins/disable-dashboard-for-woocommerce/includes/functions/disable-bloat-functions_free.php
I have commented line 102 “if” for now:
if (version_compare($wc_version, ‘6.2.0’) < 0) {You might want to change:
$page = $this->context->input()->filter( INPUT_GET, 'page', FILTER_SANITIZE_STRING );for
$page = $this->context->input()->filter( INPUT_GET, 'page', FILTER_UNSAFE_RAW );- This reply was modified 3 years, 6 months ago by diegpl.
@disablebloat for me that is the error the plugin shows, I read your answers, just posting it here bcz it is might not be the same you saw before:
version_compare(): Passing null to parameter #1 ($version1) of type string is deprecatedwp-content/plugins/disable-dashboard-for-woocommerce/includes/functions/disable-bloat-functions_free.php:102 version_compare() wp-content/plugins/disable-dashboard-for-woocommerce/includes/functions/disable-bloat-functions_free.php:102 Disable_WC_Bloat->includes() wp-content/plugins/disable-dashboard-for-woocommerce/disable-dashboard-for-woocommerce.php:125 Disable_WC_Bloat->__construct() wp-content/plugins/disable-dashboard-for-woocommerce/disable-dashboard-for-woocommerce.php:115 Disable_WC_Bloat::instance() wp-content/plugins/disable-dashboard-for-woocommerce/disable-dashboard-for-woocommerce.php:194 disable_woocommerce_bloat() wp-content/plugins/disable-dashboard-for-woocommerce/disable-dashboard-for-woocommerce.php:198@disablebloat and about the memory issue @sudarshankotian told us about? Tks!
- This reply was modified 3 years, 6 months ago by diegpl.
Forum: Plugins
In reply to: [WooCommerce] [PHP Obsolete code] PHP 8.1 compatibilityIf we set an empty valye for $date_string instead of null, could that fix some errors?
function as_get_datetime_object( $date_string = '', $timezone = 'UTC' ) { if ( is_object( $date_string ) && $date_string instanceof DateTime ) { $date = new ActionScheduler_DateTime( $date_string->format( 'Y-m-d H:i:s' ), new DateTimeZone( $timezone ) ); } elseif ( is_numeric( $date_string ) ) { $date = new ActionScheduler_DateTime( '@' . $date_string, new DateTimeZone( $timezone ) ); } else { $date = new ActionScheduler_DateTime( '' === $date_string ? 'now' : $date_string, new DateTimeZone( $timezone ) ); } return $date; }instead of:
function as_get_datetime_object( $date_string = null, $timezone = 'UTC' ) { if ( is_object( $date_string ) && $date_string instanceof DateTime ) { $date = new ActionScheduler_DateTime( $date_string->format( 'Y-m-d H:i:s' ), new DateTimeZone( $timezone ) ); } elseif ( is_numeric( $date_string ) ) { $date = new ActionScheduler_DateTime( '@' . $date_string, new DateTimeZone( $timezone ) ); } else { $date = new ActionScheduler_DateTime( null === $date_string ? 'now' : $date_string, new DateTimeZone( $timezone ) ); } return $date; }Forum: Plugins
In reply to: [WooCommerce] [PHP Obsolete code] PHP 8.1 compatibilityHmm, no fixing yet? This turned my server way slower than previously bcz of the errors logs, which I needed to turn off. Any news about the fixing date? That is kinda odd, to have been fixed yet. Tks! 😉
Forum: Plugins
In reply to: [SlimFast - YouTube Lazyloader] Padding-top issueIn another site I saw there is no image being generated at all, also using Flatsome theme. Is this plugin is being maintained? Tks!
Forum: Fixing WordPress
In reply to: str_replace() php 8.1 warning in wp-includes/functions.php fixingCheckout this error based on this “canonical” issue:
PHP Warning: Attempt to read property "post_name" on null in /wp-includes/class-wp-query.php on line 4190 [21-Sep-2022 22:57:06 UTC] PHP Stack trace: [21-Sep-2022 22:57:06 UTC] PHP 1. {main}() /index.php:0 [21-Sep-2022 22:57:06 UTC] PHP 2. require() /index.php:17 [21-Sep-2022 22:57:06 UTC] PHP 3. require_once() /wp-blog-header.php:19 [21-Sep-2022 22:57:06 UTC] PHP 4. do_action($hook_name = 'template_redirect') /wp-includes/template-loader.php:13 [21-Sep-2022 22:57:06 UTC] PHP 5. WP_Hook->do_action($args = [0 => '']) /wp-includes/plugin.php:476 [21-Sep-2022 22:57:06 UTC] PHP 6. WP_Hook->apply_filters($value = '', $args = [0 => '']) /wp-includes/class-wp-hook.php:331 [21-Sep-2022 22:57:06 UTC] PHP 7. redirect_canonical($requested_url = '', $do_redirect = *uninitialized*) /wp-includes/class-wp-hook.php:307 [21-Sep-2022 22:57:06 UTC] PHP 8. redirect_canonical($requested_url = 'xxx/msx-expert-1-0-cinza-com-interface-de-drive-dmx-drive-5-%C2%BC-e-modem-gradiente-tm-1-vendido/feed/', $do_redirect = FALSE) /wp-includes/canonical.php:798 [21-Sep-2022 22:57:06 UTC] PHP 9. is_front_page() /wp-includes/canonical.php:649 [21-Sep-2022 22:57:06 UTC] PHP 10. WP_Query->is_front_page() /wp-includes/query.php:473 [21-Sep-2022 22:57:06 UTC] PHP 11. WP_Query->is_page($page = '2') /wp-includes/class-wp-query.php:4096 (END)This url xxx/msx-expert-1-0-cinza-com-interface-de-drive-dmx-drive-5-%C2%BC-e-modem-gradiente-tm-1-vendido/feed/ does not even exist in the site, but it generates an error log. I do not know if it existed once, but it does not seem right to have an error being recorded about a url that does not exist, no? Tks.
Forum: Plugins
In reply to: [W3 Total Cache] RSS2-Feed is getting cached?Hmm, mine is being cached then, and even generating error in the php log:
<!-- Performance optimized by W3 Total Cache. Learn more: https://www.boldgrid.com/w3-total-cache/ Page Caching using disk: enhanced (User is logged in) Served from: lojinhadomoises.com.br @ 2022-09-21 19:57:33 by W3 Total Cache -->I think this is an error related to woocommerce, because I have been seeing it for a while too (/wp-content/plugins/woocommerce/includes/wc-product-functions.php:559):
[18-Sep-2022 22:27:47 UTC] PHP Warning: Attempt to read property “post_type” on null in /wp-includes/class-wp-query.php on line 4338
[18-Sep-2022 22:27:47 UTC] PHP Stack trace:
[18-Sep-2022 22:27:47 UTC] PHP 1. {main}() /index.php:0
[18-Sep-2022 22:27:47 UTC] PHP 2. require() /index.php:17
[18-Sep-2022 22:27:47 UTC] PHP 3. require_once() /wp-blog-header.php:19
[18-Sep-2022 22:27:47 UTC] PHP 4. do_action($hook_name = ‘template_redirect’) /wp-includes/template-loader.php:13
[18-Sep-2022 22:27:47 UTC] PHP 5. WP_Hook->do_action($args = [0 => ”]) /wp-includes/plugin.php:476
[18-Sep-2022 22:27:47 UTC] PHP 6. WP_Hook->apply_filters($value = ”, $args = [0 => ”]) /wp-includes/class-wp-hook.php:331
[18-Sep-2022 22:27:47 UTC] PHP 7. wc_track_product_view(”) /wp-includes/class-wp-hook.php:307
[18-Sep-2022 22:27:47 UTC] PHP 8. is_singular($post_types = ‘product’) /wp-content/plugins/woocommerce/includes/wc-product-functions.php:559
[18-Sep-2022 22:27:47 UTC] PHP 9. WP_Query->is_singular($post_types = ‘product’) /wp-includes/query.php:769Is there a way to improve the plugin code at that part? Tks! 😉
Forum: Fixing WordPress
In reply to: str_replace() php 8.1 warning in wp-includes/functions.php fixingI am seeing this error in the php logs too. Does anyone here know anything about this one? Tks! 😉
[17-Sep-2022 17:46:58 UTC] PHP Warning: Undefined array key "scheme" in /wp-includes/canonical.php on line 720 [17-Sep-2022 17:46:58 UTC] PHP Stack trace: [17-Sep-2022 17:46:58 UTC] PHP 1. {main}() /index.php:0 [17-Sep-2022 17:46:58 UTC] PHP 2. require() /index.php:17 [17-Sep-2022 17:46:58 UTC] PHP 3. require_once() /wp-blog-header.php:19 [17-Sep-2022 17:46:58 UTC] PHP 4. do_action($hook_name = 'template_redirect') /wp-includes/template-loader.php:13 [17-Sep-2022 17:46:58 UTC] PHP 5. WP_Hook->do_action($args = [0 => '']) /wp-includes/plugin.php:476 [17-Sep-2022 17:46:58 UTC] PHP 6. WP_Hook->apply_filters($value = '', $args = [0 => '']) /wp-includes/class-wp-hook.php:331 [17-Sep-2022 17:46:58 UTC] PHP 7. redirect_canonical($requested_url = '', $do_redirect = *uninitialized*) /wp-includes/class-wp-hook.php:307 [17-Sep-2022 17:46:58 UTC] PHP 8. redirect_canonical($requested_url = ':///', $do_redirect = FALSE) /wp-includes/canonical.php:798