page views on mobile theme

Posted in: Newspaper
Post count: 22

Hi, I have installed the mobile plugin and activated it.
Now I set the counter key to the value of my old theme:
static $post_view_counter_key = ‘tie_views’;
The count on pageviews are working on the normal theme, on the mobile nothing is happening, it stays on 0!
What could be wrong? How to solve this.
It would nicer if there was a way to import the old views over to the newspaper theme!

Post count: 22

I found out what was causing this problem. It is the Multi-purpose plugin. Deactivate the plugin makes the pageview count working again on mobile. Also, attempt to log in inside the mobile theme was blocked by the same Multi-purpose plugin!

Post count: 22

On mobile theme, I receive this error on category post page:
wp booster error:
td_api_base::mark_used_on_page : a component with the ID: style5 is not set.
/www/wp-content/themes/Newspaper/includes/wp_booster/td_api.php

wp booster error:
td_api_base::get_key : a component with the ID: style5 Key: wrap_classes is not set.
/www/wp-content/themes/Newspaper/includes/wp_booster/td_api.php

Post count: 22

disable social sharing will make the error not showing! But I need the social sharing.

Post count: 22

Not all sharing styles giving errors, default style 1 works fine!

Post count: 20688

Hi,

Indeed there is no option to import the views from a different theme. I see you managed to achieve it. On mobile theme the same view count of the post should be diusaplyed and the count will increase further. That is not a different counter
https://www.screencast.com/t/NHHn0U5LcH
https://www.screencast.com/t/qNdxTaTDb4lu
The same function is used – https://www.screencast.com/t/790gbzlx84T

There is an issue when trying to login from mobile devices at the moment, this will be fixed in the coming update. Sorry for the inconvenience.

Thanks

Post count: 22

Thanks, Simion, I just wanted to report that by activating the Multi-purpose plugin the views count on the mobile theme stopped working but on the normal theme not! And there is a bug with the sharing-styles!

  • This reply was modified 8 years by WilRC.
Post count: 20688

That is not happening in any of our tests. Regardless of multi-purpose plugin state, the mobile theme counter is not affected. Try reinstalling the multi-purpose plugin from the latest theme package and test again.

Deactivate all other plugins except theme plugins as a test. Clear all caching and CDN cache if used. If you use a child theme switch to the main theme.
We can take a look if these suggestions have no effect, please provide a link to your website so we can inspect the issues.

Post count: 22

With another key counter value, the pageview counter on the mobile theme doesn’t work properly. The only thing that fixed this is renaming the key meta in the wp_postmeta table:
update wp_postmeta
set meta_key = 'post_views_count'
where meta_key = 'old_key_name'

Then everthing works fine as aspected! A simple solution to import the pageviews into the newspaper theme.

Viewing 9 posts - 1 through 9 (of 9 total)
The forum ‘Newspaper’ is closed to new topics and replies.