# |
Jun 27th 2019, 09:12 |
a.didier |
Hello, when i put `App::uses('HttpSocket', 'Network/Http');` in my Component all my app crash with this error message `Cannot use object of type stdClass as array` The stack trace say this : ``` CORE/Cake/View/View.php line 971 → include() CORE/Cake/View/View.php line 933 → View->_evaluate(string, array) CORE/Cake/View/View.php line 473 → View->_render(string) CORE/Cake/Controller/Controller.php line 968 → View->render(null, null) |
# |
Jun 27th 2019, 08:59 |
challgren |
@admad do you know of any CVE’s with cake 2.10.13+? |
# |
Jun 27th 2019, 08:47 |
challgren |
I wonder if dereuromark already fixed his upgrade plugin |
# |
Jun 27th 2019, 08:44 |
challgren |
I was planning on update to the final release and push to prod |
# |
Jun 27th 2019, 08:44 |
challgren |
Ok, cause I was all gun hoe about it being ready for 3.8 and now I got work to do |
# |
Jun 27th 2019, 08:44 |
admad |
@challgren I'll bring that up with the team and try to do better in future :slightly_smiling_face: |
# |
Jun 27th 2019, 08:43 |
challgren |
Ok back to 3.8.0 why didn’t the validation deprecation change happen during the RC? |
# |
Jun 27th 2019, 08:41 |
madbbb |
@admad thank you! It is really sends event to global listener))) I didn't notice that trait returns local event manager |
# |
Jun 27th 2019, 08:41 |
slackebot |
<challgren> |
# |
Jun 27th 2019, 08:41 |
neon1024 |
;) |
# |
Jun 27th 2019, 08:41 |
neon1024 |
Careful, or we’ll throw a random u in there too! |
# |
Jun 27th 2019, 08:40 |
challgren |
England spells it cancelled |
# |
Jun 27th 2019, 08:40 |
neon1024 |
I don’t get that one |
# |
Jun 27th 2019, 08:39 |
challgren |
Well you know why in England canceled has 2 l’s, its because we gave them that extra L :P |
# |
Jun 27th 2019, 08:39 |
neon1024 |
Although with Boris Johnson on the horizon, we’ll screw that up as well :face_palm: |
# |
Jun 27th 2019, 08:39 |
neon1024 |
Besides, *cough* Trump |
# |
Jun 27th 2019, 08:39 |
admad |
x) |
# |
Jun 27th 2019, 08:39 |
neon1024 |
Careful @challgren without England your country wouldn’t exist |
# |
Jun 27th 2019, 08:38 |
admad |
Yeah not like England is gonna win that either :P |
# |
Jun 27th 2019, 08:38 |
challgren |
And we’ll beat the English just like we did many many years ago :P |
# |
Jun 27th 2019, 08:38 |
neon1024 |
Yeah, if England beat Norway, it might be ENG v USA |
# |
Jun 27th 2019, 08:37 |
challgren |
@neon1024 USA USA!!! |
# |
Jun 27th 2019, 08:37 |
neon1024 |
I’ll watch the Womens Football World Cup instead ;) |
# |
Jun 27th 2019, 08:37 |
neon1024 |
@admad I don’t see England making the semi-finals |
# |
Jun 27th 2019, 08:36 |
admad |
You should worry about Sunday xP |
# |
Jun 27th 2019, 08:36 |
slackebot |
config/app.php. in [/Users/challgren/Projects/electric/vendor/cakephp/cakephp/src/Core/functions.php, line 311] ` |
# |
Jun 27th 2019, 08:36 |
challgren |
Arhhhhhhhh `Deprecated Error: You are using a deprecated argument order for Cake\Validation\Validator::allowEmptyString. You should reverse the order of your `when` and `message` arguments so that they are `message, when`. - /Users/challgren/Projects/electric/vendor/cakephp/cakephp/src/Validation/Validator.php, line: 855 You can disable deprecation warnings by setting `Error.errorLevel` to `E_ALL and ~E_USER_DEPRECATED` in your |
# |
Jun 27th 2019, 08:36 |
neon1024 |
@admad India to beat Windies by 4 wickets today I reckon |
# |
Jun 27th 2019, 08:35 |
admad |
Any event you dispatch will be sent to global instance too |
# |
Jun 27th 2019, 08:32 |
madbbb |
why can't shell use global instance? |
# |
Jun 27th 2019, 08:31 |
admad |
Yes, you are setting on global instance |
# |
Jun 27th 2019, 08:29 |
madbbb |
$this->getEventManager() is clean without any listeners on it. Are instances are different? |
# |
Jun 27th 2019, 08:22 |
madbbb |
bootstrap.php loads after bootstrap_cli.php |
# |
Jun 27th 2019, 08:17 |
kgb.acct.personal |
bootstrap_cli.php |
# |
Jun 27th 2019, 08:11 |
madbbb |
I register my event listeners in bootstrap.php file everything work as expected, but I can't see registered listeners in my shell. Where do I register them to get listeners work in shell? |
# |
Jun 27th 2019, 08:06 |
madbbb |
Morning! |
# |
Jun 27th 2019, 07:45 |
conehead |
Hmm if you would want the user to let him choose which fields he wants to be seen in a form and which not. How would you go for it? Save his configuration in the database and pass it into each session. When rendering the form access the session and check if the field should be visible? |
# |
Jun 27th 2019, 07:31 |
neon1024 |
Morning everyone |
# |
Jun 27th 2019, 07:19 |
conehead |
Is the expected value in code_id? Or is the value incorrect? |
# |
Jun 27th 2019, 05:29 |
slackebot |
else { $this->log('no save'); } } } ``` |
# |
Jun 27th 2019, 05:29 |
chan |
after save data i want to save code_id by auto increment id, but code_id not save in table, what wrong? my coding is following. i write model of cakephp2 afterSave function. ``` public function afterSave($created, $options = array()) { if ($created) { $this->data[$this->alias]['id'] = $this->id; $this->data[$this->alias]['code_id'] = 'U' . str_pad($this->id, 5, "0", STR_PAD_LEFT); if($this->save($this->data)) { $this->log('save'); } |