You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
PHP Notice: Trying to access array offset on value of type null in <wp-root>/wp-content/plugins/simple-history/loggers/Plugin_ACF.php on line 272
I guess the issue is that it's not a post that's being saved, but I was able to remove the notice by changing from: if ($post_id === $post_logger->lastInsertContext['post_id']) {
to:
if ( isset($post_logger->lastInsertContext['post_id']) && $post_id === $post_logger->lastInsertContext['post_id']) {
I didn't really investigate further, so unsure if this is the best way to fix, but perhaps this will help someone.
The text was updated successfully, but these errors were encountered:
PHP Notice: Trying to access array offset on value of type null in <wp-root>/wp-content/plugins/simple-history/loggers/Plugin_ACF.php on line 272
I guess the issue is that it's not a post that's being saved, but I was able to remove the notice by changing from:
if ($post_id === $post_logger->lastInsertContext['post_id']) {
to:
if ( isset($post_logger->lastInsertContext['post_id']) && $post_id === $post_logger->lastInsertContext['post_id']) {
I didn't really investigate further, so unsure if this is the best way to fix, but perhaps this will help someone.
The text was updated successfully, but these errors were encountered: