Lefora Free Forum
176 views

conf.php file is not created by phocoa

Page 1
posts 1–4 of 4
rookie - member
4 posts

I'm revisiting phocoa after a break, and just upgraded my install to the latest :

phocoa 0.2.3
smarty 2.6.22
phing   2.3.3   stable
Yaml    1.0.1   stable
creole           1.1.0   stable
propel_generator 1.3.0   stable
propel_runtime   1.3.0   stable

I'm running through the blog install from scratch and found that the conf file blog/blog/conf/blog-conf.php is not being created and causing an error:

Fatal error: Uncaught exception 'PropelException' with message 'Unable to open configuration file: '/var/www/blog/blog/conf/blog-conf.php'' in /usr/share/pear/propel/Propel.php:272 Stack trace: #0

Creating an empty file causes this error to go away. I didn't recall anything in the install doc discussing this. Now I get the following error :

Warning: Invalid argument supplied for foreach() in /usr/share/pear/propel/Propel.php on line 250
Module 404: invocation path 'blog' could not be found.

Is this an issue with my setup, bug, or other user error?

Chris

novice - founder
12 posts

I'll bet you're still on propel 1.2. In propel 1.3 they changed the "task" name that creates that file, and if you are using phocoa to set up your propel support, then it runs the new task "convert-conf" instead of the old one "convert-props".

You should upgrade to propel 1.3 and then run:

propel-gen propel-build/ convert-conf

Alan

rookie - member
4 posts

Unless I'm missing something, I am running Propel 1.3 :

[root@is2 ~]# pear list -a
Installed packages, channel __uri:
==================================
(no packages installed)
Installed packages, channel pear.horde.org:
===========================================
Package Version State
Yaml    1.0.1   stable
Installed packages, channel pear.phing.info:
============================================
Package Version State
phing   2.3.3   stable
Installed packages, channel pear.php.net:
=========================================
Package          Version State
Archive_Tar      1.3.2   stable
Console_Getopt   1.2.3   stable
Log              1.9.11  stable
Mail             1.1.14  stable
Mail_Mime        1.5.2   stable
Mail_mimeDecode  1.5.0   stable
Net_SMTP         1.3.2   stable
Net_Socket       1.0.9   stable
PEAR             1.6.2   stable
PhpDocumentor    1.4.2   stable
Structures_Graph 1.0.2   stable
XML_RPC          1.5.1   stable
Installed packages, channel pear.phpdb.org:
===========================================
Package          Version State
creole           1.1.0   stable
propel_generator 1.3.0   stable
propel_runtime   1.3.0   stable
Installed packages, channel pecl.php.net:
=========================================
(no packages installed)

novice - founder
12 posts

With propel 1.3 you don't need creole anymore. Use the new "reverse" target instead. And you need to run "convert-conf" too. It's what converts the propel-build/runtime-conf.xml into the blog-conf.php file.

Does that help?

Also I haven't tried to follow the instructions for the blog tutorial lately. It's possible it's not correct, but it does sound like you just aren't running convert-conf.

Page 1
posts 1–4 of 4

This Topic Is Locked To Guest Posts

It's been a while since this topic was active, if you'd like to get it going again, please post as a registered member

join now