sure, this is what my last 10 lines of /home/domain.com/public_html/matomo-folder/tmp/logs/matomo.log file show:
ERROR API[2023-10-02 09:31:36 UTC] [23337] Uncaught exception in API: /home/domain.com/public_html/matomo-folder/plugins/LogViewer/Log/Reader/File.php(26): Specified path to log file does not exist: /home/domain.com/public_html/matomo-folder/tmp/logs/matomo.log [Query: ?date=2023-10-02&module=API&format=json&query=&limitPerPage=100&source=file&page=0&method=LogViewer.getLogEntries&segment=&idSite=1&period=day, CLI mode: 0]
ERROR API[2023-10-02 12:10:25 UTC] [26f0b] Uncaught exception in API: You can't access this resource as it requires view access for at least one website. /home/domain.com/public_html/matomo-folder/core/Access.php:756
ERROR API[2023-10-02 12:15:26 UTC] [763d0] Uncaught exception in API: You can't access this resource as it requires view access for at least one website. /home/domain.com/public_html/matomo-folder/core/Access.php:756
ERROR API[2023-10-02 12:20:27 UTC] [46fda] Uncaught exception in API: You can't access this resource as it requires view access for at least one website. /home/domain.com/public_html/matomo-folder/core/Access.php:756
ERROR API[2023-10-02 12:25:28 UTC] [da5a4] Uncaught exception in API: You can't access this resource as it requires view access for at least one website. /home/domain.com/public_html/matomo-folder/core/Access.php:756
ERROR API[2023-10-12 12:56:04 UTC] [54a2a] Uncaught exception in API: /home/domain.com/public_html/matomo-folder/plugins/ProtectTrackID/vendor/hashids/hashids/src/Hashids.php(408): Missing BC Math or GMP extension. [Query: ?date=2023-10-02&module=API&format=json&method=SitesManager.getJavascriptTag&idSite=1&segment=&period=day, CLI mode: 0]
ERROR API[2023-10-12 12:56:06 UTC] [0485c] Uncaught exception in API: /home/domain.com/public_html/matomo-folder/plugins/ProtectTrackID/vendor/hashids/hashids/src/Hashids.php(408): Missing BC Math or GMP extension. [Query: ?date=2023-10-02&module=API&format=json&method=SitesManager.getImageTrackingCode&idSite=1&segment=&period=day, CLI mode: 0]
ERROR API[2023-10-12 12:57:12 UTC] [a929e] Uncaught exception in API: /home/domain.com/public_html/matomo-folder/plugins/ProtectTrackID/vendor/hashids/hashids/src/Hashids.php(408): Missing BC Math or GMP extension. [Query: ?date=2023-10-02&module=API&format=json&method=SitesManager.getImageTrackingCode&idSite=1&segment=&period=day, CLI mode: 0]
ERROR API[2023-10-12 12:57:14 UTC] [e5f8d] Uncaught exception in API: /home/domain.com/public_html/matomo-folder/plugins/ProtectTrackID/vendor/hashids/hashids/src/Hashids.php(408): Missing BC Math or GMP extension. [Query: ?date=2023-10-02&module=API&format=json&method=SitesManager.getJavascriptTag&idSite=1&segment=&period=day, CLI mode: 0]
ERROR API[2023-10-12 13:04:45 UTC] [31a0a] Uncaught exception in API: /home/domain.com/public_html/matomo-folder/plugins/ProtectTrackID/vendor/hashids/hashids/src/Hashids.php(408): Missing BC Math or GMP extension. [Query: ?date=2023-10-02&module=API&format=json&method=SitesManager.getJavascriptTag&idSite=1&segment=&period=day, CLI mode: 0]
I’ve installed the ProtectTrackID plugin https://plugins.matomo.org/ProtectTrackID and wanted to add the JS code on the first website, but seems that I can’t see the full Javascript Tracking Code thus I am now stuck:
I have no live website setup to track on this Matomo domain
and I have ProtectTrackID enabled and not able to copy the Javascript Code:
@heurteph-ei problem sorted, the issue was that I had the wrong PHP version active.
I’ve changed it and installed the required PHP extensions for that PHP version.
Problem fixed : )