Home IT Linux Windows Database Network Programming Server Mobile  
           
  Home \ Programming \ Yii2 Advanced Version Copy New Project Problem Solved     - jQuery update the content and method of use 3.0 (Programming)

- C ++ 11 smart pointers (Programming)

- LAN Deployment Docker-- from scratch to create your own private warehouse Docker (Linux)

- JBPM6 Installation and Configuration Tutorial (Linux)

- Getting Started with Linux: CentOS7 Install Mono with the yum command (Server)

- PLSQL often lose resolution process automatically disconnect the connection (Database)

- Ubuntu 14.04 jdk Installation and Configuration (Linux)

- The principle Httpclient4.4 (execution request) (Programming)

- Analysis: Little Notebook facing a major security threat secure online (Linux)

- Linux process management related content (Linux)

- How to install Go1.5 source development environment on Mac (Server)

- How to install Virtualbox 4.3.20 in Ubuntu 14.04 (Linux)

- Ambari and Hadoop configuration, management and monitoring of the project Getting (Server)

- The text formatting tools awk Linux system (Linux)

- Linux crontab (Linux)

- CRF ++ Linux use (Linux)

- How to install Linux Go Language (Linux)

- Create Your Own Docker base image in two ways (Linux)

- Use nice, cpulimit and cgroups limit cpu usage (Linux)

- Using Linux / Unix Text processing (Linux)

 
         
  Yii2 Advanced Version Copy New Project Problem Solved
     
  Add Date : 2018-11-21      
         
       
         
  Yii2 Advanced Copy new items will encounter the following error message:

Exception 'yii \ base \ InvalidRouteException' with message 'Unable to resolve the request "site / error". In /Users/yuzhiyuan/Documents/htdocs/yii-application/vendor/yiisoft/yii2/base/Module.php:461
Stack trace:
# 0 /Users/yuzhiyuan/Documents/htdocs/yii-application/vendor/yiisoft/yii2/web/ErrorHandler.php(80): yii \ base \ Module-> runAction ( 'site / error')
# 1 /Users/yuzhiyuan/Documents/htdocs/yii-application/vendor/yiisoft/yii2/base/ErrorHandler.php(95): yii \ web \ ErrorHandler-> renderException (Object (yii \ web \ NotFoundHttpException))
# 2 [internal function]: yii \ base \ ErrorHandler-> handleException (Object (yii \ web \ NotFoundHttpException))
# 3 {main}
Previous exception:
Exception 'yii \ base \ InvalidRouteException' with message 'Unable to resolve the request "site / index".' In /Users/yuzhiyuan/Documents/htdocs/yii-application/vendor/yiisoft/yii2/base/Module.php:461
Stack trace:
# 0 /Users/yuzhiyuan/Documents/htdocs/yii-application/vendor/yiisoft/yii2/web/Application.php(83): yii \ base \ Module-> runAction ( 'site / index', Array)
# 1 /Users/yuzhiyuan/Documents/htdocs/yii-application/vendor/yiisoft/yii2/base/Application.php(375): yii \ web \ Application-> handleRequest (Object (yii \ web \ Request))
# 2 /Users/yuzhiyuan/Documents/htdocs/yii-application/mobile/web/index.php(18): yii \ base \ Application-> run ()
# 3 {main}


Next exception 'yii \ web \ NotFoundHttpException' with message 'Page not found.' In /Users/yuzhiyuan/Documents/htdocs/yii-application/vendor/yiisoft/yii2/web/Application.php:95
Stack trace:
# 0 /Users/yuzhiyuan/Documents/htdocs/yii-application/vendor/yiisoft/yii2/base/Application.php(375): yii \ web \ Application-> handleRequest (Object (yii \ web \ Request))
# 1 /Users/yuzhiyuan/Documents/htdocs/yii-application/mobile/web/index.php(18): yii \ base \ Application-> run ()
# 2 {main}

Solution:

Locate common \ config \ bootstrap.php

Find the above file, add a new alias:
Yii :: setAlias ( 'application name', dirname (dirname (__ DIR__)). '/ Directory name');
For example: Yii :: setAlias ( 'mobile', dirname (dirname (__ DIR__)). '/ Mobile');
     
         
       
         
  More:      
 
- LinSSID: a graphical Wi-Fi scanner under Linux (Linux)
- How to create a bootable USB disk to use MultiSystem on Ubuntu (Linux)
- Design and implementation of environment sniffer running under Linux (Linux)
- How to run Kali Linux 2.0 in Docker container (Linux)
- How to Set Free SSH password on CentOS / RHEL (Linux)
- Linux operating system boot process analysis (Linux)
- MySQL multi-master-slave synchronization (Database)
- CentOS 6.4 Python 2.6 upgrade to 2.7 (Linux)
- RHEL5.x RHEL6.x replace CentOS yum source (Linux)
- LaTeX Getting Started Tutorial (Linux)
- RHEL7.0 log system (Linux)
- Linux RHCS basic maintenance commands (Linux)
- DRBD-based installation and configuration of CentOS 6.5 (Server)
- The Linux-based security settings Ipchains Firewall (Linux)
- MySQL5.6.12 Waiting for commit lock lead to hang from the library housing problem analysis (Database)
- CentOS 6.6 install JDK7 (Linux)
- C ++ Supplements --new delete overload (Programming)
- MySQL query plan key_len know all (Database)
- Java objects are taking up much space (Programming)
- Using IntelliJ IDEA 13 integrated development environment to build Android (Linux)
     
           
     
  CopyRight 2002-2016 newfreesoft.com, All Rights Reserved.