• Resolved etyper

    (@etyper)


    I’ve upgraded to the latest version of the plugin (from 3.4). In Stats Panel I can see only ‘7d’ stats. ’24h’, ’30d’, ‘Custom’ don’t work. When I click them nothing happens. What could it be? Other links ‘Most commented’, ‘Tranding now’, ‘Hall of Fame’ don’t work too. ‘Tools’ and ‘Parameters’ work ok.
    In ‘Tools’ I’ve enabled caching with 1 hour refresh. But widget refreshing in real time so if caching were turned off.

Viewing 4 replies - 16 through 19 (of 19 total)
  • Thread Starter etyper

    (@etyper)

    When I needed to edit the post (any post), I see an empty editor window (no text and no photos). After the ‘WCP OpenWeather’ was turned off, everything became normal. Admin account. On another computer, another author (not an admin) edited normally. Until I began to understand, I simply turned it off.

    Plugin Author Hector Cabrera

    (@hcabrera)

    I see. Maybe WCP OpenWeather loads some scripts on the Post Edit screen as well? If so, follow the instructions from before and change this line:

    // Let's load these scripts and stylesheets on WCP OpenWeather's admin screens only
    if ( 'wcp-weather_page_wcp-weather' == $screen->id ) {

    to:

    // Let's load these scripts and stylesheets on WCP OpenWeather's admin screens and post edit screens only
    if ( 'wcp-weather_page_wcp-weather' == $screen->id || 'post' == $screen->id ) {
    Plugin Author Hector Cabrera

    (@hcabrera)

    Update: you’ll also need to include the Widgets page as it seems WCP OpenWeather also injects some JS files here for its widget:

    // Let's load these scripts and stylesheets on WCP OpenWeather's admin screens, post edit screens and Widgets page only
    if ( 'wcp-weather_page_wcp-weather' == $screen->id || 'post' == $screen->id || 'widgets' == $screen->id ) {
    Thread Starter etyper

    (@etyper)

    I made the last changes. It seems to be all right. Thanks again.

Viewing 4 replies - 16 through 19 (of 19 total)
  • The topic ‘Admin Panel WPP-Stats don’t work’ is closed to new replies.