Error: Call to a member function has() on null - in packages
Permalink
Hello, i have page "packages/packagename/elements/addpagetositemap.php".
In page is this only Code:
In controller.php package is this:
This error: "Call to a member function has() on null" is only Concrete 5.5.1, old version 8.4.2. works correctly.
Line 41 in concrete/src/Http/Middleware/CookieMiddleware.php
Stack frames:
In page is this only Code:
In controller.php package is this:
public function on_start() { Route::register('/addpagetositemap', function() { View::element('addpagetositemap', null, 'packagename'); }); }
This error: "Call to a member function has() on null" is only Concrete 5.5.1, old version 8.4.2. works correctly.
Line 41 in concrete/src/Http/Middleware/CookieMiddleware.php
public function process(Request $request, DelegateInterface $frame) { $response = $frame->next($request); 41. > if ($response->headers->has('X-Frame-Options') === false) { $x_frame_options = $this->config->get('concrete.security.misc.x_frame_options'); if ($this->stringValidator->notempty($x_frame_options)) { $response->headers->set('X-Frame-Options', $x_frame_options); } } return $response; } }
Stack frames:
Error … /src/Http/Middleware/FrameOptionsMiddleware.php 41 Concrete\Core\Http\Middleware\FrameOptionsMiddleware process … /src/Http/Middleware/MiddlewareDelegate.php 50 Concrete \Core\Http\Middleware\MiddlewareDelegate next … /src/Http/Middleware/CookieMiddleware.php 35
Viewing 15 lines of 57 lines. View entire code block.
Sorry, the version where it appeared is 8.5.1. not 5.5.1
I'm having this problem as well.
I have a fresh install of Concrete5, with no plugins or custom themes.
I enable Google authentication and try to log in.
After I get redirected from google back to Concrete5 I see this error.
I have a fresh install of Concrete5, with no plugins or custom themes.
I enable Google authentication and try to log in.
After I get redirected from google back to Concrete5 I see this error.