Caio
Forum Replies Created
-
Hmm… wouldn’t it just be needed a localized string? __(‘Wrong password’,’wordfence’)? It’d take a minute.
Forum: Plugins
In reply to: [Basic User Avatars] Image not getting updated from front endI know this is few months old but I had the same problem and got it fixed. This plugin will not work if you are using endpoints in your URL, which is my case. I am using ‘/myaccount/avatar’ to display the avatar form, when the form is submitted, it automatically redirects to ‘/myaccount’ and $_POST is not checked there for the avatar update. So it never gets updated!
A work arround is to add this function in your functions.php file:
function check_for_avatar_update() { $user_id = get_current_user_id(); if ( is_account_page() && isset( $_POST['manage_avatar_submit'] ) && class_exists( 'basic_user_avatars' ) ) { $basic_user_avatars = new basic_user_avatars; $basic_user_avatars->edit_user_profile_update( $user_id ); } } add_action('template_redirect', 'check_for_avatar_update');
Hope it helps.
Tatvic,
Yes, your response addressed all my concerns. Thank you! I check the data and it is being fed into Google Analytics. It is working great. I will ignore Google Analytics warning for now…
Thanks very much for the help!
- This reply was modified 7 years, 10 months ago by Caio.
Obrigado pela resposta Claudio!
Se houver alguém interessado em customizar a calculadora de frete, recomendo o seguinte artigo:
https://jeroensormani.com/modifying-the-woocommerce-cart-shipping-calculator/
OK, never mind. I just realized that an XML product element is created for each product and any other additional attribute for that product. That was my confusion.
The image issue was fixed by just changing the option as I mentioned above.
Thanks for the support. It is appreciated!
I tried following your suggestion but the form is not working. I tried 3 times. After clicking SEND, the spinning wheel appears and stays forever.
Here is the message I tried sending, it includes more details on this matter:
/———-
Woo Feed was working perfectly until recently. Now I found two issues:
ISSUE 1
Product URL is being tagged by the product attribute, as such example:<link> <![CDATA[https://mysite.com/store/product-a/?attribute_pa_color=black]]> </link>
Before there were no attribute tagging in the product URL.
ISSUE 2
Images are being set as 0 (false):<g:image_link>0</g:image_link>
Even though products have images, some of them were set to 0 (false) . This was fixed when I changed the option from Featured Image to Main Image. Also, this was working ok before.
I am running WordPress 4.7.4 and latest Woocommerce and Woo Feed.
———–/
Thanks.
Claudio,
Verifiquei o log e n?o há nada de errado, mas identifiquei o problema. Tempos atrás eu havia ocultado o dropdown para selecionar o país usando CSS no Cart e Checkout para minimizar redundancia como eu só vendo no Brasil, nunca havia dado problema antes, mas agora o campo ficava vazio e n?o validava o calculo do frete. Pena que o WooCommerce n?o verifica isso automaticamente nos casos em que as atividades s?o limitadas a apenas 1 país.
Desculpe-me achar que o erro era no seu plugin ou nos Correios, enquanto era bobeira minha aqui. E obrigado pela dica do log, dei uma analisada mais afundo e a arquitetura do seu plugin é muito bacana, muito bem estruturado. Gostaria de aprender mais sobre APIs externas e WordPress… dá pra criar muita coisa.
Bom, valeu mesmo pela ajuda!
Primeiramente obrigado pela resposta Claudio. Vou verificar estes erros comuns, acho que deve ser a quest?o do peso e dimens?es; eu n?o tenho isso configurado para cada produto, o que eu vendo s?o pe?as pequenas onde peso e dimens?o s?o indiferente. Mas isso me faz pensar, por que antes funcionava corretamente sem peso e dimens?o especificado.
Pois é Van! Eu também estou perdendo muitas vendas. O pior é que n?o temos outra solu??o!!! Meu… o que pode ter ocorrido? Do nada parou de funcionar.
Já voltei para vers?o anterior o Woocommerce (2.6.7) e o WooCommerce Correios quando funcionava e continua apresentando o mesmo problema.
Será que é o APIs do Correios?? Muito estranho.
Forum: Plugins
In reply to: [Comments - wpDiscuz] Overwriting comments template?This could have been easily done but they chose not to. I just changed the core files and haven’t updated it. When the day comes, I’ll update it and change the core files again since my changes aren’t all that drastic. There is no way around it.
I guess a better question is, why not use term meta table to store this information?
Ok Jeff. Thanks for responding and supporting this excellent plugin! It’s kinda unfortunate that WP changes so often causing plugins to break.
We look forward to the TML update.
Forum: Plugins
In reply to: [Comments - wpDiscuz] Why current_user_can('edit_comment') always true?Well, I replaced line 173 with
if ( current_user_can(‘edit_comment’, $comment->comment_ID) && ( current_user_can(‘administrator’) || current_user_can(‘editor’) ) ) { … }
Forum: Plugins
In reply to: [Comments - wpDiscuz] Why current_user_can('edit_comment') always true?This is where the problem is:
FILE: tpl-comment.php
LINE 173: if ( current_user_can(‘edit_comment’, $comment->comment_ID)) { … }WordPress core doesn’t seem to support ‘edit_comment’ capability.
Forum: Fixing WordPress
In reply to: Fatal Error, I don't have access to anythingDarn it, I lost everything I typed… here we go again…
It is hard to tell what your problem is without much details other than things are not working. Have you checked your error log file? What does it say? Did it stop working right after you updated to 4.2.2?
You can approach this in many different ways. Here are some ideas:
– Try installing a new WP into a different folder, check if it runs okay. If it doesn’t, then it might be a server misconfiguration. If it does work fine, then you know it is something with wordpress installation.
– If you know the problem is your wordpress installation, then back up all your files/database and try reinstalling your wordpress. If it runs, then pull in your plugins and themes and activate one by one checking which one is causing it.
– If nothing works, you could ask your host to restore your server to a time when it worked. But that’s not the best solution since, depending on the nature of your website, you might lose precious information.
Before anything, check your error log file. It will give you the exact reason on why it is crashing. In @parach01’s case, his error is on a core function, in that case I would try reinstalling wordpress.