Error
Call to undefined method stdClass::setPlain() Error thrown with message "Call to undefined method stdClass::setPlain()" Stacktrace: #11 Error in /var/www/e012/plugin/de.masstisch.engines/Configurator/Tpl.php:468 #10 MTEngine_Configurator_Tpl:setActualId in /var/www/e012/plugin/de.masstisch.engines/Configurator/Tpl.php:607 #9 MTEngine_Configurator_Tpl:_findActualArticle in /var/www/e012/plugin/de.masstisch.engines/Configurator/Tpl.php:515 #8 MTEngine_Configurator_Tpl:findActualArticle in /var/www/e012/plugin/de.masstisch.engines/Configurator/Bett.php:48 #7 MTEngine_Configurator_Bett:init in /var/www/e012/plugin/de.masstisch.engines/Configurator/Tpl.php:119 #6 MTEngine_Configurator_Tpl:__construct in /var/www/e012/src/fueg/Ordering.php:540 #5 FG\Ordering:getConfigurator in /var/www/e012/vendor/symfony/http-kernel/HttpKernel.php:151 #4 Symfony\Component\HttpKernel\HttpKernel:handleRaw in /var/www/e012/vendor/symfony/http-kernel/HttpKernel.php:68 #3 Symfony\Component\HttpKernel\HttpKernel:handle in /var/www/e012/vendor/silex/silex/src/Silex/Application.php:496 #2 Silex\Application:handle in /var/www/e012/vendor/silex/silex/src/Silex/Application.php:477 #1 Silex\Application:run in /var/www/e012/web/index_dev.php:15 #0 require_once in /var/www/e012/web/index.php:3
Stack frames (12)
11
Error
/
plugin
/
de.masstisch.engines
/
Configurator
/
Tpl.php
468
10
MTEngine_Configurator_Tpl
setActualId
/
plugin
/
de.masstisch.engines
/
Configurator
/
Tpl.php
607
9
MTEngine_Configurator_Tpl
_findActualArticle
/
plugin
/
de.masstisch.engines
/
Configurator
/
Tpl.php
515
8
MTEngine_Configurator_Tpl
findActualArticle
/
plugin
/
de.masstisch.engines
/
Configurator
/
Bett.php
48
7
MTEngine_Configurator_Bett
init
/
plugin
/
de.masstisch.engines
/
Configurator
/
Tpl.php
119
6
MTEngine_Configurator_Tpl
__construct
/
src
/
fueg
/
Ordering.php
540
5
FG
\
Ordering
getConfigurator
/
vendor
/
symfony
/
http-kernel
/
HttpKernel.php
151
4
Symfony
\
Component
\
HttpKernel
\
HttpKernel
handleRaw
/
vendor
/
symfony
/
http-kernel
/
HttpKernel.php
68
3
Symfony
\
Component
\
HttpKernel
\
HttpKernel
handle
/
vendor
/
silex
/
silex
/
src
/
Silex
/
Application.php
496
2
Silex
\
Application
handle
/
vendor
/
silex
/
silex
/
src
/
Silex
/
Application.php
477
1
Silex
\
Application
run
/
web
/
index_dev.php
15
0
require_once
/
web
/
index.php
3
/
var
/
www
/
e012
/
plugin
/
de.masstisch.engines
/
Configurator
/
Tpl.php
        if (FG_String::isCrawler()) {
            return false;
        }
 
        if (FG_Page::MODE_DIRECT_EDIT == FG_Page::$cfgMode) {
            return false;
        }
 
        return true;
    }
 
    protected function setActualId($ident)
    {
        $this->lastId($this->id($this->actualArticleId = $ident));
 
        if (!empty($_REQUEST['p'])) {
            $item          = MTPlugin_Configuration::getInstance()->getItem($this->actualArticleId);
            $p             = FG_Item::createFromKeywords($_REQUEST['p']);
            $_REQUEST['p'] = null;
            $item->setPlain($p->p);
            if ($this->shallRelocate()) {
                return $this->reLocate();
            }
        }
 
        //        FG_Log::log('$_REQUEST[ident] :: ' . (empty($_REQUEST['ident']) ? 'NULL' : $_REQUEST['ident']));
        //        FG_Log::log('Ident: ' . $ident);
        if (!empty($_REQUEST['ident']) or !empty($_GET['ident']) or !empty($_REQUEST['p'])) {
            $_REQUEST['ident'] = null;
            $_GET['ident']     = null;
            if ($this->shallRelocate()) {
                return $this->reLocate();
            }
        }
    }
 
    protected function reLocate()
    {
        $url = FG_Page_SiteNav::substituteOutgoingEngine($this->actArt_engine);
 
Arguments
  1. "Call to undefined method stdClass::setPlain()"
    
/
var
/
www
/
e012
/
plugin
/
de.masstisch.engines
/
Configurator
/
Tpl.php
                    $sessItem = FG_Cart::getInstance()->getItem(FG_Item::muid($item));
                    if ($sessItem->isFlagged(FG_SessionCart::PROP_REPLACED)) {
                        $replacedBy = $sessItem->getValue(FG_SessionCart::PROP_REPLACED);
                        throw new MTEngine_Configurator_Tpl_AlternateIdent($sessItem->getValue(FG_SessionCart::PROP_REPLACED));
                    } elseif (FG_Page::MODE_STD == FG_Page::$cfgMode and $sessItem->isFlagged(FG_SessionCart::PROP_INBASKET) and !empty($_REQUEST['ident'])) {
                        $this->cloneArticle($item);
                    } elseif ($sessItem->isFlagged(FG_SessionCart::PROP_INBASKET) and empty($_REQUEST['ident'])) {
                        $this->actualArticleId = 'new';
                        $this->createArticle();
                    } elseif (!$sessItem->isFlagged(FG_SessionCart::PROP_INBASKET) and !$sessItem->isFlagged(FG_SessionCart::PROP_CLONEOF)) {
                        FG_Log::log('!inBasket and !Clone');
                    } elseif (FG_SessionCart::isClone($sessItem)) {
                        FG_Log::log('Is A Clone');
                    }
                } else {
                    FG_Log::log('Cart does not have it');
                }
            }
 
            $r = $this->setActualId(FG_Item::muid($item));
            if (is_object($r)) {
                return $r;
            }
 
            if (true === isset($_REQUEST['Modell']) and method_exists($item, 'changeModell')) {
                $item->changeModell(ucfirst(strtolower($_REQUEST['Modell'])));
            }
 
            return $item;
        } catch (MTEngine_Configurator_Tpl_AlternateIdent $e) {
            $_REQUEST['ident'] = $this->actualArticleId = $e->getMessage();
 
            return $this->findActualArticle($sessAppend);
        }
    }
 
    public function fetch()
    {
        //        if (self::$showDelivery) {
        //            $Lieferung = MTPlugin_Configuration::getInstance()->getItem('Lieferung');
Arguments
  1. "66067b68002b9"
    
/
var
/
www
/
e012
/
plugin
/
de.masstisch.engines
/
Configurator
/
Tpl.php
            return false;
        }
        if (method_exists($this, 'qualifyForActualArticle')) {
            if (!$this->qualifyForActualArticle($item)) {
                return false;
            }
        }
 
        return true;
    }
 
    protected function findActualArticle()
    {
        if (!is_null($this->useItem)) {
            $this->actualArticleId = FG_Item::muid($this->useItem);
 
            return $this->useItem;
        }
 
        $item              = $this->_findActualArticle();
        $Class             = $item->Class;
        $tmp               = new $Class($item);
        $tmp->Ident        = FG_Item::muid($item);
        $tmp->ForeignIdent = $item->ForeignIdent;
        $tmp->setPlain($item);
        $this->actualItems[] = $tmp;
 
        return $tmp;
    }
 
    private function _findActualArticle()
    {
        global $app;
 
        try {
            if (!empty($_REQUEST['ident']) and $this->session->has('child_map/' . $_REQUEST['ident'])) {
                throw new MTEngine_Configurator_Tpl_AlternateIdent($this->session->get('child_map/' . $_REQUEST['ident']));
            }
 
            $Config                = MTPlugin_Configuration::getInstance();
/
var
/
www
/
e012
/
plugin
/
de.masstisch.engines
/
Configurator
/
Bett.php
    /**
     * @var MTData_Lattenrost
     */
    private $articleFrame = null;
 
    private $keepBackVisible      = false;
    protected $runModels_withBase = false;
 
    public function fetchExtra()
    {
    }
 
    public function init()
    {
        parent::init();
        $this->Portlets->SetColumns(2);
        $Config                 = MTPlugin_Configuration::getInstance();
        $this->actArt_className = MTData_Bett::class;
        $this->actArt_engine    = 'configurator.bett';
        $this->article          = $this->findActualArticle();
 
        if (!empty($_REQUEST['loadPid'])) {
            $plain = MT_ItemProperties::extractPlain($this->fetchPosition($_REQUEST['loadPid']));
            $this->article->setPlain($plain);
            $this->article->checkRequest();
        }
 
        $identBackrest = $this->actualArticleId . ($identAppendBackrest = '_cushion');
        $identPads     = $this->actualArticleId . ($identAppendPads = '_pads');
        $identMattress = $this->actualArticleId . ($identAppendMattress = '_mattress');
        $identFrame    = $this->actualArticleId . ($identAppendFrame = '_frame');
 
        $this->articleBackrest = $this->grabChild($this->article, 'MTData_Rueckenlehne', $identAppendBackrest);
        $this->articleMatress  = $this->grabChild($this->article, 'MTData_Matratze', $identAppendMattress);
        $this->articleFrame    = $this->grabChild($this->article, 'MTData_Lattenrost', $identAppendFrame);
 
        Configurate::wood($this->article);
 
        if (!empty($_REQUEST['Modell'])) {
            $this->article->changeModell(ucfirst(strtolower($_REQUEST['Modell'])));
/
var
/
www
/
e012
/
plugin
/
de.masstisch.engines
/
Configurator
/
Tpl.php
        $db  = MT_DB_COMMON;
 
        return FG_DB::getObject("
                SELECT  *
                FROM    {$db}positionen
                WHERE id = $pid
             ");
    }
 
    protected function getImgNum()
    {
        return $this->imgNum++;
    }
 
    public function __construct(\Silex\Application $app, $item = null)
    {
        $this->app     = $app;
        $this->useItem = $item;
        parent::__construct();
        $this->init($item);
    }
 
    public function __toString()
    {
        $o = [];
        foreach ($this->setUpPortlets() as $plt) {
            if (is_string($plt)) {
                array_push($o, $plt);
            } elseif (method_exists($plt, '__toString')) {
                array_push($o, $plt->__toString());
            }
        }
 
        return implode(' ', $o);
    }
 
    public function init()
    {
        $this->session = $GLOBALS['app']['session'];
        $match         = [];
Arguments
  1. null
    
/
var
/
www
/
e012
/
src
/
fueg
/
Ordering.php
                    $MI = new MC_MoebelInitializer('from_nav', $_REQUEST, $MDU);
                    $MI->buildAktKonfig();
                    $MI->buildFromNav();
                }
 
                if (MC_SessionRegistry::getInstance()->aktMoebelUId) {
                    //                $_REQUEST['moebel_uid'] = MC_SessionRegistry::getInstance()->aktMoebelUId;
                }
 
                ob_start();
                include 'mc/html/konfigurator/moebel/step1.php';
                MC_MasterCart::getInstance()->pushToSessionCart();
 
                return $this->app['twig']->render('konfigurator/tisch.twig', [
                            'content' => ob_get_clean(),
                ]);
 
            default:
                $class = 'MTEngine_Configurator_' . $article;
                $eng   = new $class($this->app);
 
                return $this->app['twig']->render('konfigurator/tisch.twig', [
                            'content' => $eng->__toString(),
                ]);
        }
        //        } catch (RedirectException $ex) {
        //            $response = $this->app->redirect($ex->getMessage(), $ex->getCode());
        //            $this->app->terminate($request, $response);
        //            return $response;
        //        }
    }
 
    public function articleConverter($article)
    {
        switch ($article) {
            case 'tv-board':
                $article = TVBOARD;
                break;
        }
 
Arguments
  1. App {#5}
    
/
var
/
www
/
e012
/
vendor
/
symfony
/
http-kernel
/
HttpKernel.php
 
        // load controller
        if (false === $controller = $this->resolver->getController($request)) {
            throw new NotFoundHttpException(sprintf('Unable to find the controller for path "%s". The route is wrongly configured.', $request->getPathInfo()));
        }
 
        $event = new FilterControllerEvent($this, $controller, $request, $type);
        $this->dispatcher->dispatch(KernelEvents::CONTROLLER, $event);
        $controller = $event->getController();
 
        // controller arguments
        $arguments = $this->argumentResolver->getArguments($request, $controller);
 
        $event = new FilterControllerArgumentsEvent($this, $controller, $arguments, $request, $type);
        $this->dispatcher->dispatch(KernelEvents::CONTROLLER_ARGUMENTS, $event);
        $controller = $event->getController();
        $arguments = $event->getArguments();
 
        // call controller
        $response = \call_user_func_array($controller, $arguments);
 
        // view
        if (!$response instanceof Response) {
            $event = new GetResponseForControllerResultEvent($this, $request, $type, $response);
            $this->dispatcher->dispatch(KernelEvents::VIEW, $event);
 
            if ($event->hasResponse()) {
                $response = $event->getResponse();
            }
 
            if (!$response instanceof Response) {
                $msg = sprintf('The controller must return a response (%s given).', $this->varToString($response));
 
                // the user may have forgotten to return something
                if (null === $response) {
                    $msg .= ' Did you forget to add a return statement somewhere in your controller?';
                }
                throw new \LogicException($msg);
            }
        }
Arguments
  1. Request {#712
      +attributes: ParameterBag {#715}
      +request: ParameterBag {#713}
      +query: ParameterBag {#714}
      +server: ServerBag {#718}
      +files: FileBag {#717}
      +cookies: ParameterBag {#716}
      +headers: HeaderBag {#719}
      #content: null
      #languages: null
      #charsets: null
      #encodings: null
      #acceptableContentTypes: null
      #pathInfo: "/konfigurator/bett/"
      #requestUri: "/konfigurator/bett/?phpsess=0r2vkfb9c8rg5v1tq6554ge9e6&p=ligera%2Ceic"
      #baseUrl: ""
      #basePath: null
      #method: "GET"
      #format: null
      #session: Session {#675}
      #locale: null
      #defaultLocale: "en"
      -isHostValid: true
      -isForwardedValid: true
      basePath: ""
      format: "html"
    }
    
  2. "Bett"
    
/
var
/
www
/
e012
/
vendor
/
symfony
/
http-kernel
/
HttpKernel.php
        $this->resolver = $resolver;
        $this->requestStack = $requestStack ?: new RequestStack();
        $this->argumentResolver = $argumentResolver;
 
        if (null === $this->argumentResolver) {
            @trigger_error(sprintf('As of 3.1 an %s is used to resolve arguments. In 4.0 the $argumentResolver becomes the %s if no other is provided instead of using the $resolver argument.', ArgumentResolverInterface::class, ArgumentResolver::class), E_USER_DEPRECATED);
            // fallback in case of deprecations
            $this->argumentResolver = $resolver;
        }
    }
 
    /**
     * {@inheritdoc}
     */
    public function handle(Request $request, $type = HttpKernelInterface::MASTER_REQUEST, $catch = true)
    {
        $request->headers->set('X-Php-Ob-Level', ob_get_level());
 
        try {
            return $this->handleRaw($request, $type);
        } catch (\Exception $e) {
            if ($e instanceof RequestExceptionInterface) {
                $e = new BadRequestHttpException($e->getMessage(), $e);
            }
            if (false === $catch) {
                $this->finishRequest($request, $type);
 
                throw $e;
            }
 
            return $this->handleException($e, $request, $type);
        }
    }
 
    /**
     * {@inheritdoc}
     */
    public function terminate(Request $request, Response $response)
    {
        $this->dispatcher->dispatch(KernelEvents::TERMINATE, new PostResponseEvent($this, $request, $response));
Arguments
  1. Request {#712
      +attributes: ParameterBag {#715}
      +request: ParameterBag {#713}
      +query: ParameterBag {#714}
      +server: ServerBag {#718}
      +files: FileBag {#717}
      +cookies: ParameterBag {#716}
      +headers: HeaderBag {#719}
      #content: null
      #languages: null
      #charsets: null
      #encodings: null
      #acceptableContentTypes: null
      #pathInfo: "/konfigurator/bett/"
      #requestUri: "/konfigurator/bett/?phpsess=0r2vkfb9c8rg5v1tq6554ge9e6&p=ligera%2Ceic"
      #baseUrl: ""
      #basePath: null
      #method: "GET"
      #format: null
      #session: Session {#675}
      #locale: null
      #defaultLocale: "en"
      -isHostValid: true
      -isForwardedValid: true
      basePath: ""
      format: "html"
    }
    
  2. 1
    
/
var
/
www
/
e012
/
vendor
/
silex
/
silex
/
src
/
Silex
/
Application.php
        $response = $this->handle($request);
        $response->send();
        $this->terminate($request, $response);
    }
 
    /**
     * {@inheritdoc}
     *
     * If you call this method directly instead of run(), you must call the
     * terminate() method yourself if you want the finish filters to be run.
     */
    public function handle(Request $request, $type = HttpKernelInterface::MASTER_REQUEST, $catch = true)
    {
        if (!$this->booted) {
            $this->boot();
        }
 
        $this->flush();
 
        return $this['kernel']->handle($request, $type, $catch);
    }
 
    /**
     * {@inheritdoc}
     */
    public function terminate(Request $request, Response $response)
    {
        $this['kernel']->terminate($request, $response);
    }
}
 
Arguments
  1. Request {#712
      +attributes: ParameterBag {#715}
      +request: ParameterBag {#713}
      +query: ParameterBag {#714}
      +server: ServerBag {#718}
      +files: FileBag {#717}
      +cookies: ParameterBag {#716}
      +headers: HeaderBag {#719}
      #content: null
      #languages: null
      #charsets: null
      #encodings: null
      #acceptableContentTypes: null
      #pathInfo: "/konfigurator/bett/"
      #requestUri: "/konfigurator/bett/?phpsess=0r2vkfb9c8rg5v1tq6554ge9e6&p=ligera%2Ceic"
      #baseUrl: ""
      #basePath: null
      #method: "GET"
      #format: null
      #session: Session {#675}
      #locale: null
      #defaultLocale: "en"
      -isHostValid: true
      -isForwardedValid: true
      basePath: ""
      format: "html"
    }
    
  2. 1
    
  3. true
    
/
var
/
www
/
e012
/
vendor
/
silex
/
silex
/
src
/
Silex
/
Application.php
            throw new \LogicException('The "mount" method takes either a "ControllerCollection" instance, "ControllerProviderInterface" instance, or a callable.');
        }
 
        $this['controllers']->mount($prefix, $controllers);
 
        return $this;
    }
 
    /**
     * Handles the request and delivers the response.
     *
     * @param Request|null $request Request to process
     */
    public function run(Request $request = null)
    {
        if (null === $request) {
            $request = Request::createFromGlobals();
        }
 
        $response = $this->handle($request);
        $response->send();
        $this->terminate($request, $response);
    }
 
    /**
     * {@inheritdoc}
     *
     * If you call this method directly instead of run(), you must call the
     * terminate() method yourself if you want the finish filters to be run.
     */
    public function handle(Request $request, $type = HttpKernelInterface::MASTER_REQUEST, $catch = true)
    {
        if (!$this->booted) {
            $this->boot();
        }
 
        $this->flush();
 
        return $this['kernel']->handle($request, $type, $catch);
    }
Arguments
  1. Request {#712
      +attributes: ParameterBag {#715}
      +request: ParameterBag {#713}
      +query: ParameterBag {#714}
      +server: ServerBag {#718}
      +files: FileBag {#717}
      +cookies: ParameterBag {#716}
      +headers: HeaderBag {#719}
      #content: null
      #languages: null
      #charsets: null
      #encodings: null
      #acceptableContentTypes: null
      #pathInfo: "/konfigurator/bett/"
      #requestUri: "/konfigurator/bett/?phpsess=0r2vkfb9c8rg5v1tq6554ge9e6&p=ligera%2Ceic"
      #baseUrl: ""
      #basePath: null
      #method: "GET"
      #format: null
      #session: Session {#675}
      #locale: null
      #defaultLocale: "en"
      -isHostValid: true
      -isForwardedValid: true
      basePath: ""
      format: "html"
    }
    
/
var
/
www
/
e012
/
web
/
index_dev.php
<?php
 
use Symfony\Component\Debug\Debug;
 
require_once __DIR__ . '/../vendor/autoload.php';
$app = require __DIR__ . '/../src/app.php';
 
require_once __DIR__ . '/../cfg.inc.php';
require_once __DIR__ . '/../src/cfg.ini.php';
 
Debug::enable(E_ALL, true);
 
require __DIR__ . '/../config/dev.php';
require __DIR__ . '/../src/controllers.php';
$app->run();
 
/
var
/
www
/
e012
/
web
/
index.php
<?php
 
require_once __DIR__ . '/index_dev.php';
 
Arguments
  1. "/var/www/e012/web/index_dev.php"
    

Environment & details:

Key Value
phpsess
"0r2vkfb9c8rg5v1tq6554ge9e6"
p
"ligera,eic"
empty
empty
empty
Key Value
_sf2_attributes
array:6 [
  "client" => array:1 [
    "target" => array:2 [
      "ip" => null
      "ip-tried" => 1
    ]
  ]
  "child_map" => []
  "item_maps" => array:1 [
    "MTData_Bett_66067b68002b2" => "66067b68002b9"
  ]
  "items" => array:1 [
    "66067b68002b9" => array:3 [
      "Class" => "MTData_Bett"
      "Ident" => "66067b68002b9"
      "ForeignIdent" => "MTData_Bett_66067b68002b2"
    ]
  ]
  "MT_Session" => array:1 [
    "last-active-table" => "Hauptartikel"
  ]
  "MTData_Bett" => array:2 [
    "id" => "66067b68002b9"
    "lastId" => "66067b68002b9"
  ]
]
_symfony_flashes
array:1 [
  "facebook-event" => array:1 [
    0 => "ViewContent"
  ]
]
_sf2_meta
array:3 [
  "u" => 1711700839
  "c" => 1711700839
  "l" => "0"
]
FG_Page
array:1 [
  "goodTeasers" => & []
]
Key Value
USER
"www-data"
HOME
"/var/www"
HTTP_REFERER
"http://www.massbett.de/konfigurator/bett/?phpsess=0r2vkfb9c8rg5v1tq6554ge9e6&p=ligera%2Ceic"
HTTP_USER_AGENT
"claudebot"
HTTP_ACCEPT
"*/*"
HTTP_HOST
"www.massbett.de"
SCRIPT_FILENAME
"/var/www/e012/web/index.php"
REDIRECT_STATUS
"200"
SERVER_NAME
"www.massbett.de"
SERVER_PORT
"443"
SERVER_ADDR
"88.99.242.4"
REMOTE_PORT
"39360"
REMOTE_ADDR
"44.222.220.101"
SERVER_SOFTWARE
"nginx/1.18.0"
GATEWAY_INTERFACE
"CGI/1.1"
HTTPS
"on"
REQUEST_SCHEME
"https"
SERVER_PROTOCOL
"HTTP/2.0"
DOCUMENT_ROOT
"/var/www/e012/web"
DOCUMENT_URI
"/index.php"
REQUEST_URI
"/konfigurator/bett/?phpsess=0r2vkfb9c8rg5v1tq6554ge9e6&p=ligera%2Ceic"
SCRIPT_NAME
"/index.php"
CONTENT_LENGTH
""
CONTENT_TYPE
""
REQUEST_METHOD
"GET"
QUERY_STRING
"phpsess=0r2vkfb9c8rg5v1tq6554ge9e6&p=ligera%2Ceic"
FCGI_ROLE
"RESPONDER"
PHP_SELF
"/index.php"
REQUEST_TIME_FLOAT
1711700839.9867
REQUEST_TIME
1711700839
empty
0. Whoops\Handler\PrettyPageHandler