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

page_langs: Error Call to a member function lang() on null #19

Closed DeRaja closed 2 years ago

DeRaja commented 2 years ago

Hello,

After adding a page, I got following error:

1) Error Call to a member function lang() on null https://domain.com/admin/page/store

MarghoobSuleman\HashtagCms\Http\Controllers\Admin\BaseAdminController::saveAllData vendor/marghoobsuleman/hashtagcms/src/Core/Traits/Admin/AdminCrud.php:307

In the Debug Query, it showed (copied here, only relevant): select langs.*, lang_site.site_id as pivot_site_id, lang_site.lang_id as pivot_lang_id from langs inner join lang_site on langs.id = lang_site.lang_id where lang_site.site_id in (1)

Connection name mysql

2) ErrorException Undefined array key "title" (View: /xxx/public_html/hashtagcms/vendor/marghoobsuleman/hashtagcms/resources/views/be/default/page/addedit.blade.php)

3)

I have manually added (phpmyadmin) a record in the table page_langs manually. It worked and does not crash any more. Thereafter, I have not added any further page.

marghoobsuleman commented 2 years ago

Multisite has some issues. I am working on it. I will fix it by the weekend.

DeRaja commented 2 years ago

Hello Marghoob,

After understanding the entire logic of many areas you have poured into your HashtagCMS, I must say that it is well designed. Mentioning again, HashtagCMS is an excellent CMS on Laravel.

I suggest that you release the HashtagCMS with multi language by default. I can offer translation in German and CMS docs in English, if you want.

Looking forward to your next version.

marghoobsuleman commented 2 years ago

Hi @ArcDee Could you please check now?

How to create multisite instruction. https://youtu.be/5YhA0GKRKDg

marghoobsuleman commented 2 years ago

Sure Thanks :). Please provide translations. I'll try to make that multilingual.

Hello Marghoob,

After understanding the entire logic of many areas you have poured into your HashtagCMS, I must say that it is well designed. Mentioning again, HashtagCMS is an excellent CMS on Laravel.

I suggest that you release the HashtagCMS with multi language by default. I can offer translation in German and CMS docs in English, if you want.

Looking forward to your next version.

DeRaja commented 2 years ago

Hello Marghoob,

May I suggest that you offer all configuration as follows:

1) All configurations to include TWO SITES. 2) All configuration to include TWO LANGUAGES in English and German with English content. 3) A language chooser on the frontend.

Thereafter, I will seed it and insert only the domain names (without http/https). I believe that there is a difference in you using localhost and me on the internet. The moment I have a ready-to-go installation, the difference will immediately come out, when there are two languages.

marghoobsuleman commented 2 years ago

Thank you @ArcDee for taking the time to write and suggestions and going through all the flow. I really appreciate it. Let me come back with an easy solution for this. Thank you so much again.