Home IT Linux Windows Database Network Programming Server Mobile  
           
  Home \ Programming \ Yii2 Advanced Version Copy New Project Problem Solved     - CRF ++ Linux use (Linux)

- Linux basic introductory tutorial ---- simple text processing (Linux)

- Hadoop upload files error solved (Server)

- Let CentOS6 yum upgrade to support more source rpm package (Linux)

- Linux vi command list (Linux)

- Linux performance monitoring - CPU, Memory, IO, Network (Linux)

- Introduction and bash history command to quickly call (Linux)

- Depth understanding of C language (Programming)

- Hadoop 2.2.0 installation development environment (standalone pseudo-distributed mode) (Server)

- Fedora && Arch Linux - the most romantic thing to happen now (Linux)

- Using packet capture libpcap be reconciliation package in Ubuntu 14.04 64 bits (Linux)

- Ubuntu Thunderbird 24.4.0 (Linux)

- Spring + Log4j + ActiveMQ remote logging - Analysis of combat (Server)

- Linux Platform Oracle 11g Single Instance Installation Deployment Configuration Quick Reference (Database)

- linux remote control software (Linux)

- RedHat 6.5 installation and deployment Openfire (Server)

- lolcat: an output terminal rainbow effects in the Linux command-line tool (Linux)

- Gitlab installation under CentOS 7 (Linux)

- Ubuntu FAQ solutions (Linux)

- Linux command line ten magic usage (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:      
 
- Using Linux command line and execute PHP code (Programming)
- Linux System Getting Started Learning: From VirtualBox from the client host access NAT (Linux)
- Squid proxy server (Server)
- Nodejs complete installation instructions for Express (Linux)
- Linux AS4 VPN server in conjunction with a firewall perfect (Linux)
- Let CentOS6 yum upgrade to support more source rpm package (Linux)
- Source code to compile and install MySQL 5.7.9 (Database)
- LVM Disk Manager Application (Linux)
- Recovery from MySQL master data consistency summary (Database)
- Linux system security check notes on performance (Linux)
- SME Linux network security policy server security (Linux)
- Intrusion analysis and prevention tools Knark under Linux platform (Linux)
- How to merge two pictures in Cacti (Linux)
- Gnu Linux - Ubuntu System Clean-term consolidation (Linux)
- CentOS yum configuration under local sources (Linux)
- How to find out a Unix system library files are 32-bit or 64-bit (Linux)
- IIS virtual host of safety knowledge (Linux)
- Object-oriented language Java some of the basic features (Programming)
- Ubuntu ADSL dial-up Internet access (Linux)
- JavaScript, some conclusions about the implicit conversion (Programming)
     
           
     
  CopyRight 2002-2016 newfreesoft.com, All Rights Reserved.