Skip to main content

Posts

Showing posts with the label Programming

A PHP Error was encountered Severity: Notice Message: Only variable references should be returned by reference Filename: core/Common.php Line Number: 257

An error appear after upgraded Xampp version 3.2.2. This system using Codeigniter 2.1.2. To solve:- Change it in your Common.php if ( count ( $replace ) > 0 ){ foreach ( $replace as $key => $val ){ if ( isset ( $config [ $key ])){ $config [ $key ] = $val ; } } } $_config [ 0 ] =& $config ; return $_config [ 0 ]; Credit to:- https://stackoverflow.com/questions/30785717/codeigniter-error-variable-references edited  May 23 at 12:10 Community ♦ 1 1 answered  Jun 12 '15 at 1:05 aizele 713 1 6 17

Yii2 Reference : php.exe win32 invalid application error while installing composer

php.exe win32 invalid application error while installing composer solution ========= composer create-project --stability=dev --prefer-dist yiisoft/yii2-app-basic C:\xampp\htdocs\splp ------------------- Microsoft Windows [Version 6.1.7601] Copyright (c) 2009 Microsoft Corporation.  All rights reserved. C:\Users\cda>cd C:\xampp\php C:\xampp\php>composer create-project --stability=dev --prefer-dist yiisoft/yii2- app-basic C:\xampp\htdocs\splp Installing yiisoft/yii2-app-basic (dev-master ebfe2aec0ca05aa3e27c85c10f6bb6e7f8 c83253)   [InvalidArgumentException]   Project directory C:/xampp/htdocs/splp/ is not empty. create-project [-s|--stability STABILITY] [--prefer-source] [--prefer-dist] [--r epository REPOSITORY] [--repository-url REPOSITORY-URL] [--dev] [--no-dev] [--no -custom-installers] [--no-scripts] [--no-progress] [--no-secure-http] [--keep-vc s] [--no-install] [--ignore-platform-reqs] [--] [<package>] [<directory>] [<...

Yii2 Reference : PHP Notice - yii\base\ErrorException Undefined variable: sideMenuId

Kalo keluar error ni.... Solution: try comment error_reporting dalam php.ini ;error_reporting=E_ALL & ~E_DEPRECATED & ~E_NOTICE