← Back to November Gallery Pro Support
Responsive
Hi there,
System:
- Running: OctobeCMS:
- v3.3.10 November
- Gallery: v2.0.6
- PHP: v8.1
When viewing a page wth the gallery component on it, I get the page error
screen. However, If I set APP_DEBUG
to false
I can see the gallery with no errors on page errors.
Event logs show the following error.
Twig\Sandbox\SecurityNotAllowedMethodError: Calling any method on a "ZenWare\NovemberGallery\Classes\GalleryItem" object is blocked in
"/Users/responsive/Documents/Valet-Sites/tongarirocrossing/plugins/zenware/novembergallery/components/embeddedgallery/default.htm" at line 17. in
/Users/responsive/Documents/Valet-Sites/tongarirocrossing/modules/system/twig/SecurityPolicy.php:181
Line 17 in defult.htm is in the component settings, maxItems = 100
.
#0
/Users/responsive/Documents/Valet-Sites/tongarirocrossing/modules/system/twig/SecurityPolicy.php(123):
System\Twig\SecurityPolicy->checkMethodAllowedAllowlist(Object(ZenWare\NovemberGallery\Classes\GalleryItem), 'getGalleryItemS...')
#1
/Users/responsive/Documents/Valet-Sites/tongarirocrossing/vendor/twig/twig/src/Extension/SandboxExtension.php(84):
System\Twig\SecurityPolicy->checkMethodAllowed(Object(ZenWare\NovemberGallery\Classes\GalleryItem), 'getGalleryItemS...')
#2
/Users/responsive/Documents/Valet-Sites/tongarirocrossing/vendor/twig/twig/src/Extension/CoreExtension.php(1629):
Twig\Extension\SandboxExtension->checkMethodAllowed(Object(ZenWare\NovemberGallery\Classes\GalleryItem), 'getGalleryItemS...', 17,
Object(Twig\Source))
#3
/Users/responsive/Documents/Valet-Sites/tongarirocrossing/modules/cms/twig/GetAttrNode.php(138):
twig_get_attribute(Object(Twig\Environment), Object(Twig\Source), Object(ZenWare\NovemberGallery\Classes\GalleryItem), 'galleryItemSrc', Array, 'any',
false, false, true, 17)
#4
/Users/responsive/Documents/Valet-Sites/tongarirocrossing/storage/cms/twig/0b/0b1275aa6ff0ffff1933de37899a699b.php(73):
Cms\Twig\GetAttrNode::customGetAttribute(Object(Twig\Environment), Object(Twig\Source), Object(ZenWare\NovemberGallery\Classes\GalleryItem),
'galleryItemSrc', Array, 'any', false, false, true, 17)
#5
/Users/responsive/Documents/Valet-Sites/tongarirocrossing/vendor/twig/twig/src/Template.php(394):
TwigTemplate_75de46208a0475d593ddbcd8efbd667a->doDisplay(Array, Array)
#6
/Users/responsive/Documents/Valet-Sites/tongarirocrossing/vendor/twig/twig/src/Template.php(367):
Twig\Template->displayWithErrorHandling(Array, Array)
#7
/Users/responsive/Documents/Valet-Sites/tongarirocrossing/vendor/twig/twig/src/Template.php(379):
Twig\Template->display(Array)
#8
/Users/responsive/Documents/Valet-Sites/tongarirocrossing/vendor/twig/twig/src/TemplateWrapper.php(40):
Twig\Template->render(Array, Array)
#9
/Users/responsive/Documents/Valet-Sites/tongarirocrossing/modules/cms/classes/controller/HasRenderers.php(261):
Twig\TemplateWrapper->render(Array)
#10
/Users/responsive/Documents/Valet-Sites/tongarirocrossing/modules/cms/classes/controller/HasRenderers.php(414):
Cms\Classes\Controller->renderPartial('embeddedGallery...', Array, false)
#11
/Users/responsive/Documents/Valet-Sites/tongarirocrossing/modules/cms/twig/Extension.php(192):
Cms\Classes\Controller->renderComponent('embeddedGallery', Array)
#12
/Users/responsive/Documents/Valet-Sites/tongarirocrossing/storage/cms/twig/60/604c33169be18c84bcc5dbade26a562e.php(40):
Cms\Twig\Extension->componentFunction('embeddedGallery', Array)
#13
/Users/responsive/Documents/Valet-Sites/tongarirocrossing/vendor/twig/twig/src/Template.php(394):
TwigTemplate_920091aaaf7d7f2246b4d781a33af262->doDisplay(Array, Array)
#14
/Users/responsive/Documents/Valet-Sites/tongarirocrossing/vendor/twig/twig/src/Template.php(367):
Twig\Template->displayWithErrorHandling(Array, Array)
#15
/Users/responsive/Documents/Valet-Sites/tongarirocrossing/vendor/twig/twig/src/Template.php(379):
Twig\Template->display(Array)
#16
/Users/responsive/Documents/Valet-Sites/tongarirocrossing/vendor/twig/twig/src/TemplateWrapper.php(40):
Twig\Template->render(Array, Array)
#17
/Users/responsive/Documents/Valet-Sites/tongarirocrossing/modules/cms/classes/controller/HasRenderers.php(261):
Twig\TemplateWrapper->render(Array)
#18
/Users/responsive/Documents/Valet-Sites/tongarirocrossing/plugins/rainlab/pages/classes/Snippet.php(408):
Cms\Classes\Controller->renderPartial('page/masonry-ga...', Array)
#19
/Users/responsive/Documents/Valet-Sites/tongarirocrossing/plugins/rainlab/pages/classes/Page.php(626):
RainLab\Pages\Classes\Snippet::processPageMarkup('gallery.htm', Object(Cms\Classes\Theme), '<figure data-sn...')
#20
/Users/responsive/Documents/Valet-Sites/tongarirocrossing/plugins/rainlab/pages/classes/Controller.php(90):
RainLab\Pages\Classes\Page->getProcessedMarkup()
#21
/Users/responsive/Documents/Valet-Sites/tongarirocrossing/plugins/rainlab/pages/Plugin.php(134):
RainLab\Pages\Classes\Controller->getPageContents(Object(Cms\Classes\Page))
#22
/Users/responsive/Documents/Valet-Sites/tongarirocrossing/vendor/laravel/framework/src/Illuminate/Events/Dispatcher.php(421):
RainLab\Pages\Plugin->RainLab\Pages\{closure}(Object(Cms\Classes\Controller), Object(Cms\Classes\Page))
#23
/Users/responsive/Documents/Valet-Sites/tongarirocrossing/vendor/laravel/framework/src/Illuminate/Events/Dispatcher.php(249):
Illuminate\Events\Dispatcher->Illuminate\Events\{closure}('cms.page.before...', Array)
#24
/Users/responsive/Documents/Valet-Sites/tongarirocrossing/vendor/october/rain/src/Events/PriorityDispatcher.php(94):
Illuminate\Events\Dispatcher->dispatch('cms.page.before...', Array, true)
#25
/Users/responsive/Documents/Valet-Sites/tongarirocrossing/vendor/october/rain/src/Events/PriorityDispatcher.php(61):
October\Rain\Events\PriorityDispatcher->fireEvent('cms.page.before...', Array, true)
#26
/Users/responsive/Documents/Valet-Sites/tongarirocrossing/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(338):
October\Rain\Events\PriorityDispatcher->fire('cms.page.before...', Array, true)
#27
/Users/responsive/Documents/Valet-Sites/tongarirocrossing/modules/system/traits/EventEmitter.php(54):
Illuminate\Support\Facades\Facade::__callStatic('fire', Array)
#28
/Users/responsive/Documents/Valet-Sites/tongarirocrossing/modules/cms/classes/Controller.php(401):
Cms\Classes\Controller->fireSystemEvent('cms.page.before...', Array)
#29
/Users/responsive/Documents/Valet-Sites/tongarirocrossing/modules/cms/classes/Controller.php(219):
Cms\Classes\Controller->runPage(Object(Cms\Classes\Page))
#30
/Users/responsive/Documents/Valet-Sites/tongarirocrossing/modules/cms/classes/CmsController.php(65):
Cms\Classes\Controller->run('gallery')
#31
/Users/responsive/Documents/Valet-Sites/tongarirocrossing/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54):
Cms\Classes\CmsController->run('gallery')
#32
/Users/responsive/Documents/Valet-Sites/tongarirocrossing/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43):
Illuminate\Routing\Controller->callAction('run', Array)
#33
/Users/responsive/Documents/Valet-Sites/tongarirocrossing/vendor/laravel/framework/src/Illuminate/Routing/Route.php(260):
Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(Cms\Classes\CmsController), 'run')
#34
/Users/responsive/Documents/Valet-Sites/tongarirocrossing/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205):
Illuminate\Routing\Route->runController()
#35
/Users/responsive/Documents/Valet-Sites/tongarirocrossing/vendor/laravel/framework/src/Illuminate/Routing/Router.php(798):
Illuminate\Routing\Route->run()
#36
/Users/responsive/Documents/Valet-Sites/tongarirocrossing/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(141):
Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#37
/Users/responsive/Documents/Valet-Sites/tongarirocrossing/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50):
Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38
/Users/responsive/Documents/Valet-Sites/tongarirocrossing/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180):
Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#39
/Users/responsive/Documents/Valet-Sites/tongarirocrossing/vendor/laravel/framework/src/Illuminate/View/Middleware/ShareErrorsFromSession.php(49):
Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#40
/Users/responsive/Documents/Valet-Sites/tongarirocrossing/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180):
Illuminate\View\Middleware\ShareErrorsFromSession->handle(Object(Illuminate\Http\Request), Object(Closure))
#41
/Users/responsive/Documents/Valet-Sites/tongarirocrossing/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121):
Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#42
/Users/responsive/Documents/Valet-Sites/tongarirocrossing/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64):
Illuminate\Session\Middleware\StartSession->handleStatefulRequest(Object(Illuminate\Http\Request), Object(Illuminate\Session\Store), Object(Closure))
#43
/Users/responsive/Documents/Valet-Sites/tongarirocrossing/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180):
Illuminate\Session\Middleware\StartSession->handle(Object(Illuminate\Http\Request), Object(Closure))
#44
/Users/responsive/Documents/Valet-
Sites/tongarirocrossing/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37):
Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#45
/Users/responsive/Documents/Valet-Sites/tongarirocrossing/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180):
Illuminate\Cookie\Middleware\AddQueuedCookiesToResponse->handle(Object(Illuminate\Http\Request), Object(Closure))
#46
/Users/responsive/Documents/Valet-Sites/tongarirocrossing/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67):
Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#47
/Users/responsive/Documents/Valet-Sites/tongarirocrossing/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180):
Illuminate\Cookie\Middleware\EncryptCookies->handle(Object(Illuminate\Http\Request), Object(Closure))
#48
/Users/responsive/Documents/Valet-Sites/tongarirocrossing/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(116):
Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#49
/Users/responsive/Documents/Valet-Sites/tongarirocrossing/vendor/laravel/framework/src/Illuminate/Routing/Router.php(799):
Illuminate\Pipeline\Pipeline->then(Object(Closure))
#50
/Users/responsive/Documents/Valet-Sites/tongarirocrossing/vendor/laravel/framework/src/Illuminate/Routing/Router.php(776):
Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#51
/Users/responsive/Documents/Valet-Sites/tongarirocrossing/vendor/laravel/framework/src/Illuminate/Routing/Router.php(740):
Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#52
/Users/responsive/Documents/Valet-Sites/tongarirocrossing/vendor/october/rain/src/Router/CoreRouter.php(32):
Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#53
/Users/responsive/Documents/Valet-Sites/tongarirocrossing/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(190):
October\Rain\Router\CoreRouter->dispatch(Object(Illuminate\Http\Request))
#54
/Users/responsive/Documents/Valet-Sites/tongarirocrossing/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(141):
Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#55
/Users/responsive/Documents/Valet-
Sites/tongarirocrossing/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(86):
Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#56
/Users/responsive/Documents/Valet-Sites/tongarirocrossing/vendor/october/rain/src/Foundation/Http/Middleware/CheckForMaintenanceMode.php(23):
Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#57
/Users/responsive/Documents/Valet-Sites/tongarirocrossing/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180):
October\Rain\Foundation\Http\Middleware\CheckForMaintenanceMode->handle(Object(Illuminate\Http\Request), Object(Closure))
#58
/Users/responsive/Documents/Valet-Sites/tongarirocrossing/plugins/vdlp/redirect/classes/RedirectMiddleware.php(78):
Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#59
/Users/responsive/Documents/Valet-Sites/tongarirocrossing/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180):
Vdlp\Redirect\Classes\RedirectMiddleware->handle(Object(Illuminate\Http\Request), Object(Closure))
#60
/Users/responsive/Documents/Valet-Sites/tongarirocrossing/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(116):
Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#61
/Users/responsive/Documents/Valet-Sites/tongarirocrossing/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(165):
Illuminate\Pipeline\Pipeline->then(Object(Closure))
#62
/Users/responsive/Documents/Valet-Sites/tongarirocrossing/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(134):
Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#63
/Users/responsive/Documents/Valet-Sites/tongarirocrossing/index.php(43):
Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#64
/Users/responsive/.composer/vendor/laravel/valet/server.php(235):
require('/Users/responsi...')
#65
{main}
Any ideas?
Cheers,
Cy
laszlo.zenware.io
Hi Responsive,
Give me a few days to investigate. Can you confirm if you purchased a license, or did you install the plugin manually?
1-2 of 2