clickstorm / cs_seo

[clickstorm] SEO
Other
33 stars 49 forks source link

PHP Warning ModifyPageLayoutContentEventListener.php line 142 #322

Closed opi99 closed 8 months ago

opi99 commented 10 months ago

If you select the Root Page in the PageTree (pid = 0), the pageInfo couldn't be loaded. Which leads to following error:

PHP Warning: Undefined array key "doktype" in /var/www/html/typo3conf/ext/cs_seo/Classes/EventListener/ModifyPageLayoutContentEventListener.php line 142

mhirdes commented 9 months ago

Where do you open the page info for pid=0?

opi99 commented 9 months ago

The pageInfo is the object which is tried to be loaded. That's nothing which you open.

Anyway, I see, the core do not call (anymore) the event on pid = 0, so this do not happen there, will adapt this in TV+ then (but IMHO should be fixed here).

mhirdes commented 9 months ago

Would it be enough to ask at line 142 if isset ($this->pageInfo['doktype']) or are there furthur errors?

opi99 commented 9 months ago

Yes, this should be enough

mhirdes commented 9 months ago

A fix is available. Does it work for you?

opi99 commented 8 months ago

Yes, thanks