filament-forms-tinyeditor icon indicating copy to clipboard operation
filament-forms-tinyeditor copied to clipboard

GET http://www.project.local/admin/blocks/1/ net::ERR_ABORTED 500 (Internal Server Error)

Open elfeffe opened this issue 2 years ago • 7 comments

It tried to make a GET call every time I load the page. Is that normal?

elfeffe avatar Jun 10 '22 15:06 elfeffe

You didn't provide any details and screenshots to check if that issue came from the package or related to something else

mohamedsabil83 avatar Jun 11 '22 13:06 mohamedsabil83

Sorry: My URL is: http://www.commerce.local/admin/blocks/1/edit

This is the screenshot: https://gyazo.com/594868e29bae80a474b79986728a5f4b

My code:

TinyEditor::make('contents')
                    ->showMenuBar()
                    ->columnSpan(4)

elfeffe avatar Jun 11 '22 14:06 elfeffe

It's a local URL not displayed for me. Also, the returned error message was not helpful.

  • Did you follow the installation correctly?
  • If you didn't publish the assets, do it.

mohamedsabil83 avatar Jun 11 '22 15:06 mohamedsabil83

Yes, I installed it correctly, and I even forced the publishing.

The line causing the issue is this one: content_css: this.skin === 'dark' ? 'dark' : '',

That empty value is causing the unneeded GET request

elfeffe avatar Jun 13 '22 18:06 elfeffe

Did you enable dark mode? if not, enable it and check if the issue is gone

mohamedsabil83 avatar Jun 15 '22 10:06 mohamedsabil83

Enable where? Filament or your package? In your package I don't see how to enable it. In Filament it's enabled.

elfeffe avatar Jun 15 '22 11:06 elfeffe

Yes, I mean in Filament. Don't know why the line you mentioned before caused the issue. I tried to re-implement the issue but all works fine.

mohamedsabil83 avatar Jun 15 '22 16:06 mohamedsabil83