cakePHP bake fails on opening .core.php file - php

im trying to bake a test project to evaluate cakePHP 2.4.1, and when i do cake bake, before the DB configuration i get the following warnings\errors:
Warning Error: file_get_content(/core.pp): failed to open stream: No such file or directory in [C:\cakePHP\lib\cake\Utility\File.php, line 157]
and after that, a whole bunch of errors (unable to set seed, unable to set cache prefix , unable to set CAKE_CORE_INCLUDE_PATH etc.)
Any help will be appreciated,
Boris.

I also setup recently cakePHP 2.4.1 and there is no error as such you described. Also there is no file like core.pp, it is core.php.
You can download it again from https://github.com/cakephp/cakephp/zipball/2.4.1 and set it up again.

Found the problem:
i set the skel path to the cakePHP base folder, and not to cakePHP\app.

Related

Symfony 3.4 Where to Put Auto-Generating Proxy Class Config Mode?

Symfony is complaining about renaming proxy classes during my multiple instance command execution. Basically, I am running a Symfony command mutliple times at the same time, and it is throwing an error for generated proxy classes not being able to be renamed...
In ProxyGenerator.php line 293:
Warning: rename(/Users/jlroberts/Projects/Shred/Symfony/var/cache/dev/doctrine/orm/Proxies/__CG__AppBundleEntityNslocaleCountryNames.php.5ee27c106fc5f0.51071995,/Users/jlroberts/Projects/Shred/Symfony/var/cache/dev/doctrine/orm/Proxies/__CG__AppBundleEntityNslocaleCountryNames.php): No such file or directory
I found this issue on github
https://github.com/doctrine/common/issues/327
And I think it says to set the AutoGeneratedProxyClasses to AUTOGENERATE_FILE_NOT_EXISTS, which I found on
https://www.doctrine-project.org/projects/doctrine-orm/en/latest/reference/advanced-configuration.html
Which says I use this following line to set that mode
$mode = AUTOGENERATE_FILE_NOT_EXISTS;
$config->setAutoGenerateProxyClasses($mode);
but where do I put that line?

Symfony 3 deploying app via ftp error

I need to upload my symfony 3 project online, but I have only access to ftp. So I did all necessary steps I found:
composer update
Clear the cache for production: php app/console cache:clear --env=prod
Upload all app folder on server
After I open my website I got the following error:
Fatal error: require(): Failed opening required
'/nfsmnt/hosting2_1/a/8/a87b3594-7cfe-459e-ad62-286d2dba2c54/zorbfutbal.sk/web/var..\vendor\symfony\symfony\src\Symfony\Component\ClassLoader\ApcClassLoader.php'
(include_path='.:/usr/php56/lib/php') in
/nfsmnt/hosting2_1/a/8/a87b3594-7cfe-459e-ad62-286d2dba2c54/zorbfutbal.sk/web/var/bootstrap.php.cache on line 1780
I checked the file and I have it there and also set all permissions.
What is confusing me is that path from error before my actual domain name.
"/nfsmnt/hosting2_1/a/8/a87b3594-7cfe-459e-ad62-286d2dba2c54/"
I dont know where it comed from and how to fix it.
Any idea? Thanks
You are absolutely sure you set the file permissions correctly like indicated here:
http://symfony.com/doc/current/setup/file_permissions.html#using-acl-on-a-system-that-supports-setfacl-linux-bsd
The message you posted seems to point to something like that.
Also run:
php bin/symfony_requirements
just to check that you've met all the other requirements.

Laravel 4.2 storage_path() returning null

I'm trying to get phpunit set up in my app but I get the following error when I try to run phpunit:
ErrorException: file_put_contents(/meta/services.json): failed to open stream: No such file or directory
It looks like the reason is because storage_path() is returning null and I have no idea why or how to intelligently fix it. I did not develop this app so for all I know, the storage path could be rewritten to null(if this is even possible) manually without my knowing. However, I can't find any evidence of this.

Seemingly missing file when using JanRain OpenID PHP library with MySQL

I've just set up the JanRain OpenID library for PHP (https://github.com/openid/php-openid). I'm attempting to use the example server file, and the error I get is:
Warning: require_once(DB.php): failed to open stream: No such file or directory in /path/to/file/examples/server/config.php on line 28
I have searched the package and have not found any such file (DB.php). I do not see mention of it being generated. The config file I'm using was generated by the JanRain library's setup.php script.
Can anyone point me in the direction of what this file (which the library seems to expect) is and how I can obtain it?
DB.php is a part of pear DB package,
#pear install DB
for centos 6.x
#pear install DB-1.8.2
Thank for http://nobuneko.com/blog/archives/2016/01/php_533_pear_install_db_failed_php_540_higher.html

Error when building models from propel schema

I got the errors below when running the command below. I already have my schema file generated from reverse engineering through propel.
Command
vendor/bin/propel build
Error 1
[RuntimeException]
Unable to write the "" directory
Error 2
[Symfony\Component\Filesystem\Exception\IOException]
Failed to create "": mkdir(): Invalid path.
Sounds like propel doesn't know where to put the files. Typing propel --help will give you command line options. There you find an option to specify an output folder.
propel model:build --output-dir C:\temp
(you'll have to specify a local OS X path instead of my Windows temp folder)
As I'm just trying out propel myself, the following post has lead me to the suspicion my propel.ext file is incomplete.
https://github.com/propelorm/Propel2/issues/694

Categories