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

Fatal error: cannot get the main URL of this site: invalid site ID #6135

Closed
scholtzmi opened this issue Sep 5, 2014 · 9 comments
Closed
Labels
Bug For errors / faults / flaws / inconsistencies etc. worksforme The issue cannot be reproduced and things work as intended.

Comments

@scholtzmi
Copy link

Dear ladies and gentlemen,

after updating PIWIK to version 2.6.1 the import function for logs files ist not longer running.
My input is the following:

python import_logs.py --url=http:// access.log --idsite=3 --login= --password=

And the result:

Fatal error: cannot get the main URL of this site: invalid site ID: 3

Could you please help me to solve that problem? Thanks.

Greetings, Michael

@sgiehl
Copy link
Member

sgiehl commented Sep 5, 2014

Do you have an site with the ID 3 in your Piwik? How is it configured? Are the urls set?

@scholtzmi
Copy link
Author

Hello sgiehl,

yes, I configured a site with the ID 3. In the configuration there is also a URL configured.
For months I used that configuration for an other project. After the update, that other project is also running no more.

Greetings from Michael

@sgiehl
Copy link
Member

sgiehl commented Sep 5, 2014

Have you tried it without --login and --password option? Maybe the given user does not have the correct right for that site.

@scholtzmi
Copy link
Author

Yes, I tried that this way. But than the system reply with the following error message:

Fatal error: php <my directory>/piwik/misc/cron/updatetoken.php failed with error: .
Reponse code was: 255. You can alternatively run the importer using the --login and --password option

Thats why I used the --login and --password option

@sgiehl
Copy link
Member

sgiehl commented Sep 5, 2014

I guess that one is the "real" error. Could you try running php <my directory>/piwik/misc/cron/updatetoken.php on command line and have a look at the error log what kind of error occurs?

@scholtzmi
Copy link
Author

The result is:

X-Powered-By: PHP/4.4.9
Content-type: text/html


Parse error: syntax error, unexpected T_STRING in /kunden/216743_55239/testing/piwik/misc/cron/updatetoken.php on line 12

@sgiehl
Copy link
Member

sgiehl commented Sep 5, 2014

You are running Piwik with PHP 4.4.9? Piwik 2.X needs 5.3.2 or higher.

@scholtzmi
Copy link
Author

Thanks. I will contact my service provider and post a feedback of the solution here. Many thanks for your help.

@mattab mattab added the worksforme The issue cannot be reproduced and things work as intended. label Sep 8, 2014
@mattab
Copy link
Member

mattab commented Sep 8, 2014

Thanks for report & @sgiehl for your replies!

@mattab mattab closed this as completed Sep 8, 2014
@mattab mattab added the Bug For errors / faults / flaws / inconsistencies etc. label Sep 20, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug For errors / faults / flaws / inconsistencies etc. worksforme The issue cannot be reproduced and things work as intended.
Projects
None yet
Development

No branches or pull requests

3 participants