Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 
- PHP Deprecated Warning – yii\base\ErrorException
- array_key_exists(): Using array_key_exists() on objects is deprecated. Use isset() or property_exists() instead
- 1. in /var/www/tailwind/vendor/doublesecretagency/craft-smartmap/src/services/Variables.phpat line 196
- 2. in /var/www/tailwind/vendor/craftcms/cms/src/web/ErrorHandler.php at line 80– yii\base\ErrorHandler::handleError()
- 74757677787980818283848586 {
- // Because: https://bugs.php.net/bug.php?id=74980
- if (PHP_VERSION_ID >= 70100 && strpos($message, 'Narrowing occurred during type inference. Please file a bug report') !== false) {
- return null;
- }
- return parent::handleError($code, $message, $file, $line);
- }
- /**
- * @inheritdoc
- */
- public function getExceptionName($exception)
- 3. craft\web\ErrorHandler::handleError()
- 4. in /var/www/tailwind/vendor/doublesecretagency/craft-smartmap/src/services/Variables.php at line 196– array_key_exists()
- 190191192193194195196197198199200201202
- // Set defaults
- $markers = [];
- $center = SmartMap::$plugin->smartMap->defaultCoords();
- // If multiple locations
- if (!empty($locations) && array_key_exists(0, $locations)) {
- $allLats = [];
- $allLngs = [];
- // If location elements are Matrix fields
- if (is_a($locations[0], 'craft\\elements\\MatrixBlock')) {
- 5. in /var/www/tailwind/vendor/doublesecretagency/craft-smartmap/src/services/Variables.php at line 139– doublesecretagency\smartmap\services\Variables::_parseMarkers()
- 133134135136137138139140141142143144145 if (array_key_exists('markerInfo', $options)) {
- $infoWindowOptions['template'] = $options['markerInfo'];
- unset($options['markerInfo']);
- }
- // Determine map center
- $markersCenter = $this->_parseMarkers($mapId, $markers, $markerOptions);
- if (array_key_exists('center', $options)) {
- $center = $this->_parseCenter($options['center']);
- } else {
- $center = $this->_parseCenter($markersCenter);
- }
- $options['center'] = 'smartMap.coords('.$center['lat'].','.$center['lng'].')';
- 6. in /var/www/tailwind/vendor/doublesecretagency/craft-smartmap/src/variables/SmartMapVariable.php at line 28– doublesecretagency\smartmap\services\Variables::dynamicMap()
- 22232425262728293031323334class SmartMapVariable
- {
- // Display a dynamic Google map
- public function map($markers = false, $options = [])
- {
- return SmartMap::$plugin->smartMap_variables->dynamicMap($markers, $options);
- }
- // Display a static map image
- public function img($markers = false, $options = [])
- {
- return SmartMap::$plugin->smartMap_variables->staticMap($markers, $options);
- 7. in /var/www/tailwind/vendor/twig/twig/src/Extension/CoreExtension.php at line 1495– doublesecretagency\smartmap\variables\SmartMapVariable::map()
- 8. in /var/www/tailwind/vendor/craftcms/cms/src/helpers/Template.php at line 105– twig_get_attribute()
- 99100101102103104105106107108109110111 // Add deprecated support for the old DateTime methods
- if ($object instanceof \DateTime && ($value = self::_dateTimeAttribute($object, $item, $type)) !== false) {
- return $value;
- }
- try {
- return \twig_get_attribute($env, $source, $object, $item, $arguments, $type, $isDefinedTest, $ignoreStrictCheck);
- } catch (UnknownMethodException $e) {
- // Copy twig_get_attribute()'s BadMethodCallException handling
- if ($ignoreStrictCheck || !$env->isStrictVariables()) {
- return null;
- }
- throw new RuntimeError($e->getMessage(), -1, $source);
- 9. in /var/www/tailwind/storage/runtime/compiled_templates/94/94c414c548a17859a7f52bc258314ecd9094a363e2dee48dd78e41d6c77e640f.php at line 106– craft\helpers\Template::attribute()
- 10. in /var/www/tailwind/vendor/twig/twig/src/Template.php at line 184– __TwigTemplate_d430864f263f78cd2ebc5765079f6aa8a949903d386f76f2f80cd411df1ce06e::block_content()
- 11. in /var/www/tailwind/storage/runtime/compiled_templates/94/94c414c548a17859a7f52bc258314ecd9094a363e2dee48dd78e41d6c77e640f.php at line 62– Twig\Template::displayBlock()
- 12. in /var/www/tailwind/vendor/twig/twig/src/Template.php at line 407– __TwigTemplate_d430864f263f78cd2ebc5765079f6aa8a949903d386f76f2f80cd411df1ce06e::doDisplay()
- 13. in /var/www/tailwind/vendor/twig/twig/src/Template.php at line 380– Twig\Template::displayWithErrorHandling()
- 14. in /var/www/tailwind/vendor/twig/twig/src/Template.php at line 392– Twig\Template::display()
- 15. in /var/www/tailwind/vendor/twig/twig/src/TemplateWrapper.php at line 45– Twig\Template::render()
- 16. in /var/www/tailwind/vendor/twig/twig/src/Environment.php at line 318– Twig\TemplateWrapper::render()
- 17. in /var/www/tailwind/vendor/craftcms/cms/src/web/View.php at line 400– Twig\Environment::render()
- 394395396397398399400401402403404405406 // Render and return
- $renderingTemplate = $this->_renderingTemplate;
- $this->_renderingTemplate = $template;
- $e = null;
- try {
- $output = $this->getTwig()->render($template, $variables);
- } catch (\Throwable $e) {
- // throw it later
- }
- $this->_renderingTemplate = $renderingTemplate;
- $this->setTemplateMode($oldTemplateMode);
- 18. in /var/www/tailwind/vendor/craftcms/cms/src/web/View.php at line 461– craft\web\View::renderTemplate()
- 455456457458459460461462463464465466467 $isRenderingPageTemplate = $this->_isRenderingPageTemplate;
- $this->_isRenderingPageTemplate = true;
- $e = null;
- try {
- $this->beginPage();
- echo $this->renderTemplate($template, $variables);
- $this->endPage();
- } catch (\Throwable $e) {
- // throw it later
- }
- $this->_isRenderingPageTemplate = $isRenderingPageTemplate;
- 19. in /var/www/tailwind/vendor/craftcms/cms/src/web/Controller.php at line 244– craft\web\View::renderPageTemplate()
- 238239240241242243244245246247248249250 }
- $headers->set('content-type', $mimeType . '; charset=' . $response->charset);
- }
- // Render and return the template
- $response->data = $this->getView()->renderPageTemplate($template, $variables, $templateMode);
- // Prevent a response formatter from overriding the content-type header
- $response->format = YiiResponse::FORMAT_RAW;
- return $response;
- }
- 20. in /var/www/tailwind/vendor/craftcms/cms/src/controllers/TemplatesController.php at line 104– craft\web\Controller::renderTemplate()
- 9899100101102103104105106107108109110
- // Merge any additional route params
- $routeParams = Craft::$app->getUrlManager()->getRouteParams();
- unset($routeParams['template'], $routeParams['template']);
- $variables = array_merge($variables, $routeParams);
- return $this->renderTemplate($template, $variables);
- }
- /**
- * Shows the 'offline' template.
- *
- * @return Response
- 21. craft\controllers\TemplatesController::actionRender()
- 22. in /var/www/tailwind/vendor/yiisoft/yii2/base/InlineAction.php at line 57– call_user_func_array()
- 23. in /var/www/tailwind/vendor/yiisoft/yii2/base/Controller.php at line 157– yii\base\InlineAction::runWithParams()
- 24. in /var/www/tailwind/vendor/craftcms/cms/src/web/Controller.php at line 187– yii\base\Controller::runAction()
- 181182183184185186187188189190191192193 /**
- * @inheritdoc
- */
- public function runAction($id, $params = [])
- {
- try {
- return parent::runAction($id, $params);
- } catch (\Throwable $e) {
- if (Craft::$app->getRequest()->getAcceptsJson()) {
- Craft::$app->getErrorHandler()->logException($e);
- if (!YII_DEBUG && !$e instanceof UserException) {
- $message = Craft::t('app', 'An unknown error occurred.');
- } else {
- 25. in /var/www/tailwind/vendor/yiisoft/yii2/base/Module.php at line 528– craft\web\Controller::runAction()
- 26. in /var/www/tailwind/vendor/craftcms/cms/src/web/Application.php at line 299– yii\base\Module::runAction()
- 293294295296297298299300301302303304305 * @param string $route
- * @param array $params
- * @return Response|null The result of the action, normalized into a Response object
- */
- public function runAction($route, $params = [])
- {
- $result = parent::runAction($route, $params);
- if ($result !== null) {
- if ($result instanceof Response) {
- return $result;
- }
- 27. in /var/www/tailwind/vendor/yiisoft/yii2/web/Application.php at line 103– craft\web\Application::runAction()
- 28. in /var/www/tailwind/vendor/craftcms/cms/src/web/Application.php at line 284– yii\web\Application::handleRequest()
- 278279280281282283284285286287288289290 if (($response = $this->_processActionRequest($request)) !== null) {
- return $response;
- }
- // If we're still here, finally let Yii do it's thing.
- try {
- return parent::handleRequest($request);
- } catch (\Throwable $e) {
- $this->_unregisterDebugModule();
- throw $e;
- }
- }
- 29. in /var/www/tailwind/vendor/yiisoft/yii2/base/Application.php at line 386– craft\web\Application::handleRequest()
- 30. in /var/www/tailwind/web/index.php at line 21– yii\base\Application::run()
- 15161718192021 (new Dotenv\Dotenv(CRAFT_BASE_PATH))->load();
- }
- // Load and run Craft
- define('CRAFT_ENVIRONMENT', getenv('ENVIRONMENT') ?: 'production');
- $app = require CRAFT_VENDOR_PATH.'/craftcms/cms/bootstrap/web.php';
- $app->run();
- $_GET = [
- 'p' => 'promotions/promo-one',
- ];
- $_COOKIE = [
- '1031b8c41dfff97a311a7ac99863bdc5_username' => '31a6c39afbddf51963012ae48eab548fc532520c37b69f639a27405e7f5a4f84a:2:{i:0;s:41:"1031b8c41dfff97a311a7ac99863bdc5_username";i:1;s:11:"fultonchain";}',
- '__stripe_mid' => '3f74887b-9de4-4167-ae8a-505e5beb1337',
- 'CRAFT_CSRF_TOKEN' => '82dbf80cb329437108e6a0a7f05f8cc3f864efeabe1421655ae389325832b370a:2:{i:0;s:16:"CRAFT_CSRF_TOKEN";i:1;s:208:"gv9oqqBF57xvBAWBAKRotvfJK3paH1d-kJec89a8|6929cbc05c39fbbb920e391e7622ccfaad12aeb550375d268a1d84bbaf70736fgv9oqqBF57xvBAWBAKRotvfJK3paH1d-kJec89a8|1|$2y$13$OQmF541jov8VJ0Eoy.VoC.iqLSPRd84KxzpRrjslwlGRMEfPvqnmC";}',
- 'CraftSessionId' => '0rf3isb8o417p0clr1qf3grbpp',
- '1031b8c41dfff97a311a7ac99863bdc5_identity' => '09292c3d6bfcde3a41aad93ed1c4f92dc5eb2cf77729efaf99d8f75443099ba8a:2:{i:0;s:41:"1031b8c41dfff97a311a7ac99863bdc5_identity";i:1;s:233:"["1","[\\"exhFELoxlFGj0jZK3mWbYkV1iD0u-Bp7w6Hxf3Jf_RaqdA0aiq8ieNieQ6jNkLId7r3BvTwXXj7aKde6NRkd8hoZknTmEkphvxXH\\",null,\\"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.88 Safari/537.36\\"]",3600]";}',
- ];
- $_SESSION = [
- 'bd62416aa8538ede709019a5e113eea5__flash' => [],
- '1031b8c41dfff97a311a7ac99863bdc5__token' => 'exhFELoxlFGj0jZK3mWbYkV1iD0u-Bp7w6Hxf3Jf_RaqdA0aiq8ieNieQ6jNkLId7r3BvTwXXj7aKde6NRkd8hoZknTmEkphvxXH',
- '1031b8c41dfff97a311a7ac99863bdc5__id' => '1',
- '1031b8c41dfff97a311a7ac99863bdc5__expire' => 1577754295,
- ];
- 
- 2019-12-30, 19:04:55
- Apache/2.4.18 (Ubuntu)
- Yii Framework/2.0.30
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement