You can't access this resource as it requires a 'superuser' access.
-
Hello,
I upgraded my wordpress blogs to WP-Piwik 0.10.0.3.
I use a piwik account which has only view rights to all the websites.
Piwik interface is only available using https, so I forced https and disabled the peer verification in expert settings.It worked fine with your plugin previous version.
Now, when i reconfigured it (since settings were lost), it can’t find the associated website from Piwik (they all already exists).The plugin is well connected to my piwiki :
WP-Piwik 0.10.0.3 is successfully connected to Piwik 2.13.1. You are running WordPress 4.2.2
I keep gettings these errors :
PHP Warning: Illegal string offset ‘main_url’ in plugins/wp-piwik/classes/WP_Piwik/Admin/Settings.php on line 120
I added this on line 120 in wp-piwik/classes/WP_Piwik/Admin/Settings.ph :
echo "<pre>"; print_r( $piwikSiteDetails ); echo "</pre>";
Here’s what I got :
Array ( [result] => error [message] => You can't access this resource as it requires a 'superuser' access. )
On the plugin select site list, i have this :
<option value="result" selected="selected">e (e)</option> <option value="message">Y (Y)</option>
If i give superuser access (admin access is not enough) to the user I use, it works (and creates a new site if “Auto config” is on).
I have no errors on Piwik side.
Any idea ?
- The topic ‘You can't access this resource as it requires a 'superuser' access.’ is closed to new replies.