Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error "Invalid or Empty Node passed to getItem constructor." on "Waiting for Me" page if an unapproved page is deleted #11818

Open
hissy opened this issue Dec 2, 2023 · 0 comments · May be fixed by #11819
Labels
Type:Bug Existing functionality not performing as expected.

Comments

@hissy
Copy link
Contributor

hissy commented Dec 2, 2023

Affected Version of Concrete CMS

9.x

Description

Error "Invalid or Empty Node passed to getItem constructor." on "Waiting for Me" page if an unapproved page is deleted.

Stash\Exception\InvalidArgumentException thrown with message "Invalid or Empty Node passed to getItem constructor."

Stacktrace:
#49 Stash\Exception\InvalidArgumentException in /path/to/concrete/vendor/tedivm/stash/src/Stash/Pool.php:136
#48 Stash\Pool:getItem in /path/to/concrete/src/Cache/Cache.php:178
#47 Concrete\Core\Cache\Cache:getItem in /path/to/concrete/src/Page/Collection/Version/Version.php:251
#46 Concrete\Core\Page\Collection\Version\Version:get in /path/to/concrete/src/Workflow/Request/ApprovePageRequest.php:182
#45 Concrete\Core\Workflow\Request\ApprovePageRequest:getRequesterComment in /path/to/concrete/src/Workflow/BasicWorkflow.php:45
#44 Concrete\Core\Workflow\BasicWorkflow:getWorkflowProgressCurrentComment in /path/to/concrete/src/Notification/View/WorkflowProgressListView.php:72
#43 Concrete\Core\Notification\View\WorkflowProgressListView:getInitiatorComment in /path/to/concrete/src/Notification/View/StandardListView.php:83
#42 Concrete\Core\Notification\View\StandardListView:renderInitiatorCommentDescription in /path/to/concrete/elements/notification/list/details.php:21
#41 include in /path/to/concrete/src/View/AbstractView.php:180
#40 Concrete\Core\View\AbstractView:renderViewContents in /path/to/concrete/src/View/AbstractView.php:164
#39 Concrete\Core\View\AbstractView:render in /path/to/concrete/src/Controller/ElementController.php:99
#38 Concrete\Core\Controller\ElementController:render in /path/to/concrete/src/Notification/View/StandardListView.php:34
#37 Concrete\Core\Notification\View\StandardListView:renderDetails in /path/to/concrete/blocks/desktop_waiting_for_me/view.php:54
#36 include in /path/to/concrete/src/Block/View/BlockView.php:267
#35 Concrete\Core\Block\View\BlockView:renderViewContents in /path/to/concrete/src/View/AbstractView.php:164
#34 Concrete\Core\View\AbstractView:render in /path/to/concrete/src/Area/Area.php:857
#33 Concrete\Core\Area\Area:display in /path/to/concrete/src/Area/Layout/Column.php:210
#32 Concrete\Core\Area\Layout\Column:display in /path/to/concrete/src/Area/Layout/Column.php:168
#31 Concrete\Core\Area\Layout\Column:getContents in /path/to/concrete/src/Area/Layout/ThemeGridColumn.php:153
#30 Concrete\Core\Area\Layout\ThemeGridColumn:getColumnHtmlObject in /path/to/concrete/blocks/core_area_layout/view.php:27
#29 include in /path/to/concrete/src/Block/View/BlockView.php:267
#28 Concrete\Core\Block\View\BlockView:renderViewContents in /path/to/concrete/src/View/AbstractView.php:164
#27 Concrete\Core\View\AbstractView:render in /path/to/concrete/src/Area/Area.php:857
#26 Concrete\Core\Area\Area:display in /path/to/concrete/themes/dashboard/desktop.php:14
#25 include in /path/to/concrete/src/View/View.php:339
#24 Concrete\Core\View\View:renderTemplate in /path/to/concrete/src/View/View.php:301
#23 Concrete\Core\View\View:renderViewContents in /path/to/concrete/src/View/AbstractView.php:164
#22 Concrete\Core\View\AbstractView:render in /path/to/concrete/src/Http/ResponseFactory.php:147
#21 Concrete\Core\Http\ResponseFactory:view in /path/to/concrete/src/Http/ResponseFactory.php:220
#20 Concrete\Core\Http\ResponseFactory:controller in /path/to/concrete/src/Http/ResponseFactory.php:372
#19 Concrete\Core\Http\ResponseFactory:collection in /path/to/concrete/src/Http/DefaultDispatcher.php:132
#18 Concrete\Core\Http\DefaultDispatcher:handleDispatch in /path/to/concrete/src/Http/DefaultDispatcher.php:60
#17 Concrete\Core\Http\DefaultDispatcher:dispatch in /path/to/concrete/src/Http/Middleware/DispatcherDelegate.php:39
#16 Concrete\Core\Http\Middleware\DispatcherDelegate:next in /path/to/concrete/src/Http/Middleware/FrameOptionsMiddleware.php:39
#15 Concrete\Core\Http\Middleware\FrameOptionsMiddleware:process in /path/to/concrete/src/Http/Middleware/MiddlewareDelegate.php:50
#14 Concrete\Core\Http\Middleware\MiddlewareDelegate:next in /path/to/concrete/src/Http/Middleware/StrictTransportSecurityMiddleware.php:36
#13 Concrete\Core\Http\Middleware\StrictTransportSecurityMiddleware:process in /path/to/concrete/src/Http/Middleware/MiddlewareDelegate.php:50
#12 Concrete\Core\Http\Middleware\MiddlewareDelegate:next in /path/to/concrete/src/Http/Middleware/ContentSecurityPolicyMiddleware.php:36
#11 Concrete\Core\Http\Middleware\ContentSecurityPolicyMiddleware:process in /path/to/concrete/src/Http/Middleware/MiddlewareDelegate.php:50
#10 Concrete\Core\Http\Middleware\MiddlewareDelegate:next in /path/to/concrete/src/Http/Middleware/CookieMiddleware.php:35
#9 Concrete\Core\Http\Middleware\CookieMiddleware:process in /path/to/concrete/src/Http/Middleware/MiddlewareDelegate.php:50
#8 Concrete\Core\Http\Middleware\MiddlewareDelegate:next in /path/to/concrete/src/Http/Middleware/ApplicationMiddleware.php:29
#7 Concrete\Core\Http\Middleware\ApplicationMiddleware:process in /path/to/concrete/src/Http/Middleware/MiddlewareDelegate.php:50
#6 Concrete\Core\Http\Middleware\MiddlewareDelegate:next in /path/to/concrete/src/Http/Middleware/MiddlewareStack.php:86
#5 Concrete\Core\Http\Middleware\MiddlewareStack:process in /path/to/concrete/src/Http/DefaultServer.php:85
#4 Concrete\Core\Http\DefaultServer:handleRequest in /path/to/concrete/src/Foundation/Runtime/Run/DefaultRunner.php:128
#3 Concrete\Core\Foundation\Runtime\Run\DefaultRunner:run in /path/to/concrete/src/Foundation/Runtime/DefaultRuntime.php:102
#2 Concrete\Core\Foundation\Runtime\DefaultRuntime:run in /path/to/concrete/dispatcher.php:45
#1 require in /path/to/index.php:2

How to reproduce

  1. Sign in as a user who does not have permission to approve pages.
  2. Submit a page to a workflow.
  3. Sign in as a user who can approve the page.
  4. Delete that page.
  5. Go to the Waiting for Me page.

Possible Solution

No response

Additional Context

No response

@hissy hissy added the Type:Bug Existing functionality not performing as expected. label Dec 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type:Bug Existing functionality not performing as expected.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant