Edson Galina Fortes
Forum Replies Created
-
Forum: Plugins
In reply to: [Translate WordPress and go Multilingual - Weglot] Doesn’t work with php 8.1Hi @planaandb ,
sorry for the issue you’re facing. The error is fix and you can try this version of the plugin : https://we.tl/t-esopHQqQSy
Let me know if you still facing an issue
RegardsForum: Plugins
In reply to: [Translate WordPress and go Multilingual - Weglot] FacetWP Text TranslationsOn my side it seems to work , the facet seems to be translate . Can you provide a screenshot to be sure ?
- This reply was modified 1 month ago by Edson Galina Fortes.
Forum: Plugins
In reply to: [Translate WordPress and go Multilingual - Weglot] FacetWP Text TranslationsHi @rbergeron81 ,
hope you’re fine? Sorry for the issue you’re facing. I think you try to use the weglot js object but using the plugin this object is not declare by default.
to use it you have to initialize the object in JS using : Add a json collection of selector css you need to translate.<script type="text/javascript" src="https://cdn.weglot.com/weglot.min.js"></script>
<script>
Weglot.initialize({
api_key: 'YOUR_API_KEY',
hide_switcher: true,
whitelist: {},
});
</script>Let me know if it’s help
RegardsHa ok good, don’t hesitate if you need more help ;). To find the plugin cause the log may you can replicate your website in local or in a staging env ?
RegardsHi @maximemichaud ,
thanks for your reply. So to be sure, when you deactivate Weglot plugin the error persist ? In that case, the error can be due to another plugin ou your side. If Weglot is deactivated, our code is not launch any more on your website so we can deduce that’s it’s not the source of error. Can you try deactivate other plugin one by one ?Hello,
thanks for your reply. Yes i’m on it, i’ll try to replicate on my side. If you can make a last test to be sure ? Can you confirm you don’t have log anymore when Weglot is deactivate ?
RegardsHello @maximemichaud ,
thanks for your reply it’s help. In the first log you’ve have sending the deprecation come from Weglot file but in the last you’ve send it come from /var/www/*****/wp-includes/functions.php on line 7300. Is it normal ?
If you prefer, you can reach the issue to [email protected] and mention me (Edson). It able me ask for dump of your website to make local test to debug it
RegardsHi @maximemichaud ,
hope you’re fine. Sorry for the issue you’re facing.
Can you try with the future 4.2.9 version here : https://we.tl/t-EL795u2X4u
On this version we work to reach the level 6 PHPStan and you should not have error any more. Don’t hesitate if you have feedbacks or question
RegardsHi @pumpk1in ,
do you still facing your issue ? Don’t heisitate if you need more help .
RegardsHi @webmark487 ,
thanks to have close the topic ;).
If you appreciated my help and if you have 2 minutes to help us, it would be awesome if you could give us a?[good ??] review on WordPress:
—->?https://www.ads-software.com/support/plugin/weglot/reviews/It’s really useful for us ??
And of course, if you need anything, don’t hesitate to ask me.
RegardsHi @webmark487 ,
hope you’re fine ?
yes in my example i just take the post staus without check the post type so it would work with product or post not only for pages.
If you want to check the post type you can add a condition usingget_post_type($post->ID)
Regards
Hi @webmark487 ,
thanks for your message, it’s help. You can solve your issue adding this code on your website using code snippet or directly on your file (mu plugin, functions.php, …):add_action('pre_get_posts', 'custom_weglot_translated_search_redirect'); function custom_weglot_translated_search_redirect() { global $post; if ($post) { $post_status = get_post_status($post->ID); if (!function_exists('weglot_get_original_language') || !function_exists('weglot_get_current_language')) { return; } if (($post_status == 'draft' || $post_status == 'private') && !is_admin() && weglot_get_original_language() != weglot_get_current_language()) { wp_redirect(weglot_get_full_url_no_language(), 301); exit; } } } add_filter('weglot_button_html', 'custom_weglot_translated_search_no_selector'); function custom_weglot_translated_search_no_selector($button_html) { global $post; if ($post) { $post_status = get_post_status($post->ID); if (($post_status == 'draft' || $post_status == 'private') && !is_admin()) { return ''; } } return $button_html; }
Don’t hesitate if you need more help
RegardsHi @mariagracia ,
the issue is due to your word limit. You’ve reach your limit. You can try reduce your wordcount or get another plan.
Don’t hesitate if you need more help.
RegardsHi @mariagracia ,
hope you’re fine. Sorry for the issue you’re facing. Can you try with an older version (may the 4.2.7). It seems you already reach the issue on our support. I’ll keep the solution here when we find the solution
Regards- This reply was modified 3 months, 3 weeks ago by Edson Galina Fortes.
Hi @arnabaws ,
i’ve no idea without checking the code of your website, it should works through admin-ajax.php. Do you have a staging env where you can reproduce the issue. Or can you reach the issue to [email protected] ?
regards