In case the static tree array is empty and rebuild is not forced cached tree is retrieved from cache table. However there is no fallback for cases where the cache table is empty hence not returning anything.

Comments

voxpelli’s picture

If the static $tree variable is empty the script tries to initialize it by fetching the data from the cache table.

If there is no data cached it realizes that and calculates the data and caches it.

What fallback is it that is missing there? Is it a fallback for when the calculated data is empty? Are there ever any situation where we don't have at least one domain? We could add a fallback so that the data isn't recalculated every time it's accessed if there are no domains or no valid domains - but does that situation ever exist? The primary domain will always exist and be valid - right?

nonsie’s picture

Status: Active » Closed (fixed)

You are correct - my issue was caused by corrupt db tables.