Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

page segment id request shows 500 server error. #19167

Closed
Choo-lux opened this issue May 3, 2022 · 2 comments
Closed

page segment id request shows 500 server error. #19167

Choo-lux opened this issue May 3, 2022 · 2 comments
Labels
answered For when a question was asked and we referred to forum or answered it.

Comments

@Choo-lux
Copy link

Choo-lux commented May 3, 2022

For years I have used setuserid and access it via segment=pageUrl=@3A-F8-DB-79-C8-D2:

I use the default code:

 <?php
$userId =  '3A-F8-DB-79-C8-D2';
if (isset($userId)) {
    echo sprintf("_paq.push(['setUserId', '%s']);", $userId);
}
?> 

That works as expected when clicking the profile ID.

For all old sites this link works:

/index.php?module=Widgetize&action=iframe&widget=1&moduleToWidgetize=Live&actionToWidgetize=getVisitorProfilePopup&idSite=30&period=range&date=last7&widget=1&segment=pageUrl=@userid&token_auth=ed0cd953cbddaa5da2a2bfd6

Now the Issue:

For any NEW sites clicking on profile does work but going to the above link now shows a server 500 error. And I get the matomo error:

An error occurred
Visitor could not be found

Yet the ID is listed in the UserID section and all previous sites still work, it's only happening on any new site!

Any idea how to debug?

  • Matomo Version: 4.62
  • Additionally installed plugins:
    Nothing
  • Browser: any
@Choo-lux Choo-lux added the Potential Bug Something that might be a bug, but needs validation and confirmation it can be reproduced. label May 3, 2022
@sgiehl
Copy link
Member

sgiehl commented May 3, 2022

Hi @ozrouter.
I'm not able to follow you completely. The segment pageUrl=@3A-F8-DB-79-C8-D2 might be valid, but why should you check for a userid within the page url? I guess you should more likely use a segment like userId==3A-F8-DB-79-C8-D2 to search for a specific user id.

@Choo-lux
Copy link
Author

Choo-lux commented May 3, 2022

oh OMG.

I had forgotten why I was using pageURL. userID works now thanks!

@Choo-lux Choo-lux closed this as completed May 3, 2022
@sgiehl sgiehl added answered For when a question was asked and we referred to forum or answered it. and removed Potential Bug Something that might be a bug, but needs validation and confirmation it can be reproduced. labels May 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
answered For when a question was asked and we referred to forum or answered it.
Projects
None yet
Development

No branches or pull requests

2 participants