Propel-gen fatal error required file not found - php

I'm new to Propel. A friend of mine had experience with it and recommended it to me but I cannot get it to generate for some reason. I already have a project generated with Propel. I'm trying to generate this project again to check if my installation is correct.
The error I'm encountering is:
[PHP Error] require_once(/usr/share/php/data/propel_generator/lib/task/../../stubs/functions.php): failed to open stream: No such file or directory [line 12 of /usr/share/php/data/propel_generator/lib/task/AbstractPropelTask.php]
PHP Fatal error: require_once(): Failed opening required '/usr/share/php/data/propel_generator/lib/task/../../stubs/functions.php' (include_path='/usr/share/php/data/propel_generator/lib:/home/casper/Desktop/*/vendor/propel/propel1:/usr/share/php/../classes:.:/usr/share/php:/usr/share/pear') in /usr/share/php/data/propel_generator/lib/task/AbstractPropelTask.php on line 12
(folder contains domain of the website, replaced with *)
I suppose the error is it is trying to include:
/usr/share/php/data/propel_generator/lib/task/../../stubs/functions.php
While it should be trying to include:
/home/casper/Desktop/*/vendor/propel/propel1/runtime/stubs/functions.php
Any help would be greatly appreciated.
(Full result of propel-gen: http://pastebin.com/raw.php?i=hzp4caws)
*I am running Ubuntu 14.10

Related

What is the right way to run downloaded project developed by yii to my local server

Recently, I have downloaded a project developed in yii but when I tried to run this project to my local server using XAMPP, I got the following errors.
Warning:
require(C:\xampp\htdocs\yii2-tutorial-master\web/../vendor/autoload.php):
failed to open stream: No such file or directory in
C:\xampp\htdocs\yii2-tutorial-master\web\index.php on line 7
Fatal error: require(): Failed opening required
'C:\xampp\htdocs\yii2-tutorial-master\web/../vendor/autoload.php'
(include_path='C:\xampp\php\PEAR') in
C:\xampp\htdocs\yii2-tutorial-master\web\index.php on line 7
I want to know if there are some procedures to do it.
Thanks in advance.

How to install Zendframework 1 in xampp

So i'm new in zendframework and i want to try zf version 1 , i cannot find a good documentation for this. i'm having an error when i try to run the downloaded file in xampp
here's the screen shot of my folder structure
I install zend framework using composer zendframework/zenframework
then here's the error
Warning: require_once(Zend/Application.php): failed to open stream: No such file or directory in D:\xampp\htdocs\Zend\public\index.php on line 17
Fatal error: require_once(): Failed opening required 'Zend/Application.php' (include_path='D:\xampp\htdocs\Zend\library;D:\xampp\php\PEAR') in D:\xampp\htdocs\Zend\public\index.php on line 17
you should read and understand step-by-step from here :
https://framework.zend.com/manual/1.11/en/learning.quickstart.create-project.html
Or,
https://framework.zend.com/manual/1.12/en/learning.quickstart.html
first try to understand the application structure.
As you are new in Zend framework, I think this is the best place to start.

Symfony installing first step -> Warning and Fatal Error

I'm currently trying to install symfony on ubuntu.
Problem, after typing :
php symfony.phar new Symfony
it returns me this :
PHP Warning: require(/opt/lampp/htdocs/Symfony/app/SymfonyRequirements.php): failed to open stream: No such file or directory in phar:///opt/lampp/htdocs/symfony.phar/src/Symfony/Installer/DownloadCommand.php on line 264
PHP Fatal error: require(): Failed opening required '/opt/lampp/htdocs/Symfony/app/SymfonyRequirements.php' (include_path='.:/usr/share/php:/usr/share/pear') in phar:///opt/lampp/htdocs/symfony.phar/src/Symfony/Installer/DownloadCommand.php on line 264
I can't understand where can be the problem, and I couldn't find any solution on the internet.
Does one of you know where can be the problem ?
Thank you
Best regards
FabulousCo
I believe you have to add the version you are trying to install.
>symfony new my_project_name 3.0.0
Please see the answer here.

GoogleAppEngine PHP issue

I'm running dev_appserver.py PHP runtime in MAC OS, according to the instructions here:
https://developers.google.com/appengine/docs/php/gettingstarted/helloworld
But at localhost:8080 I keep getting:
Warning: require(index.php): failed to open stream: No such file or directory in /Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/google/appengine/tools/devappserver2/php/setup.php on line 103
Fatal error: require(): Failed opening required 'index.php' (include_path='/Users/evelynrios/Documents/JavaScript/JSON:AJAX/BayAreaBikeShare:/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/php/sdk') in /Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/google/appengine/tools/devappserver2/php/setup.php on line 103
A previous user posted this answer, here:
GoogleAppEngine root:php failure(255)
"I got the right answer from hakre: )
The problem is I also have a python version Google-App-engine. In order to solve this this problem, I need to specify the "dev_appserver" to PHP-GAE-SDK"
But I have no idea what that means and there is no further explanation on SO.
The problem turned out to be a bad directory name.

PHPunit test not working

I'm trying to learn zend framework 2 with this phpunit added, but I cannot get it work. I've followed the steps in the official zf2 tutorial (http://framework.zend.com/manual/2.0/en/user-guide/unit-testing.html) and now I'm facing some kind of error message clueless
Warning: require_once(File/Iterator/Autoload.php): failed to open stream: No such file or directory in C:\xampp\php\pear\PHPUnit\Autoload.php on line 64
Fatal error: require_once(): Failed opening required 'File/Iterator/Autoload.php' (include_path='.;\php\zend_framework\library;\php\pear\PEAR') in C:\xampp\php\pear\PHPUnit\Autoload.php on line 64
PS C:\xampp\htdocs\new103\module\Application\test>
Needed to change the php.ini include_path to list of absolute paths, phpunit can be ran now.

Categories