Problem granting users

To reproduce this problem:
Go to Manage Users and select e.g ‘View’ for a user and accept.

Expected:
The user is granted ‘View’ permission on the website.

Actual:
After accepted, the screen returns to the user list without changing the user permissions.

Matomo v3.7.0

Hi,

Do you get a modal like this:

If it still doesn’t work, please check your browsers Javascript console and the php error log for more information.

You’re right. It returns a 503

index.php?module=Proxy&action=getCoreJs&cb=62b58af6295258be7256a3a2de07a2bd:231 POST https://webstat.domain.tld/index.php?date=2018-10-28,2018-11-26&format=JSON2&idSite=2&method=API.getBulkRequest&module=API&period=range 503
(anonymous) @ index.php?module=Proxy&action=getCoreJs&cb=62b58af6295258be7256a3a2de07a2bd:231
q @ index.php?module=Proxy&action=getCoreJs&cb=62b58af6295258be7256a3a2de07a2bd:226
(anonymous) @ index.php?module=Proxy&action=getCoreJs&cb=62b58af6295258be7256a3a2de07a2bd:224
(anonymous) @ index.php?module=Proxy&action=getCoreJs&cb=62b58af6295258be7256a3a2de07a2bd:258
$digest @ index.php?module=Proxy&action=getCoreJs&cb=62b58af6295258be7256a3a2de07a2bd:269
$apply @ index.php?module=Proxy&action=getCoreJs&cb=62b58af6295258be7256a3a2de07a2bd:272
(anonymous) @ index.php?module=Proxy&action=getCoreJs&cb=62b58af6295258be7256a3a2de07a2bd:408
dispatch @ index.php?module=Proxy&action=getCoreJs&cb=62b58af6295258be7256a3a2de07a2bd:5
r.handle @ index.php?module=Proxy&action=getCoreJs&cb=62b58af6295258be7256a3a2de07a2bd:5

In that case there is probably a PHP error (or timeout)

And how do I investigate? The problem started after upgrade to v3.7

Check your PHP error log. (and/or webserver error log)

PHP errorlog don’t handle 500 errors, but the access-log receives this:

POST /index.php?date=2018-10-30,2018-11-28&format=JSON2&idSite=2&
method=API.getBulkRequest&module=API&period=range HTTP/1.1" 503 629 
"https://webstat.domain.tld/index.php?module=UsersManager&action=index&idSite=2&
period=range&date=previous30" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.13; rv:64.0) 
Gecko/20100101 Firefox/64.0

And the console:

index.php?module=Proxy&action=getCoreJs&cb=62b58af6295258be7256a3a2de07a2bd:231 POST https://webstat.domain.tld/index.php?date=2018-10-30,2018-11-28&format=JSON2&idSite=2&method=API.getBulkRequest&module=API&period=range 503
(anonymous) @ index.php?module=Proxy&action=getCoreJs&cb=62b58af6295258be7256a3a2de07a2bd:231
q @ index.php?module=Proxy&action=getCoreJs&cb=62b58af6295258be7256a3a2de07a2bd:226
(anonymous) @ index.php?module=Proxy&action=getCoreJs&cb=62b58af6295258be7256a3a2de07a2bd:224
(anonymous) @ index.php?module=Proxy&action=getCoreJs&cb=62b58af6295258be7256a3a2de07a2bd:258
$digest @ index.php?module=Proxy&action=getCoreJs&cb=62b58af6295258be7256a3a2de07a2bd:269
$apply @ index.php?module=Proxy&action=getCoreJs&cb=62b58af6295258be7256a3a2de07a2bd:272
(anonymous) @ index.php?module=Proxy&action=getCoreJs&cb=62b58af6295258be7256a3a2de07a2bd:408
dispatch @ index.php?module=Proxy&action=getCoreJs&cb=62b58af6295258be7256a3a2de07a2bd:5
r.handle @ index.php?module=Proxy&action=getCoreJs&cb=62b58af6295258be7256a3a2de07a2bd:5

Is it a date format problem…?

Hi,

The access-log only tells you that an error occurred on this request, but without knowing what it is we can only guess.

Check your PHP config or contact your host to find out the exact error.

An upgrade to PHP v7.1 changed everything. Now it runs smoothly again

1 Like