Skip to content

Error on Create New Menu #18

@epic-elise

Description

@epic-elise

Clicked "create new menu" button, entered name, clicked "save", the following error occurs:

HTTP 404 – Not Found – yii\web\NotFoundHttpException
Template not found: admin/craftnavigation/edit/3

1. in /var/www/vhosts/dakbath.epicosity.com/httpdocs/vendor/craftcms/cms/src/controllers/TemplatesController.php at line 70
61626364656667686970717273747576777879

     * @param string $template
     * @param array $variables
     * @return Response
     * @throws NotFoundHttpException if the requested template cannot be found
     */
    public function actionRender(string $template, array $variables = []): Response
    {
        // Does that template exist?
        if (!$this->getView()->doesTemplateExist($template)) {
            throw new NotFoundHttpException('Template not found: ' . $template);
        }
 
        // 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);
    }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions