Skip to main content

Posts

Showing posts with the label Yii2

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

Apache and Mysql on Xampp 32-bit - Windows Server 2012 can't start

Best Solution down vote accepted I was able to fix this! Had the same problems as stated above, made sure nothing was using port 80 and still not working and getting the message that Apache and Mysql were detected with the wrong path. I did install XAMPP once before, uninstalled and reinstalled. I even manually uninstalled but still had issues. The fix. Make sure you backup your system first! Start Services via Control Panel>Admin Tools (also with  Ctrl+R  and  services.msc ) Look for Apache and MySQL services. Look at the patch indicated in the description (right click on service then click on properties). Chances are that you have Apache listed twice, one from your correct install and one from a previous install. Even if you only see one, look at the path, chances are it's from a previous install and causing your install not to work. In either case, you need to delete those incorrect services. a. Got to command prompt (run as administrator): Sta...

Yii2 Reportico Reference - "Projects area does not exist - cannot write project after enter and reenter password."

After install in composer--> error. "Projects area does not exist - cannot write project after enter and reenter password." How to solve it  D:\xampp\htdocs\basic\vendor\reportico\yii2-reportico\components\projects\admin & copy paste adminconfig.template to config.php then open file config.php change SW_ADMIN_PASSWORD to password that you want and replace SW_LANGUAGE to en_gb example as below:  // Set to Blank to allow reset from browser    define('SW_ADMIN_PASSWORD',' admin ');    // Default System Language    define('SW_LANGUAGE', ' en_gb ');   credit to : http://evocrus.blogspot.my/2015/09/membuat-laporan-dengan-reportico-yii2.html

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 : How to clearcache composer - using cmd

Microsoft Windows [Version 6.1.7601] Copyright (c) 2009 Microsoft Corporation.  All rights reserved. C:\Users\cda>cd C://xampp/htdocs/splp C:\xampp\htdocs\splp>composer config cache-dir C:/Users/cda/AppData/Local/Composer C:\xampp\htdocs\splp>composer flush-cache   [Symfony\Component\Console\Exception\CommandNotFoundException]   Command "flush-cache" is not defined. C:\xampp\htdocs\splp>composer clearcache Clearing cache (cache-dir): C:\Users\cda\AppData\Local\Composer Clearing cache (cache-files-dir): C:\Users\cda\AppData\Local\Composer \files Clearing cache (cache-repo-dir): C:\Users\cda\AppData\Local\Composer\ repo Cache directory does not exist (cache-vcs-dir): All caches cleared. C:\xampp\htdocs\splp>composer update Loading composer repositories with package information Updating dependencies (including require-dev)

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