• Resolved Kim Dongwook

    (@pfcolor)


    Hello.
    I’m having trouble since I installed WP Statistics 8.7.2 on WordPress 4.1.
    (I newly started to use WordPress and WP Statistics, so I installed cleanly. I DIDN’T upgrade WP Statistics and WordPress neither.)

    In some menus, WP Statistics doesn’t show statistics.
    (Pages, Referers, Visitors…)

    It doesn’t show anything except some blank boxes.

    I attach source code:

    <script type="text/javascript">
    	postboxes.add_postbox_toggles(pagenow);
    	});
    </script>
    <div class="wrap">
    	<!-- Screen icons are no longer used as of WordPress 3.8. -->	<h2>Recent Visitors</h2>
    	<ul class="subsubsub">
    		<li class="all"><a class="current"href="?page=wps_visitors_menu">All <span class="count">(7)</span></a></li>
    			</ul>
    	<div class="postbox-container" id="last-log">
    		<div class="metabox-holder">
    			<div class="meta-box-sortables">
    				<div class="postbox">
    					<div class="handlediv" title="Click to toggle"><br /></div>
    										<h3 class="hndle"><span>Recent Visitor Statistics</span></h3>
    										<div class="inside">

    It ends with <div class “inside”> which is not closed. No </body>. No </html>. etc.

    In console, it alerts ‘SyntaxError: Parser error’ in

    <script type="text/javascript">
    	postboxes.add_postbox_toggles(pagenow);
    	});
    </script>

    third line: ( }); ) .

    How can I see those statistics?

    Thank you.

    https://wordpress.org/plugins/wp-statistics/

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Contributor Greg Ross

    (@gregross)

    Can you check your wp-statistics/includes/log/top-pages.php, it should be 6,487 bytes in size.

    The first few lines should be:

    <script type="text/javascript">
    	jQuery(document).ready(function(){
    		postboxes.add_postbox_toggles(pagenow);
    	});
    </script>

    The code you included above is missing the jQuery line which is causing the parse error.

    You may have a corrupted install, try removing and re-installing WP Statistics.

    Thread Starter Kim Dongwook

    (@pfcolor)

    I checked wp-statistics/includes/log/top-pages.php.
    The first few lines are exactly same as you mentioned.

    However, it’s so weird.
    After checking that file, I removed WP Statistics via removal tool inside WP Statistics Settings, deactivate in Plugins menu and delete it. After that, I re-installed WP Statistics via FTP upload.

    The weird thing is…. When I checked top-pages.php for the first time, it was 6,487 bytes in size. But when I re-installed WP Statistics and checked top-pages.php for second time, it was 6,295 bytes. Codes you mentioned(script…jQuery…) still existed. I re-uploaded top-pages.php file, but it is still 6,295 bytes. (In my computer—not wordpress server—, it is 6,487 bytes.)

    By the way, codes you mentioned exist. And after re-installing, WP Statistics still shows empty boxes with the same console error and missing some closing HTML tags.

    Plugin Contributor Greg Ross

    (@gregross)

    If you look at the page source code (ctrl-u in your browser) to one of the pages that isn’t working, is the jQuery line in it?

    Have you tried another browser?

    Thread Starter Kim Dongwook

    (@pfcolor)

    I’ve tried Safari, Chrome, Firefox on Mac, and IE 11 on Windows.
    ALL browsers are showing the source code that DOESN’T have ‘jQuery line’.

    It may be a server-side problem…. but I don’t have any knowledge about it.

    Plugin Contributor Greg Ross

    (@gregross)

    Do you use a caching plugin?

    Try disabling your other plugins and see if it is a conflict with one of them.

    Thread Starter Kim Dongwook

    (@pfcolor)

    After deactivating SEO Redirection Plugin(https://wordpress.org/plugins/seo-redirection/), the problem has solved.

    Thank you for your detailed reply!
    Thank you.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘It doesn’t show some statistics’ is closed to new replies.