Title: Analytics empty
Last modified: June 24, 2020

---

# Analytics empty

 *  [mmwbadmin](https://wordpress.org/support/users/mmwbadmin/)
 * (@mmwbadmin)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/analytics-empty/)
 * Hi,
    OPCache Analytics (Zend OPcache 7.4.7) is empty, while OPcache Management
   displays > 850 files (with some hits). I would expect them to show up in PerfOps
   Analytics OPcache, but Hit Ratio through Buffer Saturation = 0, Availability 
   = 100%. Am I missing something?
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fanalytics-empty%2Fpage%2F2%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 14 replies - 16 through 29 (of 29 total)

[←](https://wordpress.org/support/topic/analytics-empty/?output_format=md) [1](https://wordpress.org/support/topic/analytics-empty/?output_format=md)
2

 *  Plugin Author [Pierre Lannoy](https://wordpress.org/support/users/pierrelannoy/)
 * (@pierrelannoy)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/analytics-empty/page/2/#post-13048248)
 * Wow! Incredible. and a bit disappointing 🙁
 * Is the option to store transient in DB is activated?
 *  Thread Starter [mmwbadmin](https://wordpress.org/support/users/mmwbadmin/)
 * (@mmwbadmin)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/analytics-empty/page/2/#post-13049413)
 * Hi,
    transients are stored in the DB (otherwise my own plugin doesn’t function
   😉 ).
 *  [aptx](https://wordpress.org/support/users/aptx/)
 * (@aptx)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/analytics-empty/page/2/#post-13055781)
 * I am also experiencing the analytics being empty.
 * WP: 5.4.2
    PHP: 7.2.31 OPCache Manager: 1.3.2
 * Zend OPCache enabled and showing 2,000+ files in the Manager with hits but no
   analytics. I assume the OPCache is working as there are cached files with hits,
   but the analytics would be cool.
    -  This reply was modified 5 years, 11 months ago by [aptx](https://wordpress.org/support/users/aptx/).
 *  Plugin Author [Pierre Lannoy](https://wordpress.org/support/users/pierrelannoy/)
 * (@pierrelannoy)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/analytics-empty/page/2/#post-13056989)
 * Oh my! But it’s an epidemic! 🙁
 * Ok, so now, we have two cases.
    We will compare.
 * Can you first (for you both) confirm you have an operational cron and which method
   of cron you use.
    If you use the standard WP cron method, can you tell me what’s
   the “average” traffic on your site (because standard WP cron relies on traffic)?
   If you use alternative method, can you tell what’s the set frequency?
 * Thanks
 *  Thread Starter [mmwbadmin](https://wordpress.org/support/users/mmwbadmin/)
 * (@mmwbadmin)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/analytics-empty/page/2/#post-13058496)
 * Server cron operational at 5 min interval (*/5).
    Creates records in table opcm_statistic(
   enabled/none/0/0/0…/0)
 *  Thread Starter [mmwbadmin](https://wordpress.org/support/users/mmwbadmin/)
 * (@mmwbadmin)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/analytics-empty/page/2/#post-13060783)
 * Hi,
    this appears in debug log PHP Warning: array_key_exists() expects parameter
   2 to be array, bool given in wp-content/plugins/opcache-manager/includes/features/
   class-capture.php on line 87 (& lines 90, 93, 109, 115, 121, 127, 130, 133, 139,142,
   145, 148, 159, 162, 166 + 169)
 *  [aptx](https://wordpress.org/support/users/aptx/)
 * (@aptx)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/analytics-empty/page/2/#post-13061779)
 * I am using the standard wp cron. Did not check the interval, but checking today
   the stats are showing. This may have been a traffic/timing thing.
 *  Plugin Author [Pierre Lannoy](https://wordpress.org/support/users/pierrelannoy/)
 * (@pierrelannoy)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/analytics-empty/page/2/#post-13061846)
 * Thanks for your feedback [@aptx](https://wordpress.org/support/users/aptx/)… 
   That’s good news 🙂
 *  Plugin Author [Pierre Lannoy](https://wordpress.org/support/users/pierrelannoy/)
 * (@pierrelannoy)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/analytics-empty/page/2/#post-13061851)
 * Thank you so much [@mmwbadmin](https://wordpress.org/support/users/mmwbadmin/)!
   Thanks to this invaluable information, I know what’s going on (note, I don’t 
   know the “why”).
    That’s simple: the standard php function (the one which is 
   responsible to get OPcache) failed to execute… There may be several reasons but
   the most likely is that OPcache is in “file cache only” mode. Could you please
   verify something? In your admin dashboard, go to the “Tools” menu, click on “
   Site Health”, then click on the info tab (at the top of the screen). You will
   obtain a list of cheks, go to OPcache section and tell me if you have “[Directive]
   file_cache_only => {nothing}” or “[Directive] file_cache_only => 1”. If you have
   the second one, the problem is here…
 *  Thread Starter [mmwbadmin](https://wordpress.org/support/users/mmwbadmin/)
 * (@mmwbadmin)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/analytics-empty/page/2/#post-13062002)
 * Hi,
 * it shows [Directive] file_cache_only => {nothing}
 *  Plugin Author [Pierre Lannoy](https://wordpress.org/support/users/pierrelannoy/)
 * (@pierrelannoy)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/analytics-empty/page/2/#post-13066681)
 * Hi!
    That’s definitely strange. We will try something else: can you send me Site
   Info?
 * Here is how to obtain Site Info: go to the “Tools” menu, click on “Site Health”,
   then click on the info tab (at the top of the screen) and use the button “copy
   site info to clipboard”…
    After that, just create a blank txt file and paste 
   the site info in it. Then, send me the file by mail at the following address:**[
   my_first_name] @ [my_last_name] .fr**
 * Thanks in advance.
 * (Note that sensitive or personal information are removed by WordPress from these
   infos)
 *  Plugin Author [Pierre Lannoy](https://wordpress.org/support/users/pierrelannoy/)
 * (@pierrelannoy)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/analytics-empty/page/2/#post-13067297)
 * Thank you so much to send me your info file [@mmwbadmin](https://wordpress.org/support/users/mmwbadmin/)!
 * That’s really strange, you have the same settings as me… There is no reason why
   the behavior should be different… unless PHP introduced a regression bug in 7.4.7(
   I can only test with 7.4.1).
 * There’s a way to test this assumption. If you’re comfortable with file modification,
   you can change a paremeter in the following file:
    `wp-content/plugins/opcache-
   manager/includes/features/class-capture.php` in lines 83 and 183, just replace`
   opcache_get_status( false );` by `opcache_get_status( true );` and after 10-15
   minutes you may see right stats.
 * If it’s the case, I will make a patch to support this…
    -  This reply was modified 5 years, 11 months ago by [Pierre Lannoy](https://wordpress.org/support/users/pierrelannoy/).
 *  Thread Starter [mmwbadmin](https://wordpress.org/support/users/mmwbadmin/)
 * (@mmwbadmin)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/analytics-empty/page/2/#post-13067938)
 * That’s odd indeed. Changes on lines 83 & 183 had no effect.
    This issue might
   be connected – on my side – to another one that I encounter since moving to a
   new host on June 20. I can not save changes to .php files in the active theme
   from within WP (plugin & theme editor), while this works for e.g. .css files 
   and for all files in non-active themes. Made the above changes via cPanel File
   Manager. I’m not using multi-ste. Perhaps I should contact my host for this.
 *  Thread Starter [mmwbadmin](https://wordpress.org/support/users/mmwbadmin/)
 * (@mmwbadmin)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/analytics-empty/page/2/#post-13071153)
 * Can save changes via plugin & theme editor again. For OPcache Manager I call 
   it a day for now. A pity we couldn’t solve the issue. Thanks for your assistance.

Viewing 14 replies - 16 through 29 (of 29 total)

[←](https://wordpress.org/support/topic/analytics-empty/?output_format=md) [1](https://wordpress.org/support/topic/analytics-empty/?output_format=md)
2

The topic ‘Analytics empty’ is closed to new replies.

 * ![](https://ps.w.org/opcache-manager/assets/icon-256x256.png?rev=2197379)
 * [OPcache Manager](https://wordpress.org/plugins/opcache-manager/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/opcache-manager/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/opcache-manager/)
 * [Active Topics](https://wordpress.org/support/plugin/opcache-manager/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/opcache-manager/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/opcache-manager/reviews/)

 * 29 replies
 * 3 participants
 * Last reply from: [mmwbadmin](https://wordpress.org/support/users/mmwbadmin/)
 * Last activity: [5 years, 11 months ago](https://wordpress.org/support/topic/analytics-empty/page/2/#post-13071153)
 * Status: not resolved