passionweb-manuel-schnabel / ai-seo-helper

Generates SEO metadata based on content using AI. Currently several metadata for pages and articles of EXT:news can be generated using an additional button next to the corresponding input fields.
9 stars 5 forks source link

Unexpected error [object Object] on root page. #11

Closed Pravin0711 closed 5 months ago

Pravin0711 commented 5 months ago

Hello @passionweb-manuel-schnabel

I am using typo3 version 11.5 and ai_seo_helper version 0.6.1. All thing work fine with all sub pages. i face issue on root page. it's work fine with defult language. But on other languages i will get error Unexpected error [object Object].

I have debug your code and seen site is not founded(get NULL value) for other langages in class ContentService.php line 225. I think it's happening due to take rootPageID 0.

Please check it and provide your feedback.

passionweb-manuel-schnabel commented 5 months ago

Hi @Pravin0711 thx for your bug report. This is really an interesting behaviour. I've also analysed this and commit a fix for that. It would be great if you update the extension to the main branch and test the fix. Would love to hear from you again if this fix works. Greetings Manu

Pravin0711 commented 5 months ago

Hello @passionweb-manuel-schnabel

Thanks for quick update ans fix it. Yes it's working fine now with another languages.

One more Question: some time i get resulted in a 404 Not Found response is there i missing any extension configuration?

passionweb-manuel-schnabel commented 5 months ago

Hi,

sometimes the preview content cannot be created because of a trailing slash (e.g. on translated root pages). But I have now inserted a fallback for this.

In addition, the page must always be active, otherwise the preview content generation will not work

I will close this issue with the next release 0.6.2.