marghoobsuleman / hashtagcms

HashtagCms, Use it as Headless CMS or Bundled, API enabled, Admin Panel, multisite, multi-tenant, multiplatform, multilingual with endless possibilities. The Most powerful, fast, user-friendly and secured platform. Made with PHP Laravel Framework.
https://www.hashtagcms.org
MIT License
18 stars 4 forks source link

getThemeInfo()--->HashtagCms\Models\Theme, null returned #20

Closed DeRaja closed 2 years ago

DeRaja commented 2 years ago

Hello,

In the portal, I have done the following:

Thereafter, I got following error in BE/FE:

1. TypeError MarghoobSuleman\HashtagCms\Core\Main\InfoLoader::getThemeInfo(): Return value must be of type MarghoobSuleman\HashtagCms\Models\Theme, null returned https://domain.com/login

2. MarghoobSuleman\HashtagCms\Core\Main\InfoLoader::getThemeInfo vendor/marghoobsuleman/hashtagcms/src/Core/Main/InfoLoader.php:403

3. I observe the following:

In the table sites, I have two entries for Site1 & Site2 with the default language land_id=1 as well as theme_id=1 and theme_id=5. There is no data lang_id=5 related to Site2.

I created two entries by copy of both existing entries (as above) with identical data and changing the lang_id.

Now there are two entries for lang_id=5 for both the sites. The theme_id and site_id is also there.

The above error continues. Any further ideas what I could do?

marghoobsuleman commented 2 years ago

Okay, My bad, I've not shared the document for creating a new site. There are few steps to create a new site and everything. You don't have to do anything manually. Let me write and get back to you.

DeRaja commented 2 years ago

Now this issue should be closed.

Multisite works like charm!

HashtagCMS is definitely one of the best CMS in the world, looking at the logic you have pumped into. Your work is just amazing, which this world has yet to discover...