deepak.ghayal
Forum Replies Created
-
Forum: Plugins
In reply to: [JSON API User] Login to websiteI just simple edit below function with few lines of code and it works like charm.
public function validate_auth_cookie() {global $json_api;
if (!$json_api->query->cookie) {
$json_api->error(“You must include a ‘cookie’ authentication cookie. Use the
create_auth_cookie
method.”);}
$valid = wp_validate_auth_cookie($json_api->query->cookie, ‘logged_in’) ? true : false;
$userid = wp_validate_auth_cookie($json_api->query->cookie, ‘logged_in’);
// print_r($userid);
// print_r(get_userdata( $userid ));
$data = get_userdata( $userid );
$username = $data->user_login;
// print_r($username );
// require(‘../wp-blog-header.php’);
$user_login = $username;
$user = get_userdatabylogin($user_login);
// print_r($user);
$user_id = $user->ID;
$dsf=wp_set_current_user($user_id, $user_login);
// print_r($dsf);
$sdf=wp_set_auth_cookie($user_id);
// print_r($sdf);
$datas=do_action(‘wp_login’, $user_login);
// print_r($datas);
// exit;
wp_redirect( get_site_url(), 301 ); //exit;
// exit;if($userid) {
$creds = array();
// $creds[‘user_login’] = ‘add’;// $json_api->query->username;
// $creds[‘user_password’] = ‘add’; // $json_api->query->password;
$creds[‘remember’] = true;
$user = wp_signon( $creds, false );
if ( is_wp_error($user) )
echo $user->get_error_message();wp_redirect( get_site_url(), 301 ); exit;
}
else{
return array(“valid” => $valid);
}
}Thanks Ali Qureshi your plugin works great…
thanks issue is solved now…
Thank you very much..thanks for your reply….
we do not visiting to stage or development version now.
I will explain it again….
when I visit this link https://roi-selling.com/about-stratavant/
view count increase at here https://roi-selling.com/wp-admin/admin.php?page=stats with post/page title
And at the same time view count also increases for same visit at https://blog.roi-selling.com/wp-admin/admin.php?page=stats with #49(loading title).
And 49 ID is exists on main site https://roi-selling.com/wp-admin/post.php?post=49&action=edit .If https://roi-selling.com/about-stratavant/ visit then count must increase on only here https://roi-selling.com/wp-admin/admin.php?page=stats not on second site https://blog.roi-selling.com/wp-admin/admin.php?page=stats Am I right???
For more details I am attach picture for the same.
1) I visit this page
https://www.dropbox.com/s/kt2fzba8mk6lm6d/Screenshot%202014-08-21%2015.20.50.png
2) view count increase here and it is right
https://www.dropbox.com/s/g2lyt9merrtjfrm/Screenshot%202014-08-21%2015.21.37.png
3) But In blog section view count also increases for same visit here
https://www.dropbox.com/s/9kene6yn2xckt0q/Screenshot%202014-08-21%2015.21.11.pngSimply I am visiting 1 page and view count increases on both site.
You said that both site have separate blog ID, then view count must be separate for each site.
Hope you understand…Do you know what those posts are? Typically, you can use the ID to see the post (e.g. https://blog.roi-selling.com/?p=2 , but that is returning the home page.
You can attempt to load the post in your editor via by visiting your site’s admin area (e.g. https://blog.roi-selling.com/wp-admin/ ) and changing the URL to https://blog.roi-selling.com/wp-admin/post.php?post=2&action=edit for #2 or https://blog.roi-selling.com/wp-admin/post.php?post=78&action=edit
I suspect it may be a custom post type that isn’t set to sync data with WordPress.com, so we don’t have access to the post title to display it.
I check both site again so I found something #2(loading title) are pages exists on https://roi-selling.com means on main site. As per your suggestion I open in admin area https://roi-selling.com/wp-admin/post.php?post=2&action=edit . This pages are exists on https://roi-selling.com not on https://blog.roi-selling.com/ . But problem is having on blog why??. It is because of .httaccess ?? Here is code of htaccess
rewriteengine on
rewritecond %{HTTP_HOST} ^stratavant.roi-selling.com$
rewriterule ^(.*)$ “http\:\/\/roi-selling\.com\/$1” [R=301,L] #5399bb7d8a256# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteBase /
# add a trailing slash to /wp-admin
</IfModule>
# END WordPress
# BEGIN wtwp_cache
# END wtwp_cache
# BEGIN wtwp_security
# END wtwp_security
rewriterule ^index\.php$ – [L]
rewriterule ^wp-admin$ wp-admin/ [R=301,L]
rewritecond %{REQUEST_FILENAME} -f [OR]
rewritecond %{REQUEST_FILENAME} -d
rewriterule ^ – [L]
rewriterule ^(wp-(content|admin|includes).*) $1 [L]
rewriterule ^(.*\.php)$ $1 [L]
rewriterule . index.php [L]
————————————————–
can I make changes like rewritecond %{HTTP_HOST} ^stratavant.roi-selling.com$ to change with this
rewritecond %{HTTP_HOST} ^roi-selling.com$
???can jetpack update (3.1.1) will resolve the issue?? At-least can We make any changes in php or js file to hide #x(loading title) message in jetpack site stats. If yes just provide me file name. I will try hide it.
In network admin under jetpack -> Sites, two sites listed:
1)stratavant.roi-selling.com
2)blog.roi-selling.com
In the above 1 is deleted Now if any one visit stratavant.roi-selling.com site it will redirect to this roi-selling.com. I hope this will help us to resolve issue. When we visit this link https://stratavant.roi-selling.com/about-stratavant/ count of #x(loading title) is increases. So now my question is when view count increase means 1) when we click on link like https://stratavant.roi-selling.com/about-stratavant/ as example
or 2) when stravant.roi-selling.com changes to roi-selling.com (when domain redirect). Is their any setting to manage this thing or we need to change those link manually..can jetpack update (3.1.1) will resolve the issue?? At-least can We make any changes in php or js file to hide #x(loading title) message in jetpack site stats. If yes just provide me file name. I will try hide it.
I forget to inform you that…Actually The WordPress had 1 main 2 sub-site but in last month 1 sub-site is deleted. Can jetpack latest version update will resolve the issue??
Yes, you are absolutely right..I have create two Instance of WordPress:
1) Development 2) Stage at both on local Instance. And yes We have created those instance before 3-4 month with WordPress files and latest database. And at that time this database is having same configuration like online site (https://blog.roi-selling.com/). Means now In my local Instance https://192.168.200.14/stratavantDev/blogs/ and online https://blog.roi-selling.com/ having same configuration.
It might be possible that when I create local Instance #2 or #11 or #78 etc are exists in database and after I visit those link creates But Again my question is :
When I was trying to create local Instance at that time jetpack connect from WordPress.com It show connected but not showing site stat at local Instance. Can It affect on online(https://blog.roi-selling.com/).Forum: Plugins
In reply to: #xxx (loading title) in Jetpack Stats state dashboard for sub- siteok thanks
thanks for you reply..
I found something that will help us to resolve issue. Please check on this link https://www.roi-selling.com/wp-content/plugins/jetpack/readme.txt in this release file of jetpack.= 1.2.3 =
* Enhancement: Twitter Widget: Expand t.co URLs
* Bug Fix: Correctly sync data during certain MultiSite cases.
* Bug Fix: Stats: Allow sparkline img to load even when there is a DB upgrade.
* Bug Fix: Stats: Replace “loading title” with post title regardless of type and status.As per this file jetpack has been already resolve the bug. Is it same issue which is mentioned above. So now what can I do for this bug.
we do not have any other website with same configuration online. Yes I have one Instance of website with same configuration but it on my local machine. This instance created in april 14, and the issue is happening recently.
Also I check broken link from website, I found some link but those are related to images, JS, and social login facebook. their is no broken link with post.
And I am using only two plugin WordPress Importer and Contact Form 7. I read your one reply on this issue with below link. https://www.ads-software.com/support/topic/stats-loading-title-message?replies=6There isn’t a way to fix the title issue with the way our stats are built with the way that plugin works. The closest thing would be to remove the stats tracking code from those pages, but you would lose that data that someone did click on an IDX listing.
what is IDX listing??Can update will solve issue??
I have wordpress =3.9.2 and jetpack =3.0.1. this will help you to find out issue.
Once again thanks for your reply..The other time I’ve seen something like this is if there’s another site that was set to use the same ID as your site—for example, a staging site that was directly copied from this subsite that included posts that were deleted or never existed on your actual site and had visits.
Forum: Plugins
In reply to: #xxx (loading title) in Jetpack Stats state dashboard for sub- siteIs this issue is happening because of update?? Do you have any Idea about this, Means I m not getting why it occurs. This is happening only for those post which are not exists. So my question is from where it is taking false link.I have check the site stats for https://blog.roi-selling.com on wordpress.com also result is same. I check again all post their is no post with ID=2. I think the problem is occurs only for non-exists post. But I can’t understand from where it comes. As per your last suggestion it works some post. Tell me more about this error, means why it happens. Now https://wordpress.com/my-stats/?blog=45788312 and https://blog.roi-selling.com/wp-admin/admin.php?page=stats on both site result are same, having #x(loading title) issue.
I have check the site stats for https://blog.roi-selling.com on wordpress.com also result is same. I check again all post their is no post with ID=2. I think the problem is occurs only for non-exists post. But I can’t understand from where it comes. As per your last suggestion it works some post. Tell me more about this error, means why it happens. Now https://wordpress.com/my-stats/?blog=45788312 and https://blog.roi-selling.com/wp-admin/admin.php?page=stats on both site result are same, having #x(loading title) issue.
Thanks for your reply. As per your instruction I visit admin area their is no blank link or custom link found. As you said, I Just click on edit post and again come back to post list page. By doing this, today’s stats work great, just one result shows #2(loading title).
@q::But Is their any solution for past stats result like when I click on summery it last month, week, result in it remains show #x(loading title). Is their any solution for yesterday or last week, month site stats result.