moewang
Forum Replies Created
-
So where should it be modified?
Maybe my previous description is not accurate enough:
My theme is a global web page without refresh. This plugin can work normally when directly opening a URL article. For example: (https://moeblog.top/443.html)
But if I first open the homepage (https://moeblog.top/) and click the link with the comment form again (such as an article or page), recaptcha will not load, and I must refresh the page to display it.
So I guess that modifying the comment form may solve the problem. But my technology is limited, it is not particularly clear how to modify comments.php.
Below is the code of comments.php for my theme:<?php if(post_password_required()) return; ?> <div id="comments" class="comments-area"> <ol class="comment-list"> <?php if(have_comments()){ ?> <?php wp_list_comments(array('style'=>'ol','short_ping'=>true,'avatar_size'=>50,)); ?> </ol> <?php if(get_comment_pages_count()>1&&get_option('page_comments')){ ?> <div id="comments-nav"> <?php paginate_comments_links('prev_text='.__('上一页','moedog').'&next_text='.__('下一页','moedog'));?> </div> <?php } }else echo '</ol>'; $comment_num1=rand(0,9); $comment_num2=rand(0,9); $fields=array( 'author'=>'<div class="comment-form-author form-group has-feedback"><div class="input-group"><div class="input-group-addon"><i class="fa fa-user"></i></div><input class="form-control" placeholder="'.__('昵称','moedog').'" id="author" name="author" type="text" value="'.esc_attr($commenter['comment_author']).'" size="30" /><span class="form-control-feedback required">*</span></div></div>', 'email'=>'<div class="comment-form-email form-group has-feedback"><div class="input-group"><div class="input-group-addon"><i class="fa fa-envelope-o"></i></div><input class="form-control" placeholder="'.__('邮箱','moedog').'" id="email" name="email" type="text" value="'.esc_attr($commenter['comment_author_email']).'" size="30" /><span class="form-control-feedback required">*</span></div></div>', 'url'=>'<div class="comment-form-url form-group has-feedback"><div class="input-group"><div class="input-group-addon"><i class="fa fa-link"></i></div><input class="form-control" placeholder="'.__('网站','moedog').'" id="url" name="url" type="text" value="'.esc_attr($commenter['comment_author_url']).'" size="30" /></div></div>', 'cookies'=>'', ); $args=array( 'title_reply_before'=>'<h4 id="reply-title" class="comment-reply-title">', 'title_reply_after'=>'</h4>', 'fields'=>$fields, 'class_submit'=>'btn btn-primary', 'comment_notes_before' => '<p class="comment-notes">'.__('电子邮件地址不会被公开。必填项已用 * 标注,请留意是否加载出Google人机验证,若没有请刷新网页','moedog').'</p>', 'comment_field'=>'<div class="comment form-group has-feedback"><div class="input-group"><textarea class="form-control" id="comment" placeholder="'.__('|´・ω・)ノ还不快点说点什么呀poi~','moedog').'" name="comment" rows="5" aria-required="true" required onkeydown="if(event.ctrlKey){if(event.keyCode==13){document.getElementById(\'submit\').click();return false}};"></textarea></div><div class="OwO"></div></div>', ); comment_form($args); ?> </div>Thank you!
Hi Shamim Hasan,
So this is the problem that has always troubled me:
How to force reference to this plugin in the theme. Can I modify function.php or directly modify the comment template? In addition, what is the referenced code?
Thank you.I also have this problem. Did you solve it?
Forum: Reviews
In reply to: [Event Timeline Feed] A very useful timeline pluginBut the back office on my side really can’t order it. Simplified Chinese version of WordPress, just downloaded and installed plugin.
Here’s a recorded video about the problem:https://drive.google.com/file/d/1–NpEQLNe83LBLPTtX48efjDLZw1Y-s3/view?usp=drivesdk
Forum: Reviews
In reply to: [Event Timeline Feed] A very useful timeline pluginBut at present, I have a little problem in the process of using my own website. When I log in to the dashboard to open the edit timeline of this plug-in, clicking on the pen symbol of the existing timeline can not edit its content. Deleted and re-added, I tried the same problem on chrome on my phone and on my computer. May be a small bug.
Ok. In order to facilitate the check, do I need to re-recover the fault? Just reinstall the plug-in and open it. After the same time, the same problem will occur, and then the debug display will be opened.
I tried to install it and it works fine.
I used this method to upgrade WordPress, upgraded from 5.2.1 to 5.2.2, but as far as I can see, there is no problem. I tried to repair the database. The wordpress repair page prompts the database to be normal.
I uploaded the latest zip file downloaded from ww.wp.xz.cn and all the features are available when I first enabled it, but it is very slow. Then after a few hours, the web dashboard appeared what I described earlier, that is, the web version can’t get in, and the app can be used normally.
This is all I know. I hope I can solve the problem.After deleting it. It can be loaded normally. I used to have a hint when I opened the log. It seems that the data table about jetpack is damaged, but I don’t have a screenshot.
The browser’s dashboard cannot be accessed. The following is the original page:
Warning: 发生了预料之外的错误。ww.wp.xz.cn或是此服务器的配置可能出了一些问题。如果您持续遇到困难,请试试支持论坛。 (WordPress无法建立到ww.wp.xz.cn的安全连接,请联系您的服务器管理员。) in D:\Website\Blog\wp-includes\update.php on line 384Fatal error: Maximum execution time of 30 seconds exceeded in D:\Website\Blog\wp-includes\wp-db.php on line 2007.
Log file link (click to download):https://filecdn.moeblog.top/debug.log
Thanks!
Hello supernovia:
Here is what I am for you
Because I used the method of replacing files before the upgrade, I may not understand that there is a residual file in the previous version, which makes the webpage dashboard inaccessible.
This is the first time I upgraded the plugin using a manual upgrade;
The current error is that when I manually copy it into the /plugin/ directory, I can access it at first, and I can’t access it after a while, suggesting that “the site is experiencing technical problems.” But the functionality of the WordPress app on the front desk and on the phone is available;
My English is not very good, so using Google Translate, Google translation here may not be accurate, here I want to express the meaning: Does the plugin have a MySQL data table? What is its name?
I want to try to enter phpmyadmin and delete it again to test if there will be problems.This server is my own exclusive, I assigned it 256MB, so it should not be this problem, the upgrade plug-in continues to have problems should be in China, access to the resources of the foreign server, and sometimes caused by interference. It should be that my wrong manual upgrade method caused these failures. I started to suspect Mysql’s data sheet about Jetpack.So can you tell me all the data tables that Jetpack calls, thank you!
Hello! Supernovia!
Probably because of a previous manual upgrade of my mistake, because the dashboard prompts me that the Jetpack plugin has an update available, and then I am ready to update. But because of network problems, my upgrade on the server always fails, so I am ready to download the latest version of the plugin from ww.wp.xz.cn, ready to manually update. But when I uploaded it to the website, I made a mistake. Instead of deleting the original Jetpack folder, upload and replace all files with the same name. Then after all the files were uploaded, I realized that the dashboard on the web page could not enter. Because I manually upgraded the main WordPress program before, but there is no problem, so I upgraded the plugin like this, and the webpage of the website can not be accessed. Then I try to delete the folder of the Jetpack plugin, and then the web dashboard can be entered. That’s how I judged this plugin problem. After a few days, I found that there is no such plugin, which is very inconvenient. So I decided to upload this file again manually (I tried to install it directly on the “plugin” page of the dashboard, but it didn’t do anything), then I enabled the plugin. The plugin can be used normally at first. There is no problem. However, after a few hours, on the webpage of the website, the dashboard could not enter. This is all the details I know. I hope to be able to troubleshoot all the issues.
Thank you!Sorry, I was wrong. I forgot that I also enabled another captcha plugin, which caused the site to be slow and slow. After turning it off, the speed is obviously faster, and after the replacement, the verification code can be loaded, and the tested Android phone runs. Chrome can also load properly on 4G LTE networks! So you can add it with confidence!
Then I found another problem. Since my theme started PJAX and caused the article to be clicked from the homepage, reCAPTCHA will not load, and the page must be refreshed… Yes, I forgot to tell you, http://www.recaptcha.net is also In the blacklist of the Great Wall of Fire, although it can be used now, it may be disturbed. It may not be used any day. Here you can add a mirror of Google China: recaptcha.google.cn/recaptcha. It is the same as the recaptcha.net/recaptcha call method. And this will not be polluted by the Great Firewall.
Thank you!
