Categories
Loading…
Loading…
yii\base\ErrorException
Copied! Copy Stacktrace Search Stackoverflow Search Google Error

PHP Deprecated Warningyii\base\ErrorException

addslashes(): Passing null to parameter #1 ($string) of type string is deprecated

  • 1. in /home/KeiserFullStack/KeiserIDC2/idc2_mysql/views/site/showtitle.php at line 389
    380381382383384385386387388389390391392393394395396397398
            foreach ($title["arrangers"] as $key => $item) {
                echo "<li>{$item["Name"]}</li>";
                //echo "<div class=\"badge badge-light bg-secondary text-light me-1 \">{$item["Name"]}</div>";
                $arrArr[] = $item["Name"];
            }
            //echo $data["title"]["composerList"];
            echo "</ul>";
            echo "</div>";
        }
        $titleInstrumentation = addslashes($title["Instrumentation"]);
        echo "<strong>Detailed Instrumentation: </strong>";
        echo $titleInstrumentation;
        echo "<br />";
        if ($title["Duration"] != null) {
     
            echo "<p style=\"margin-top: 15px;\"><strong>Duration: </strong>";
            echo $title["Duration"]." minute".(($title["Duration"]!=1)?'s':'');
            echo "</p>";
        }
    
  • 3. in /home/KeiserFullStack/KeiserIDC2/idc2_mysql/views/site/showtitle.php at line 389 – addslashes()
    383384385386387388389390391392393394395
                $arrArr[] = $item["Name"];
            }
            //echo $data["title"]["composerList"];
            echo "</ul>";
            echo "</div>";
        }
        $titleInstrumentation = addslashes($title["Instrumentation"]);
        echo "<strong>Detailed Instrumentation: </strong>";
        echo $titleInstrumentation;
        echo "<br />";
        if ($title["Duration"] != null) {
     
            echo "<p style=\"margin-top: 15px;\"><strong>Duration: </strong>";
    
  • 4. in /home/KeiserFullStack/KeiserIDC2/idc2_mysql/vendor/yiisoft/yii2/base/View.php at line 347 – require(‘/home/KeiserFullStack/KeiserIDC2…’)
    341342343344345346347348349350351352353
        {
            $_obInitialLevel_ = ob_get_level();
            ob_start();
            ob_implicit_flush(false);
            extract($_params_, EXTR_OVERWRITE);
            try {
                require $_file_;
                return ob_get_clean();
            } catch (\Exception $e) {
                while (ob_get_level() > $_obInitialLevel_) {
                    if (!@ob_end_clean()) {
                        ob_clean();
                    }
    
  • 5. in /home/KeiserFullStack/KeiserIDC2/idc2_mysql/vendor/yiisoft/yii2/base/View.php at line 257 yii\base\View::renderPhpFile()
    251252253254255256257258259260261262263
                        $this->renderers[$ext] = Yii::createObject($this->renderers[$ext]);
                    }
                    /** @var ViewRenderer $renderer */
                    $renderer = $this->renderers[$ext];
                    $output = $renderer->render($this, $viewFile, $params);
                } else {
                    $output = $this->renderPhpFile($viewFile, $params);
                }
                $this->afterRender($viewFile, $params, $output);
            }
     
            array_pop($this->_viewFiles);
            $this->context = $oldContext;
    
  • 6. in /home/KeiserFullStack/KeiserIDC2/idc2_mysql/vendor/yiisoft/yii2/base/View.php at line 156 yii\base\View::renderFile()
    150151152153154155156157158159160161162
         * @throws InvalidCallException if the view cannot be resolved.
         * @see renderFile()
         */
        public function render($view, $params = [], $context = null)
        {
            $viewFile = $this->findViewFile($view, $context);
            return $this->renderFile($viewFile, $params, $context);
        }
     
        /**
         * Finds the view file based on the given view name.
         * @param string $view the view name or the [path alias](guide:concept-aliases) of the view file. Please refer to [[render()]]
         * on how to specify this parameter.
    
  • 7. in /home/KeiserFullStack/KeiserIDC2/idc2_mysql/vendor/yiisoft/yii2/base/Controller.php at line 484 yii\base\View::render()
    478479480481482483484485486487488489490
         *
         * @phpstan-param array<string, mixed> $params
         * @psalm-param array<string, mixed> $params
         */
        public function renderPartial($view, $params = [])
        {
            return $this->getView()->render($view, $params, $this);
        }
     
        /**
         * Renders a view file.
         * @param string $file the view file to be rendered. This can be either a file path or a [path alias](guide:concept-aliases).
         * @param array $params the parameters (name-value pairs) that should be made available in the view.
    
  • 8. in /home/KeiserFullStack/KeiserIDC2/idc2_mysql/controllers/SiteController.php at line 134 yii\base\Controller::renderPartial()
    128129130131132133134135136137138139140
     
        public function actionSearchresults() {
            return $this->renderPartial('searchresults');
        }
     
        public function actionShowtitle() {
            return $this->renderPartial('showtitle');
        }
     
        /**
         * Standalone PDF viewer using PDF.js
         * Usage: /site/pdfviewer?uri=/path/to/file.pdf
         *
    
  • 9. app\controllers\SiteController::actionShowtitle()
  • 10. in /home/KeiserFullStack/KeiserIDC2/idc2_mysql/vendor/yiisoft/yii2/base/InlineAction.php at line 66 – call_user_func_array()
    606162636465666768
            $args = $this->controller->bindActionParams($this, $params);
            Yii::debug('Running action: ' . get_class($this->controller) . '::' . $this->actionMethod . '()', __METHOD__);
            if (Yii::$app->requestedParams === null) {
                Yii::$app->requestedParams = $args;
            }
     
            return call_user_func_array([$this->controller, $this->actionMethod], $args);
        }
    }
    
  • 11. in /home/KeiserFullStack/KeiserIDC2/idc2_mysql/vendor/yiisoft/yii2/base/Controller.php at line 197 yii\base\InlineAction::runWithParams()
    191192193194195196197198199200201202203
            }
     
            $result = null;
     
            if ($runAction && $this->beforeAction($action)) {
                // run the action
                $result = $action->runWithParams($params);
     
                $result = $this->afterAction($action, $result);
     
                // call afterAction on modules
                foreach ($modules as $module) {
                    /** @var Module $module */
    
  • 12. in /home/KeiserFullStack/KeiserIDC2/idc2_mysql/vendor/yiisoft/yii2/base/Module.php at line 554 yii\base\Controller::runAction()
    548549550551552553554555556557558559560
                 * @var Controller $controller
                 * @phpstan-var Controller<$this> $controller
                 */
                list($controller, $actionID) = $parts;
                $oldController = Yii::$app->controller;
                Yii::$app->controller = $controller;
                $result = $controller->runAction($actionID, $params);
                if ($oldController !== null) {
                    Yii::$app->controller = $oldController;
                }
     
                return $result;
            }
    
  • 13. in /home/KeiserFullStack/KeiserIDC2/idc2_mysql/vendor/yiisoft/yii2/web/Application.php at line 112 yii\base\Module::runAction()
    106107108109110111112113114115116117118
                $params = $this->catchAll;
                unset($params[0]);
            }
            try {
                Yii::debug("Route requested: '$route'", __METHOD__);
                $this->requestedRoute = $route;
                $result = $this->runAction($route, $params);
                if ($result instanceof Response) {
                    return $result;
                }
     
                $response = $this->getResponse();
                if ($result !== null) {
    
  • 14. in /home/KeiserFullStack/KeiserIDC2/idc2_mysql/vendor/yiisoft/yii2/base/Application.php at line 391 yii\web\Application::handleRequest()
    385386387388389390391392393394395396397
        {
            try {
                $this->state = self::STATE_BEFORE_REQUEST;
                $this->trigger(self::EVENT_BEFORE_REQUEST);
     
                $this->state = self::STATE_HANDLING_REQUEST;
                $response = $this->handleRequest($this->getRequest());
     
                $this->state = self::STATE_AFTER_REQUEST;
                $this->trigger(self::EVENT_AFTER_REQUEST);
     
                $this->state = self::STATE_SENDING_RESPONSE;
                $response->send();
    
  • 15. in /home/KeiserFullStack/KeiserIDC2/idc2_mysql/web/index.php at line 22 yii\base\Application::run()
    16171819202122
    ini_set('error_reporting', E_ALL);
     
    require __DIR__ . '/../vendor/yiisoft/yii2/Yii.php';
     
    $config = require __DIR__ . '/../config/web.php';
     
    (new yii\web\Application($config))->run();
    
$_GET = [
    'action' => 'showtitle',
    'tid' => 'D4F2CFCA-3097-4EB5-A063-C3CC1C76B206',
];

Scroll to Top