# |
Feb 7th 2018, 21:51 |
amit |
I am uploading images but the problem is the file is upload and when I save the file name in the db I am getting validation error |
# |
Feb 7th 2018, 21:50 |
amit |
Hi All |
# |
Feb 7th 2018, 21:42 |
spencdev |
Can you gist your controller? |
# |
Feb 7th 2018, 21:33 |
blackjccl |
File uploaded https://cakesf.slack.com/files/U5V7HDBHC/F96LKLB8X/create_folder_a_root.php / https://slack-files.com/T053DPNCM-F96LKLB8X-979032f7fe |
# |
Feb 7th 2018, 21:32 |
blackjccl |
I was doing well |
# |
Feb 7th 2018, 21:32 |
blackjccl |
a query as I do to create a folder in the root |
# |
Feb 7th 2018, 21:31 |
blackjccl |
Hello guys |
# |
Feb 7th 2018, 21:07 |
ank068 |
A var_dump of $this->Flash in AppController gives bool(false).. Does that help in any way? |
# |
Feb 7th 2018, 20:58 |
ank068 |
Do i need to impost the FlashComponent? |
# |
Feb 7th 2018, 20:28 |
narendravaghela |
is there any example on that? |
# |
Feb 7th 2018, 20:28 |
narendravaghela |
I am facing an issue with https://github.com/FriendsOfCake/cakephp-upload when there is belongsToMany relation beetween models |
# |
Feb 7th 2018, 20:16 |
alysson-azevedo |
I mean, the `parent::__construct($request, $response, $eventManager, $viewOptions);` would be called before assigning a new $response, right? |
# |
Feb 7th 2018, 20:15 |
alysson-azevedo |
? |
# |
Feb 7th 2018, 20:15 |
alysson-azevedo |
How this piece of code (https://github.com/cakephp/cakephp/blob/master/src/View/SerializedView.php#L49-L53) woud be if it was using `$response = $response->withType('html');` |
# |
Feb 7th 2018, 20:00 |
ank068 |
This is actually the main index page of my website. It is in the AppController in the initialize function |
# |
Feb 7th 2018, 19:59 |
spencdev |
and if so, what function? |
# |
Feb 7th 2018, 19:59 |
spencdev |
@ank068 where are you using loadComponent? The controller? |
# |
Feb 7th 2018, 19:57 |
ank068 |
i have loadcomponent for Flash but i am still getting this "Error: Call to a member function success() on boolean" |
# |
Feb 7th 2018, 19:52 |
mikesmoniker |
Can anyone tell me when CakeFest tickets usually go on sale? |
# |
Feb 7th 2018, 19:00 |
spencdev |
Me neither, I’ve never actually thought it was worth the time haha |
# |
Feb 7th 2018, 19:00 |
diego182 |
color* |
# |
Feb 7th 2018, 19:00 |
diego182 |
maybe you could change the collor? i know you can change the color but never messed with it |
# |
Feb 7th 2018, 18:59 |
spencdev |
But holdling ctrl usually does the trick |
# |
Feb 7th 2018, 18:59 |
spencdev |
Yeah, it’s always hard to tell with PhpStorm. I have difficulty telling apart the blue from the purple |
# |
Feb 7th 2018, 18:58 |
diego182 |
its a good idea to use a IDE with Intelligent code completion, it helps preventing this kind of errors |
# |
Feb 7th 2018, 18:57 |
spencdev |
I’ve found that every time I get that error, I’ve made a typo in one of the function names... Worked for me so far. |
# |
Feb 7th 2018, 18:56 |
diego182 |
that happens, sometimes right after ask something i figure out what was wrong lol |
# |
Feb 7th 2018, 18:54 |
davinci |
ofc that was it |
# |
Feb 7th 2018, 18:54 |
davinci |
@diego182 man it's a rough day. :slightly_smiling_face: Thanks again. |
# |
Feb 7th 2018, 18:53 |
diego182 |
@davinci |
# |
Feb 7th 2018, 18:52 |
diego182 |
$this->_table |
# |
Feb 7th 2018, 18:52 |
diego182 |
did put the underline before table? |
# |
Feb 7th 2018, 18:47 |
davinci |
@diego182 well... maybe not. Now I'm getting `Call to a member function associations() on null` in error log and `Undefined property: App\Model\Behavior\MyBehavior::$table in ...` in the debug log |
# |
Feb 7th 2018, 18:43 |
diego182 |
awesome! |
# |
Feb 7th 2018, 18:38 |
davinci |
@diego182 well that was simple enough. Thanks! |
# |
Feb 7th 2018, 18:37 |
diego182 |
$this->_table @davinci |
# |
Feb 7th 2018, 18:35 |
davinci |
any idea how I access ->associations() within a behavior? |
# |
Feb 7th 2018, 18:03 |
dereuromark |
we probably need better defaults here, shouldnt happen that quick :slightly_smiling_face: |
# |
Feb 7th 2018, 18:00 |
saeideng |
This could be happening because the VPS runs out of memory and has no Swap space enabled. |
# |
Feb 7th 2018, 18:00 |
saeideng |
https://getcomposer.org/doc/articles/troubleshooting.md#proc-open-fork-failed-errors |
# |
Feb 7th 2018, 17:52 |
dereuromark |
Did you guys get this in cakebox? ``` The following exception is caused by a lack of memory or swap, or not having swap configured Check https://getcomposer.org/doc/articles/troubleshooting.md#proc-open-fork-failed-errors for details [ErrorException] proc_open(): fork failed - Cannot allocate memory ``` |