adrien44
Forum Replies Created
-
Forum: Plugins
In reply to: [WP Store Locator] permalink not working correctlyif (is_tax('wpsl_store_category')) {
$term = get_queried_object();
if ($term instanceof WP_Term) {
$correct_url = get_term_link($term);
if (!is_wp_error($correct_url)) {
return $correct_url;
}
}
}Forum: Plugins
In reply to: [WP Store Locator] permalink not working correctlyI’d like to point out that the canonical URLs are broken (incorrect) as a result. I haven’t worked on a solution yet.
The “forced logout” feature was activated when I got the project. It was set to 120 minutes by my predecessor, which was quite annoying, so I changed it to 10080 minutes (7 days). However, it didn’t work as expected, so I ended up turning the feature off. Everything was working fine until recently. No changes were made elsewhere on the website (no new plugins or anything like that).
Forum: Plugins
In reply to: [WooCommerce] Woocommerce regenerating images SVG error.I’m having the same issue.
The issue pop when i try to call an svg image (acf field)
get_sub_field('image')['url'];Notice
: Undefined index: width in
/Users/*****/Documents/mamp/mysite/wp-content/plugins/woocommerce/includes/class-wc-regenerate-images.php
on line
276Notice
: Undefined index: height in
/Users/*****/Documents/mamp/mysite/wp-content/plugins/woocommerce/includes/class-wc-regenerate-images.php
on line
277Notice
: Undefined index: width in
/Users/*****/Documents/mamp/mysite/wp-content/plugins/woocommerce/includes/class-wc-regenerate-images.php
on line
276Notice
: Undefined index: height in
/Users/*****/Documents/mamp/mysite/wp-content/plugins/woocommerce/includes/class-wc-regenerate-images.php
on line
277string(87) “http://localhost:8888/mysite/wp-content/uploads/2022/06/ico-tonneau-dark.svg”