InvalidArgumentException error while trying to install CakePHP in WAMP - cakephp

I am a beginner into CakePHP, I am trying to make a setup of CakePHP environment in my Windows 7 PC. I could successfully install composer, but when i run this command(composer create-project --prefer-dist cakephp/app myapp) to install CakePHP v3.x, I get an error [InvalidArgumentException] Could not find package cakephp with stability stable.
Here is the correct and right Screenshot of the error:
Screenshot1
I am using WAMP server, and my PHP version is 5.3.8
Please help me in fixing the issue.
Thanks in Advance

I only means that you have not installed GIT yet, or forgot to set in PATH environment variable.

I got the same error I did upgrade Wampserver to 2.5 It's working fine.
because it has PHP 5.5.

Related

migration php 5 to php 7 cakephp

I am trying to make test environment for my cake project however the migration from php 5.X to 7.1.0 proves to be a nuisance.
I have succesfully installed a new fresh apache2.4 vc14 x64 bit installation.
This apache installation uses a fresh PHP vc14 x64 7.1.0 installation. Both have been checked and are indeed working perfectly.
Now the problem:
I have a cakephp product using a shared created library in the plugins folder, this was working perfectly in CakePHP 2.8.5 using php 5.x. This plugin is loaded in the bootstrap and used the way cakephp intends us to. However the moment i try to run the old project in the fresh installation it is suddenly unable the load the plugin files. Again everything is loaded in the bootstrap and usage has not been changed whilst moving the content to its new location. I have checked a fresh cakephp installation in the new environment and this is also working splenditly.
I am quite baffled at the moment has anyone having experience using cakephp encoutered this particular problem feel free to fire away with some ideas as to what i might have missed.
i will show some code how everything is loaded and used.
CakePlugin::Load('RemFlex');
<?php echo $this->Html->css('RemFlex.flexdetail'); ?>
<?php echo $this->Html->script('RemFlex.flexportal'); ?>
the plugin directory looks like this
Cakephp_program
-App
-Plugin
-RemFlex
-webroot
-js
-Css
-Controller
-Vendor
Fixed this problem by enabling the rewrite_module in the httpd.conf file of the apache installation. This enabled my htacces to actually work.

jhipster bookstore tutorial - Only display the footer view at runtime

