Want to use git to manage your wordpress installation and track changes of your development or wordpress upgrade?
notes on Mojolicious installation error
[root@localhost ~]# curl -L https://cpanmin.us | perl – -M https://cpan.metacpan.org -n Mojolicious
curl: (35) SSL connect error
yiisoft/yii2 2.0.6 requires bower-asset/jquery 2.1.*@stable | 1.11.*@stable -> no matching package found.
yiisoft/yii2 2.0.6 requires bower-asset/jquery 2.1.*@stable | 1.11.*@stable -> no matching package found.
How to fix?
Continue reading
composer install note
[root@dev html]# curl -sS https://getcomposer.org/installer | myphp
#!/usr/bin/env php
Some settings on your machine may cause stability issues with Composer.
If you encounter issues, try to change the following:
The apc.enable_cli setting is incorrect.
Add the following to the end of your `php.ini`:
apc.enable_cli = Off
The php.ini used by your command-line PHP is: /opt/php-5.4.37/etc/php.ini
If you can not modify the ini file, you can also run `php -d option=value` to modify ini values on the fly. You can use -d multiple times.
Downloading…
Composer successfully installed to: /opt/php-5.4.37/html/composer.phar
Use it: php composer.phar
git quick reference
1. find out changed files in a commit
e.g.
$ git diff-tree --no-commit-id --name-only -r 5ada787d6688d388c8cdeb0ce87bfc7ac209106f
2. add all untracked, modified, deleted files to a commit
$ git add -A
Unknown Class – yii\base\UnknownClassException
You use gii to create a CURD suite of code and got the error of
Unknown Class – yii\base\UnknownClassException
Unable to find ‘backend\controllers\xxxxxController’ in file: /opt/php-5.4.37/html/backend/controllers/xxxxxController.php. Namespace missing?
Continue reading
upgrade yii from 2.0.4 to 2.0.6
How to upgrade Yii2 to the latest version? read on…
Continue reading
DBD::mysql on Mac OS: Library not loaded: libmysqlclient.18.dylib
$ perl -e ‘use DBD::mysql;’
Can’t load ‘/Library/Perl/5.18/darwin-thread-multi-2level/auto/DBD/mysql/mysql.bundle’ for module DBD::mysql: dlopen(/Library/Perl/5.18/darwin-thread-multi-2level/auto/DBD/mysql/mysql.bundle, 1): Library not loaded: libmysqlclient.18.dylib
Referenced from: /Library/Perl/5.18/darwin-thread-multi-2level/auto/DBD/mysql/mysql.bundle
Reason: image not found at /System/Library/Perl/5.18/darwin-thread-multi-2level/DynaLoader.pm line 194.
at -e line 1.
Compilation failed in require at -e line 1.
BEGIN failed–compilation aborted at -e line 1.
Continue reading
php Fix: php_network_getaddresses: getaddrinfo failed: Name or service not known
php Fix: php_network_getaddresses: getaddrinfo failed: Name or service not known
for our case, it is just that, we are running php-fpm in chroot. and hence it does not know how to do network address resolve etc.
Continue reading
Amazon Marketplace Inventory file upload error code – 8560
Feed Processing Summary:
Number of records processed 140
Number of records successful 138
original-record-number sku error-code error-type error-message
123 1-1529-1865072 8560 Error SKU 1-1529-1865072, Missing Attributes product_type. SKU 1-1529-1865072 does not match any ASIN. Creation of a new ASIN requires the following missing attributes: product_type. Feed ID: 0. For details, see http://sellercentral.amazon.com/gp/errorcode/200692370
140 1-1529-1892990 8560 Error SKU 1-1529-1892990, Missing Attributes product_type. SKU 1-1529-1892990 does not match any ASIN. Creation of a new ASIN requires the following missing attributes: product_type. Feed ID: 0. For details, see http://sellercentral.amazon.com/gp/errorcode/200692370