Na Nguyen
Forum Replies Created
-
Oopz it like a small problem here . I think when you change the name of the plugin but you forgot to edit the WP Ajaxify Comments URL link in Settings section . It show error ‘You do not have sufficient permissions to access this page.’
wp-admin/admin.php?page=WP%20Ajaxify%20Comments - work wp-admin/options-general.php?page=WPAjaxifyComments - didn't workIt’s work like a charm now ! Thank you so much !
Forum: Fixing WordPress
In reply to: Setup WordPress database error in MySQL OpenShiftI mean I want to use OpenShift to host my SQL DATABASE , and i redirect connect my website to it , I think’t it not impossible because the SQL server database in OpenShift may only support website hosted in it .
Forum: Plugins
In reply to: [Ajaxify Comments - Ajax and Lazy Loading Comments] Can't use with HTTPS ?Hello .
Thank you again, all the bugs have been resolved !
Thank you so much for your work and developer for this plugin .
Hope you create more awesome plugin !
Best regards !Forum: Plugins
In reply to: [Ajaxify Comments - Ajax and Lazy Loading Comments] Can't use with HTTPS ?Hello Jan !
I want to tell you the good news is i have installed the newest version of your plugin and everything work perfect like a charm ! Thank you so much for your development of this plugin .
All the request in HTTP or HTTPS is work fine .
So , i have a little more question about this plugin is , when post comment , the title of the web page render something like :
Title : SWEET EMOTIONS – NGỌT NGÀO TÌNH QUÊ
is render to
Title : SWEET EMOTIONS – NGỌT NGÀO TÌNH QUÊ
It’s change the “-” symbol to –
Can you have a little time fo fix this bug ?
Thank you for everything !
Best regard .Forum: Plugins
In reply to: [Ajaxify Comments - Ajax and Lazy Loading Comments] Can't use with HTTPS ?Hello !
Yes , i have a proxy server or firewall that handles the HTTPS traffic and forward all request as HTTP requests to the web server is CloudFlare . And now i’m disabled my SSL on the post page , your plugin work fine and perfect !
But when i actived my SSL on the post page , the plugin break .
Do you have to try change the URL HTTP & HTTPS ? , when use HTTPS :
<form action=”https://www.nguyenanhmedia.com/wp-comments-post.php” method=”post” id=”commentform” class=”comment-form”>
and when use HTTP
<form action=”http://www.nguyenanhmedia.com/wp-comments-post.php” method=”post” id=”commentform” class=”comment-form”>
You say right , the proxy server that handles the HTTPS traffic and forward all request as HTTP requests to the web server , that’s cause error !
I can’t find the solution to fix this !
Hope you help me !
Best regards !Forum: Plugins
In reply to: [Ajaxify Comments - Ajax and Lazy Loading Comments] Can't use with HTTPS ?Hello !
It seems I’ve found the cause of the error . When i use HTTP instead of HTTPS to post comment , your plugin work fine and didn’t have any errors . But when i using HTTPS to post comment , the plugin break . That’s is the problem !
So , can you have a idea to fix this problem when i use HTTPS on my site ?
Can we fix a litte code of your plugin to work with HTTPS ( although my WordPress core option URL is HTTP ) ?
Thank you so much for reply and help me !Forum: Plugins
In reply to: [Ajaxify Comments - Ajax and Lazy Loading Comments] Can't use with HTTPS ?function wpac_get_page_url() { $ssl = (!empty($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == 'on') ? true:false; $sp = strtolower($_SERVER['SERVER_PROTOCOL']); $protocol = substr($sp, 0, strpos($sp, '/')) . (($ssl) ? 's' : ''); $port = $_SERVER['SERVER_PORT']; $port = ((!$ssl && $port=='80') || ($ssl && $port=='443')) ? '' : ':'.$port; $host = isset($_SERVER['HTTP_X_FORWARDED_HOST']) ? $_SERVER['HTTP_X_FORWARDED_HOST'] : isset($_SERVER['HTTP_HOST']) ? $_SERVER['HTTP_HOST'] : $_SERVER['SERVER_NAME']; return $protocol.'://'.$host.$port.$_SERVER['REQUEST_URI']; }In this function , can we change it to only use HTTPS ?
Forum: Plugins
In reply to: [Ajaxify Comments - Ajax and Lazy Loading Comments] Can't use with HTTPS ?When i disabled your plugin and use the default comment wordpress method , it’s nothing happen , the comment posted normaly and everything still work fine . But when activated your plugin and try to post comment , the error “Unknown error occured” is still display .
I have a thought on this issue is realted to $siteurl and $home define(‘WP_HOME’,’http://example.com’);
define(‘WP_SITEURL’,’http://example.com’);
My site front end is running with HTTPS but in my WordPress core option , my WordPress site URL and home URL is still using HTTP , I think this has to affect operations of the plugin , when activated the plugin and post comment , I think the plugin is still use get_permalink() of the post is HTTP or get home_url() is HTTP as WordPress core option , so it break when using with HTTPS .
– Do you have any idea to solve this problem ? I try to change the home_url() and site_url() to HTTPS and find the error but i can’t , because I’m using HTTPS on browser ( not on my web server ) .
– Or we can change the function on plugin to get the permalink or home_url() of the post is HTTPS instead of HTTP ?Forum: Plugins
In reply to: [Ajaxify Comments - Ajax and Lazy Loading Comments] Can't use with HTTPS ?Dear !
Your plugin and Jquery seems work fine , seen I installed WordPress HTTPS plugin and setup HTTPS on my page , the plugin does not work properly – it have only one error is when complete all the fields and click post comment , it show error “Something went wrong, your comment has not been posted. ” , but comments are still being sent to the dashboard as usual , i don’t know what error , it’s doesn’t show new comment posted AJAX too , it’s only show Unknown error occured . I don’t know what to do now 🙁
When I logged in and click post comment , my browser (Chrome) notice that the HTTPS is not secure , this mean when sending comment to server and the server respond is not secure , I press Ctrl+Shift+J in Google Chrome to find what is it , it show :
Failed to load resource: the server responded with a status of 500 (Internal Server Error) https://www.mywebsite.com/wp-comments-post.php
The page at ‘https://www.mywebsite/v/examplepost’ was loaded over HTTPS, but displayed insecure content from ‘http://www.mywebsite/v/examplepost/comment-page-11#comment-4424’: this content should also be loaded over HTTPS.
——————–
XMLHttpRequest cannot load http://www.mywebsite.com/v/example/comment-page-11#comment-4424. No ‘Access-Control-Allow-Origin’ header is present on the requested resource. Origin ‘https://www.mywebsite.com’ is therefore not allowed access.
—
Now i think this problem related to HTTPS , when click post comment , the plugin send data and respond HTTP (instead of HTTPS) , and the plugin show error . I think the problem is instead of respond HTTP , the plugin should respond as HTTPS .
Sorry for my bad English , and hope you will help me to fix this !
Thank you so much !Forum: Plugins
In reply to: [Ajaxify Comments - Ajax and Lazy Loading Comments] Can't use with HTTPS ?Wow . I think this problem is related to Jquery , when use https the jquery don’t work perfectly . I have change the Jquery code of another script and plugin to the site work perfect , but I can’t fix this problem with WP-Ajaxify-Comments plugin . Your plugin is awesome and i like it so much , i don’t want to use another plugin . I hope this problem can fix !
I change a lot of code in my site , example is :
window.load function ,
$(document).ready(function() ,
jQuery(document).ready(function() ,Forum: Plugins
In reply to: [Ajaxify Comments - Ajax and Lazy Loading Comments] Can't use with HTTPS ?Sorry for late reply . This is my example link to this problem ? http://goo.gl/Gs9Hou ? Thank you !