doublehelix21
Forum Replies Created
-
ok… after disabling op-code cache (file-cache is still turned on) it is now saving and retrieving data from the settings database.
I have no idea why the cache only affected this one plugin but it is definitely worth investigating more from this end.We have seen a problem with op-code cache once before (with Piwik itself funnily enough) when dynamically generating arrays of settings from the piwik global.ini.php files. THe array_merging of this data was being destroyed by the op-code cache thinking these files were PHP that needed to be compiled rather than the text-files they actually were with a php header to stop linking directly to the files…
Given that this [wp-piwik] plugin talks to the database, I have no idea what the cause is here. As soon as I have more information I will let you know.
In the mean time, we updated the php.ini file specifically for the wordpress path of our sites to disable op-code caching.
The following lines were added to the end of the php.ini file:
[PATH=C:\Hosting\Domains\mydomain.com\wordpress\wp-admin] wincache.ocenabled = 0The “path” specified disables the cache for the admin site only and not the front-end… still solved the problem.
Thanks again for all your attention on this.
Regards,
James.Hi, you were correct about the 32-bit integers… We’re on a 64-bit OS, but running 32-bit PHP (specifically, it only supports 32-bit integers).
However, the output was: 2015051501Just as a test, the output of PHP_MAX_INT was: 2147483647
I’ve just remembered from your comments on caching that we’re also running an op-code cache. I’m going to disable this and try again to see if that affects anything.
Thanks again!
Sure can… [some time passes]…
ok, so I tested saving again.
in v0.10.7 the wp-piwik_global-revision value is no longer being set to 0. It’s retaining the value 2015051501.
However, no other details are being updated.On a side note, if I manually update the database values for ‘wp-piwik_global-piwik_url‘ and ‘wp-piwik_global-piwik_token‘ with my piwik url and api key, these values are not loaded when I navigate to the settings page for wp-piwik.
Stranger and stranger… Perhaps this is a WP4.2.2 issue?
Also, I have no other customisations on either database…
When I remove and re-install the wp-piwik plugin, the database is cleared of all settings, and they re-appear ok on re-install, so DB communication seems ok in general.Thanks again for your help on this!!
Hi, thanks for the quick update.
One of the sites was upgraded from 0.9.18 to 0.10.3 (then 0.10.6)
The other site had no previous installation, and went to a new 0.10.6.I’ve updated both to 0.10.7… still no luck saving any settings in either site. Log files reveal the same as before… all other plugins are still working ok.
Not sure what could be going wrong. It appears as though nothing is actually being posted when I click save, but as all other plugins are working and saving settings ok, it’s a little baffling.
As some addition information, I completed the “Url” and “Api-key” values in the “connection” tab and hit save with logging turned on. The following is the output from that file:
[ 0.000 sec] Logging started ------------------------------- [ 0.004 sec] Store default settings [ 0.007 sec] Load settings [ 0.016 sec] Running WP-Piwik installation [ 0.019 sec] Changed global option revision: 2015051101 [ 0.023 sec] Changed global option last_settings_update: 1431652558 [ 0.028 sec] Save settings [ 0.132 sec] Logging finished ------------------------------ [ 0.000 sec] Logging started ------------------------------- [ 0.004 sec] Store default settings [ 0.007 sec] Load settings [ 0.020 sec] Apply changed settings: [ 0.023 sec] Changed global option revision: 0 [ 0.026 sec] Changed global option last_settings_update: 0 [ 0.029 sec] Changed global option piwik_mode: http [ 0.033 sec] Changed global option piwik_url: [ 0.036 sec] Changed global option piwik_path: [ 0.039 sec] Changed global option piwik_user: [ 0.041 sec] Changed global option piwik_token: [ 0.045 sec] Changed global option auto_site_config: 1 [ 0.048 sec] Changed global option default_date: yesterday [ 0.051 sec] Changed global option stats_seo: [ 0.078 sec] Changed global option dashboard_widget: [ 0.082 sec] Changed global option dashboard_chart: [ 0.084 sec] Changed global option dashboard_seo: [ 0.087 sec] Changed global option toolbar: [ 0.090 sec] Changed global option capability_read_stats: a:1:{s:13:"administrator";b:1;} [ 0.093 sec] Changed global option perpost_stats: [ 0.096 sec] Changed global option plugin_display_name: WP-Piwik [ 0.098 sec] Changed global option piwik_shortcut: [ 0.102 sec] Changed global option shortcodes: [ 0.107 sec] Changed global option track_mode: disabled [ 0.111 sec] Changed global option track_codeposition: footer [ 0.115 sec] Changed global option track_noscript: [ 0.120 sec] Changed global option track_nojavascript: [ 0.124 sec] Changed global option proxy_url: [ 0.129 sec] Changed global option track_content: disabled [ 0.133 sec] Changed global option track_search: [ 0.138 sec] Changed global option track_404: [ 0.142 sec] Changed global option add_post_annotations: [ 0.146 sec] Changed global option add_customvars_box: [ 0.151 sec] Changed global option add_download_extensions: [ 0.155 sec] Changed global option disable_cookies: [ 0.159 sec] Changed global option limit_cookies: [ 0.164 sec] Changed global option limit_cookies_visitor: 34186669 [ 0.168 sec] Changed global option limit_cookies_session: 1800 [ 0.171 sec] Changed global option limit_cookies_referral: 15778463 [ 0.173 sec] Changed global option track_admin: [ 0.177 sec] Changed global option capability_stealth: a:0:{} [ 0.181 sec] Changed global option track_across: [ 0.184 sec] Changed global option track_across_alias: [ 0.188 sec] Changed global option track_feed: [ 0.192 sec] Changed global option track_feed_addcampaign: [ 0.196 sec] Changed global option track_feed_campaign: feed [ 0.200 sec] Changed global option cache: 1 [ 0.204 sec] Changed global option disable_timelimit: [ 0.207 sec] Changed global option connection_timeout: 5 [ 0.211 sec] Changed global option disable_ssl_verify: [ 0.215 sec] Changed global option piwik_useragent: php [ 0.219 sec] Changed global option piwik_useragent_string: WP-Piwik [ 0.224 sec] Changed global option track_datacfasync: [ 0.228 sec] Changed global option track_cdnurl: [ 0.231 sec] Changed global option track_cdnurlssl: [ 0.236 sec] Changed global option force_protocol: disabled [ 0.239 sec] Changed option name: [ 0.242 sec] Changed option site_id: [ 0.246 sec] Changed option noscript_code: [ 0.250 sec] Changed option tracking_code: [ 0.253 sec] Changed option last_tracking_code_update: 0 [ 0.256 sec] Changed option dashboard_revision: 0 [ 0.259 sec] Changed global option last_settings_update: 1431652581 [ 0.261 sec] Save settings [ 0.286 sec] Running WP-Piwik installation [ 0.289 sec] Changed global option revision: 2015051101 [ 0.292 sec] Changed global option last_settings_update: 1431652581 [ 0.295 sec] Save settings [ 2.204 sec] Logging finished ------------------------------