This forum is in READ-ONLY mode.
You can look around, but if you want to ask a new question, please use Stack Overflow.

newbie- day 2

Discussion around this tutorial for symfony 1.0.x

newbie- day 2

by ahsan » Tue Jul 08, 2008 11:32 am

Dear Friends,


I am new to symfony. I have used pear to install the framework. Then....i followed the askeet tutorial....

But on day two... while generating CRUD
($ symfony propel-generate-crud frontend question Question)
...i got the following error :-s

************************************************************ ************************************************************ *******************
C:\work_directory\introspection>symfony propel-generate-crud frontend ask_questi
on Question
Notice: Undefined variable: cache in C:\xampplite\php\pear\symfony\generator\sfG
eneratorManager.class.php on line 65

Failed to make cache directory "".
************************************************************ ************************************************************ *******************

Thanks and have a nice time :)~ :-)~ :smile:


-
ahsan
ahsan
Junior Member
 
Posts: 1
Joined: Tue Jul 08, 2008 10:51 am
Location: dhaka

Re: newbie- day 2

by KayakJim » Wed Jul 09, 2008 5:41 pm

If your project does indeed have a cache and log folder, then you may need to set the permissions to be writable by everyone.
KayakJim
Junior Member
 
Posts: 7
Joined: Thu Jul 03, 2008 5:01 pm
Location: Cookeville, TN

Re: newbie- day 2

by Umash » Mon Jul 14, 2008 1:56 pm

Hi,

At the moment i have the same problem. I peeked in the source-code of symfony 1.1 and replaced in sfGeneratorManager.Class.php

throw new sfCacheException(sprintf('Failed to make cache directory "%s".', dirname($cache)));


with

throw new sfCacheException(sprintf('Failed to make cache directory "%s".', dirname($path)));


Now i get following message:
" Failed to make cache directory "D:\development\xampp\
e0cd8384cca989e9b64e48fdbdf053b\autoQuestion/actions"."


I found the directorye "e0cd....", but the rest is missing.

Perhaps mkdir doesn t like the "/", but i am not a php-expert.

Ciao,
Holger
Umash
Junior Member
 
Posts: 1
Joined: Mon Jul 14, 2008 1:37 pm
Location: Aachen

Re: newbie- day 2

by exiang » Fri Jul 25, 2008 7:35 pm

this problem happens on windows os.
like Holger said, it is bcs of the / problem

a temporary fix would be:

$path = str_replace("/", "\\", sfConfig::get('sf_module_cache_dir').DIRECTORY_SEPARATOR.$pa th);

Hopefully this will get the attention of the developer.
exiang
Junior Member
 
Posts: 1
Joined: Fri Jul 25, 2008 7:05 pm

Re: newbie- day 2

by Notorious » Sat Aug 02, 2008 12:53 am

To get the attention of a developer you should create a Trac ticket. It's impossible for them to search through the forums for issues like this one.
Notorious
Senior Member
 
Posts: 147
Joined: Mon Mar 05, 2007 10:17 pm