Home IT Linux Windows Database Network Programming Server Mobile  
           
  Home \ Programming \ Yii2 Advanced Version Copy New Project Problem Solved     - Oracle 11g RMAN cross-platform transfer table space (Database)

- Differential test piece using MongoDB performance YCSB (Database)

- GDB remote connections RX Probe online debug program (Programming)

- Customize the output format in Linux history (Linux)

- Linux Security (Linux)

- Grading defense against Linux server attacks (Linux)

- Linux fast set ip bond (Linux)

- SHELL script to use anti SSH brute force and vsftpd (Linux)

- Android Notification (Programming)

- Introduction and use of the Raspberry Pi (Linux)

- Retro terminal in Linux (Linux)

- Linux operating tips: Can not open file for writing or operation not permitted solution (Linux)

- Based on Google Cloud Storage Mirroring open Maven Central Repository (Server)

- RHEL7.0 environment Linux kernel upgrade (Linux)

- Ubuntu Apache virtual host configuration (Server)

- Android Service Lifecycle and usage (Programming)

- Ubuntu 14.04 compile RT288x_SDK / toolchain / squashfs3.2-r2 Error (Linux)

- To delete the directory and all specified files under the Mac (Linux)

- Definition Format Oracle basis of various statements (Database)

- Several Methods of SSH Auto - login (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:      
 
- MyCAT log analysis (Database)
- How to forcibly change the Linux system password on a regular basis (Linux)
- Linux program analysis tool: ldd and nm (Linux)
- Figlet use (Linux)
- Use MD5 transform algorithm to prevent exhaustive decipher passwords (Linux)
- Linux --- manual release system cache (Linux)
- Tecplot Installation under Linux (Linux)
- CentOS 6.4 dial-up Raiders (Linux)
- Setting Squid successful anti-hotlinking (Linux)
- Add a custom encryption algorithm in OpenSSL (Linux)
- CentOS 6.5 using Virtualenv under development environment to build Python3 (Linux)
- Linux (CentOS) directory file management and file system file compression packing (Linux)
- Configuring Allatori code confusion when developing general Java applications in NetBeans (Programming)
- Linux Live CD lets your PC is no longer secure (Linux)
- Linux command -nohup & (Linux)
- Using Lua implement various operations list (Programming)
- Linux how to prohibit the use of Ping command (Linux)
- ORA-600 [kcbz_check_objd_typ] Error Handling (Database)
- Using Java to build micro-services (Server)
- Stunning exclamation point at the Linux command line (Linux)
     
           
     
  CopyRight 2002-2016 newfreesoft.com, All Rights Reserved.