yii creating webapp error - yii

Hi i am trying to create a yii application and i am got this issue tried google but not able to find the solution how can i resolve this,..?
This is my error:
Error: Unsupported VCS specified. Currently only git and hg supported.
And what actually this error is..?

yiic webapp d:\xampp\htdocs should work.
Notice the backslashes.
Or, perhaps better, since the app generator supports relative paths, navigate to d:\xampp and simply run yiic webapp htdocs.
That said: why are you using Yii 1 ?
It is really old, and does not receive any updates.
Yii 2 is so much better :)

Related

Not able to add implementation 'com.google.android.libraries.places:places:2.2.0'

I am trying to add Places SDK for android.
I am following the following documentation
https://developers.google.com/places/android-sdk/start and
https://developers.google.com/places/android-sdk/client-migration
Unfortunately i am not able to add dependency "implementation 'com.google.android.libraries.places:places:2.2.0'"
I have gone through following links. But no use. Please help me with this.
Failed to resolve: com.google.android.libraries.places:1.0.0:
Google's new Places Library ( implementation 'com.google.android.libraries.places:1.0.0') not resolving
Finally i found solution to my issue.
I solved it by installing the compatibility library.
Followed this. https://developers.google.com/places/android-sdk/client-migration
Following two steps resolved my issue.
Copy the contents of places_compat_compatify.sh, and save as a file to your local computer.
Use the following command to run the compatibility script
./places_compat_compatify.sh 2.1.0
After this, I could run my project successfully and could Place API.
Thanks

Missing PHPUnit_Extensions_Story_TestCase when using codecept.phar and yii

There are a lot of questions about "phpunit/phpunit_story" module, and here is another one:
We're using Yii with Codeception, which contains PHPUnit, but missing the PHPUnit_Extensions_Story_TestCase.php module. We're also not using pear or composer. Everytime I'm running /utests I'm getting following warning:
PHP Warning: include(PHPUnit_Extensions_Story_TestCase.php): failed to open stream: No such file or directory in /*/framework/YiiBase.php on line 421
There are a lot of answers about how to fix this problem with pear or composer, but is there any other way to deal with this warning?
This usually happens when your autoloader is too eager, ie. when it tries to load sourcecode files for classes it is not responsible for.

I keep getting "The following module(s) were not installed properly"

I installed prestashop successfully through your marketplace, and been able to play around with it and also to upload new modules. But every time i try to install the uploaded modules, i get this message
"The following module(s) were not installed properly:"
But the prestashop default modules do install without issues.
What is causing that problem? because the same modules were uploaded and installed without issues on cpanel shared web hosting?
Check modules sql commands for installation. I think module has an character issue. if u enable debugmode and display errors on config/defines.inc.php u can see where the error is.
If u cant solve.
Find this line on your module main php ( for "testmodule" its "testmodule.php") "if (!DB::getInstance()->execute(trim($query))) return false;" some think like that. And remove or close this line. But when u doing this u must manualy run modules sql code with phpmyadmin or something else after or before install module.
modules sql files usualy "install.sql" but some this coders add sql code on modules main phps.
This is a generic error and means that your module installation has failed.

Class 'Google_Service' not found

I am working on the Google + API blogger code. I have downloaded this file
https://github.com/google/google-api-php-client
I have inserted my Google Developer codes in the right places I do believe.
I am getting this error
Fatal error: Class 'Google_Service' not found in /home3/aundie/public_html/dandewebwonders.com/Blog/google-api-php-client-master/src/Google/Service/Blogger.php on line 33
Any help for a new developer in training would be most helpful. Thank you in advance
Try to include autoload.php file as the first require statement. I got the same error and this solved it for me.
require_once 'google-api-php-client/src/Google/autoload.php';
I hit the same problem as well. The solution is moving to php 5.3 or higher, as the Google API PHP client uses the newer class loading mechanism in php.
Just as the following at the beginning of the code, the same as advised by Lamiaa El-morsy
require_once 'src/Google/autoload.php';
On the GitHub page, they've explained the requirement.
So, you must install the required library first, by doing the following command if you're using composer.
$ composer require google/apiclient:^2.0

ImproperlyConfigured about template in django project

When I am trying to access my django site, it appeared the ImproperlyConfigured error say that "Module "django.template.loaders.filesystem" does not define a "Loader" callable template source loader".
I use Bitnami Django Stack and this is not the first time I installed it, so I think that there is the conflict between the old and new one somehow. I tried to clean the previous installation many times but it still be the same.
Sounds like you're trying to run the site on an older Django version.
In the settings.py file try 'django.template.loaders.filesystem.load_template_source' instead of 'django.template.loaders.filesystem.Loader'. The Loader name was changed in more recent versions.