Developer forum

Forum » Development » Area.Item is null?

Area.Item is null?

Karol Barkowski
Reply

Hi,

I have a legacy project (DW9.14.13) that I'm trying to run and add few backend jobs to it. 

The whole website is already done, deployed and running. So what I did is I downloaded all the files of it and put it in my local project. I also have a copy of the database. So theoretically, I have a 1:1 copy od the website that is deployed, right? Now, I am able to start it and to log to the admin section. Everything works fine there. But whenever I try open any of the content pages, either trough a visual editor or by simply opening the frontend website, I get like a gazillion errors saying that the "Area.Item" is null.

Any tips on where to even start looking for a cause of that? What that Area.Item actually means and does it tell anything to anyone that it is not set properly? Like, maybe there's some obvious setting in admin section that I should check or somethign like that?

Thanks in advanve for any tips.


Replies

 
Nicolai Pedersen Dynamicweb Employee
Nicolai Pedersen
Reply

Hi Karol

Area.Item refers to the item attached to the Website in settings (https://doc.dynamicweb.com/documentation-9/content/content/websites#3216).

Items here: https://doc.dynamicweb.com/documentation-9/content/items/item-types

Usuallly a website is associated with a hostname - it might be setup ion the backend. You might want to remove those in your dev setup.

Websites will sit in the Area table in the database. Check if your area records have ItremType field filled with the same value as your production environment.

 

You must be logged in to post in the forum