The requested website id = 1 (or its property ts_created) couldn't be found


#1

Hi, suddenly which means since today I’m not able to logon, I’m just getting a


The requested website id = 1 (or its property ts_created) couldn't be found

and that’s it, any clue? Just one thing I did was changing the default page from dashboard to a specific tracked site.

best regards + thanks in advance : )


(Matthieu Aubry) #2

please update to 2.0 beta New Piwik 2.0 public beta for testers - Analytics Platform - Matomo


#3

[quote=matt]
please update to 2.0 beta https://piwik.org/blog/2013/10/new-piwik-2-0-public-beta-for-testers/[/quote]

Hi matt,

I upgraded, database has been upgraded too but now I get a similar message:

I did not remove any site before this error appeared. Anyway that’s curious.
Please tell me which table to review, to see what’s the “unexpected website” which
has been found : )

best regards


(Matthieu Aubry) #4

can you please add
debug_print_backtrace();

at line 101 of core/Site.php (before the Throw new exception)
and copy paste here the stack?


#5

(Matthieu Aubry) #6

Can you please try this patch and see if it it helps resolve it? Attempt at fixing bug · matomo-org/matomo@451ceac · GitHub

(or wait for next beta coming asap)


#7

[quote=matt]
Can you please try this patch and see if it it helps resolve it? Attempt at fixing bug · matomo-org/matomo@451ceac · GitHub

(or wait for next beta coming asap)[/quote]

Hi matt,

the patch didn’t solve my problem, so I was checking the table and I found the site which has been deleted was
ID#1, it was simply missing. So I rearranged the order from 1 up, checked the tracking scripts on all sites and now it works again.
But it appears to cause trouble, if page ID#1 is deleted while set as default page.

best regards, Jürgen