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
{{ message }}
Repository navigation
Fatal error on Pages/Posts list: PostModel::load() Argument #1 ($id) must be of type int, null given #1705
Bug description
On the Pages (and likely Posts) admin list screen, the "Future Action" column
(expirationdate) throws a fatal error for every published page, making the
entire list table unrenderable. Draft posts are unaffected — only published
ones trigger it.
Error
PublishPress\Future\Modules\Workflows\Models\PostModel::load(): Argument #1
($id) must be of type int, null given, called in
.../post-expirator/src/Modules/Workflows/Controllers/PostsList.php on line 102
Preceded by:
Warning: Attempt to read property "ID" on null in
.../post-expirator/src/Modules/Workflows/Controllers/PostsList.php on line 102
Environment
PublishPress Future: 4.10.5
WordPress: 7.1
PHP: 8.2.33
Affects: every published page in the site (86/86 tested), 0 drafts affected
Steps to reproduce
On a site with published pages, go to Pages → All Pages, filtered to "Published".
Fatal error occurs while rendering the "Future Action" column for each row.
Expected behavior
The Future Action column should render normally (or show "—") for posts
without a scheduled action, instead of passing a null post ID into PostModel::load().
Workaround
Deactivating the plugin restores the list view. Confirmed via direct testing
that do_action('manage_pages_custom_column', 'expirationdate', $post_id)
throws this error for every published page on the site, while working fine
(no output) for draft posts — suggesting PostsList::managePostsCustomColumn()
at line 102 is not receiving/resolving the post ID correctly in some cases
tied to published status.
Activity
andergmartins commentedon Oct 23, 2026
Thanks for the report @michaelerbe74-alt
fix(workflows): use post ID in Future Action list column