I'm trying to start using hipster. I've completed the installation and tried to recreate the same bookstore app like in the demo video.
Everything went well (installation, app creation, app startup, DB schema creation) but when I access the application in the browser, I only the text "This is your footer". I don't have the header and the body like in the demo. There is no error in the console. I assume something is wrong with AngularJS but I don't know what.
I'm on Mac OS 10.10
JDK 1.8._45
eclipse Luna (I've successfully imported the generated hipster project as a Maven project)
If you have any suggestion on where to investigate. Thanks.
Ok, the root cause was that the bower components were not properly installed.
To resolve the issue, I've done:
sudo xcodebuild -license (without agreeing with the license, it was
preventing bower to complete)
sudo bower install --allow-root (to download all the components)
Had the same problem in Google Chrome. Fixed by clearing cache and cookie.
Maybe, it`s help you too.
in my case i used a postgresql database. I changed the user password in both application-dev.xml and application-prod.xml and also on the database.
alter user myuser password 'mypassword' ;
then restarted the app with command mvn sprint-boot:run
then it worked

There was an issue communication with the cmd server.Check to make sure you have the latest version of cmd installed

I have upgrade a solution which was developed in Exts JS 4 with sencha architect 3 to Exts JS 5 using sencha architech 3.1.After upgrading ,i am getting following error.
"There was an issue communication with the cmd server.Check to make sure you have the latest version of cmd installed."
Could someone help me????
I had this issue and I resolved it by running the sencha CMD server.
I was able to start it up using the instructions from: http://www.ladysign-apps.com/developer/use-the-sencha-cmd-webserver/#.VHGF5dKUdAo.
I imagine there is more info on this in the Sencha documentation but this seemed to make the error go away for me.
I had to download and install the Java JDK form Oracle.
Java SE Development Kit 8
Mine is running on a Mac OS X Yosemite.
And i was using Sencha Architect 3.2

Installation of force.com IDE

While installing force.com IDE software into eclipse I'm getting following error. Can anyone please help me to resolve this error?
An error occurred while collecting items to be installed
session context was:(profile=epp.package.jee, phase=org.eclipse.equinox.internal.p2.engine.phases.Collect, operand=, action=).
Problems downloading artifact: osgi.bundle,com.salesforce.ide,29.0.0.201310181333.
MD5 hash is not as expected. Expected: 2077dcd58a86278b97c02fda56a61fb7 and found c0f025ffecb6211e4b9242fbac71cc2f.
Artifact not found: http://media.developerforce.com/force-ide/eclipse42/plugins/com.salesforce.ide.deployment_29.0.0.201310181333.jar.
http://media.developerforce.com/force-ide/eclipse42/plugins/com.salesforce.ide.deployment_29.0.0.201310181333.jar
Force.com IDE plugin officialy supports Eclipse version 3.6/3.5/3.4 and works under java 1.6
More higher eclipse version or java 1.7 may be the cause of your problem.
There are many workarounds in the Internet, please try to find them with google.
Or you can try to use MavensMate
The current version of the Force.com IDE can be installed to the latest version of Eclipse - 4.3 Kepler - without any problems. Find detailed information here.
It worked for me with Kepler using following update site:
http://media.developerforce.com/force-ide/eclipse42

Google App Engine .jsp Problem

I just created a .jsp file in my google app engine project. How to resolve the below error.
Description Resource Path Location Type
Your project must be configured to use a JDK in order to use JSPs
proj1.jsp
/Proj1/war Unknown Google App Engine Problem
Kindly let me know.
it is the error. In order to compile jsp you need a jdk installed in your system. If you are running on a JRE you will get this error. Also make sure that your project has been configured with a jdk in it's path.
For sake of improving answers
stack over flow reference
.jsp file not working for Google App Engine guestbook tutorial
the accepted answer was a year ago
updated answer from reference
In the end I seem to have wasted my bounty as I found the solution (with a little help) myself.
The problem arose because I was unfamiliar with Eclipse. When I found the more verbose error message Your project must be configured to use a JDK in order to use JSPs guestbook.jsp.
It was located in a tab called 'Markers' in pane found at the bottom of the Eclipse window.
It seems that Eclipse wasn't aware that I had installed the JDK.
In Eclipse I went to menu Window->Preferences->Java->Installed JREs . Eclipse had only one entry there named jre6 I clicked the Add... button Chose Standard VM and browsed to the base directory of the jdk (in my case C:\Program Files\Java\jdk1.6.0_20)
I rebuilt my project but the same error was there. I had forgotten to check the box that tells Eclipse to use the jdk instead of the jre.
As soon as I did that Eclipse rebuilt my project and the error was gone.
To solve this problem, first please confirm that JDK is already install on your computer. If it not available, go to Oracle JDK hompage to download and install it.
Then follow some steps to config JDK.
When JDK is configured, return eclipse and build project if you still get current error, I decide you are using JRE instead JDK. Choose Prefrences - Java - Install JRE - Un-check JRE and check JDK
Rebuild project
Hope this help!
Set JDK as your Installed JREs in Eclipse.
In Eclipse Window->Preference->Java->Installed JREs
Click on Add Button | Select VM ->Add JRE
Select Folder of jdk as "JRE Home" Directory.
Click OK.
Build your GAE Project
JFTR:
For those who use Ubuntu and OpenJDK, and may come here looking for help on the same issue: EVEN when it is called Open*JDK* (i.e. java-6-openjdk) actually you may have installed only the JRE part since they are on different packages, so you need to install also the JDK. For version 6 this is done via:
$ sudo apt-get install openjdk-6-jdk
Note that you may have yet an openjdk-6-jre in your system.
If your problem persist, you must sure that in your project use JDK library. Go to your project->click right->Build Path->Configure Build Path->Add library->JRE System Library->Select "Workspace default JRE (jdk1...)"->Finish, and in "Order and Export" UP your JDK Library above JRE Library. When you save your proyect it´s ok.

Resources