getgrav / grav-premium-issues

Official Grav Premium Issues repository to report problems or ask questions regarding the Premium products offered.
https://getgrav.org/premium
7 stars 2 forks source link

[seo-magic] Failed to save entry: foreach() argument must be of type array|object, null given #366

Open drscream opened 1 year ago

drscream commented 1 year ago

Summary

If I enable the seo-magic plugin and try to save a page I receive the following error:

Failed to save entry: foreach() argument must be of type array|object, null given

Details

Description

I've a long running Grav CMS and at some point in time it was no longer possible to save a page (modular or regular page) because of the described error. All in all the content of the page is saved but the SEO plugin is not running a new crawl of the page to show the SEO details page.

If I disable the plugin I do not see the error anymore, so I do expect that the problem is somehow in that plugin.

rhukster commented 1 year ago

Are those the only plugins you have installed?

drscream commented 1 year ago

The following plugins are installed and active:

rhukster commented 1 year ago

I simply cannot get this to replicate on my test instance.

  1. Do you have the same problem on every page? Perhaps you can provide a sample page that is giving you the issue?
  2. What if you create a new page can uyou save that?
  3. Have you tried Default page type? does that work?
  4. Can you enabled full errors in the system configuration? Or at least look in the logs/grav.log and please provide a full copy of the error. It should include a bunch of file references with file numbers. This will tell me exactly where the error is happening.