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
Use of the internal API in a different domain on the same Server #483
Comments
Seems not to work. ``` In testing.php piwik is executed by including (see the example in the wiki): ``` |
Maybe something like this: ``` |
Here’s a simpler patch. |
Attachment: |
vipsoft and Jako, did you test the patch with the use case? Please confirm before commit. Thanks |
I didn’t hear back from Jako, but I tested the patch (in the attachment). |
Attachment: Modified example from wiki. |
thanks for patch Anthon. Fixed in 877(just slight style changes) |
Sorry for answering late. The patch works for me. Thanks! |
I’ve got a warning message if I use the API from a different domain on the same server.
Warning: Invalid argument supplied for foreach() in /users/XXXXXXX/data/websites/myDomain/plugins/LanguagesManager/API.php on line 34
The Piwik installation is located on ‘/users/XXXXXXX/data/websites/myDomain’ on the server and I call the Piwik API from a different domain (roor: ‘/users/XXXXXXX/data/websites/mySecondDomain’) on the same server with the Internal PHP calling example in the wiki.
After the warning messages the result of the API is displayed correctly.
I think the line 32 in /plugins/LanguagesManager/API.php
```
$languages = glob( “lang/*”);
```
points to a wrong folder if the API-call is not executed in the piwik Folder.
Keywords: api,warning,internal
The text was updated successfully, but these errors were encountered: