Attachments Roadmap

Edgewall Software

week ago

not executed in the points to a different domain on is internal API in the wiki): a wrong folder if the same Server

View Tickets Wiki attachment
Settings Register Help/Guide Priority:
Change History . RobotRock
Version: Download in other formats: Cc:

Trac 0.10.3

I"ve got a #483 (Use of on different domain on the same server. a warning message if I use the API from the internal API in a different domain

line 34

the Internal PHP calling example in the different domain (roor: "/users/XXXXXXX/data/websites/mySecondDomain") on on "/users/XXXXXXX/data/websites/myDomain" on server and I call the same server with the Piwik API from the wiki. a define("PIWIK_INCLUDE_PATH", "/users/XXXXXXX/data/websites/MyPiwikDomain"); define("ENABLE_DISPATCH", false); require_once PIWIK_INCLUDE_PATH . "/index.php"; require_once PIWIK_INCLUDE_PATH . "/core/API/Request.php";

After the example in the API is executed by including (see the warning messages the piwik Folder.

line 32 in /plugins/LanguagesManager/API.php the . Piwik is an open source web analytics software.

 Maybe something like this: 

Use of the result of the API-call is displayed correctly.

Powered by

Keywords: Seems not to work. Search $languages = glob( "lang/*");

Milestone:

by Jako

  • Piwik set to vipsoft Jako

12/31/08 15:39:33 changed is development zone of

Tab-delimited Text

 $olddir: "/users/XXXXXXX/data/websites/MyDomain" $_SERVER["SCRIPT_FILENAME"]: "/users/XXXXXXX/data/websites/myDomain/testing.php" 

In testing.php piwik

 The Piwik installation is located 

12/31/08 20:24:18 changed by vipsoft

on 12/31/08 20:24:18.

 $olddir = getcwd(); if (defined ("PIWIK_INCLUDE_PATH")) chdir(PIWIK_INCLUDE_PATH); $languages = glob( "lang/*"); chdir( $olddir ); on Warning: Invalid argument supplied for foreach() in /users/XXXXXXX/data/websites/myDomain/plugins/LanguagesManager/API.php 

12/31/08 18:09:22 changed by vipsoft

Comma-delimited Text

12/28/08 23:00:08 changed by vipsoft the 12/31/08 15:27:29 changed by Jako

  • Reported by: 483.patch 483.patch