# |
Oct 7th 2016, 14:13 |
spriz |
I donâ??t think thereâ??s such thing as â??the cakephp user managementâ? ? :slightly_smiling_face: |
# |
Oct 7th 2016, 14:09 |
asdfXXasdf |
Does anybody know how to integrate the OpenID component ( http://code.42dh.com/openid/ ) in a system which uses the CakePHP user management already? |
# |
Oct 7th 2016, 14:08 |
rchavik |
not via CLI, but via web request |
# |
Oct 7th 2016, 14:07 |
maikh |
sure. if i echo $PATH it in. |
# |
Oct 7th 2016, 14:07 |
rchavik |
try specifying absolute path instead |
# |
Oct 7th 2016, 14:07 |
rchavik |
maikh, maybe your php runtime does not have /usr/local/bin in its path |
# |
Oct 7th 2016, 14:05 |
maikh |
i thougt if it is root it will be executeable for everyone. |
# |
Oct 7th 2016, 14:04 |
maikh |
hm, i dont understand this... |
# |
Oct 7th 2016, 14:02 |
spriz |
but it should be executable by everyone :thinking_face: |
# |
Oct 7th 2016, 14:01 |
spriz |
Iâ??d guess your php runs as www-data, apache, nginx or something alike |
# |
Oct 7th 2016, 14:01 |
spriz |
owned by root :slightly_smiling_face: |
# |
Oct 7th 2016, 14:00 |
maikh |
```-rwxr-xr-x 1 root admin 47M 20 Jan 2016 wkhtmltopdf``` |
# |
Oct 7th 2016, 14:00 |
maikh |
oh sorry... |
# |
Oct 7th 2016, 14:00 |
spriz |
bu thatâ??s `wkhtmltoimage` not `wkhtmltopdf` |
# |
Oct 7th 2016, 14:00 |
maikh |
```-rwxr-xr-x 1 root admin 47M 20 Jan 2016 wkhtmltoimage``` |
# |
Oct 7th 2016, 14:00 |
spriz |
>"not executable:â? @maikh |
# |
Oct 7th 2016, 13:59 |
spriz |
then maybe itâ??s 2nd part of the error message ); |
# |
Oct 7th 2016, 13:59 |
maikh |
but in /usr/local/bin/ there is this wkhtmltopdf |
# |
Oct 7th 2016, 13:59 |
maikh |
i want to create pdfs as email-attachements. but allways get the error ```wkhtmltopdf binary is not found or not executable: /usr/local/bin/wkhtmltopdf``` |
# |
Oct 7th 2016, 13:57 |
maikh |
is anybody using this plugin: CakePdf ? |
# |
Oct 7th 2016, 13:47 |
spriz |
#rubberduck |
# |
Oct 7th 2016, 13:47 |
spriz |
oh lol, now I can see that itâ??s pretty obvious that itâ??s grabbing the tasks where â??notbeforeâ? is not null :slightly_smiling_face: |
# |
Oct 7th 2016, 13:45 |
spriz |
I donâ??t understand why some of those tasks are (more or less) suddenly grabbed by a worker - instead of grabbing the oldest one first :P |
# |
Oct 7th 2016, 13:45 |
spriz |
also right now, we have ~5500 non-completed tasks in the queue, and then this is the most recent ones: https://cl.ly/hheA/Screen%20Shot%202016-10-07%20at%2015.43.07.png |
# |
Oct 7th 2016, 13:43 |
spriz |
last 12 hours we average out on 1500ms for the SELECT |
# |
Oct 7th 2016, 13:38 |
dereuromark |
dunno, but pretty fast I imagine |
# |
Oct 7th 2016, 13:37 |
spriz |
And also, could I ask you how many ms each of the SELECT to see if thereâ??s any pending jobs takes for you? :slightly_smiling_face: |
# |
Oct 7th 2016, 13:36 |
spriz |
Iâ??m pretty sure weâ??ve previously had multiple workers picking tasks with your cakephp-queue plugin in between, but now we seem only to have 1 worker running at a time - is that something youâ??ve heard before? Or does it sound like non-sense? |
# |
Oct 7th 2016, 13:35 |
spriz |
@dereuromark you around? :slightly_smiling_face: |
# |
Oct 7th 2016, 13:20 |
spriz |
robodna: Nested resources route doesnâ??t have to be in different namespaces! :slightly_smiling_face: |
# |
Oct 7th 2016, 13:14 |
robodna |
Ok, I guess my question was too stupid! thanks anyways cakephp community! |
# |
Oct 7th 2016, 13:02 |
robodna |
does anyone know, or should I ask this in the other chat? |
# |
Oct 7th 2016, 12:50 |
westy |
it would be awesome if the migration_snapshot could be updated to include data so it auto generates the inserts along side the table creation |
# |
Oct 7th 2016, 12:49 |
westy |
ahh ok yes sorry just seen it is listed in the docs ok thatnks I'll add it in there |
# |
Oct 7th 2016, 12:47 |
dereuromark |
westy: custom sql is possible with $this->query($sql); A better approach, e.g. for a default admin account, is: ```php $data = [ [ 'username' => 'admin', 'email' => 'admin@example.com>', 'password' => '$2y$10$0NhsZCkmXa2tH11r5dBsF.e6d34MUt/z10JLfVDAivcuNoBJhopVq' ] ]; $table = $this->table('users'); $table->insert($data)-save(); ``` |
# |
Oct 7th 2016, 12:46 |
robodna |
When I create a 'nested resource route', the docs say to map the â??Commentsâ?? resource to the App\Controller\Articles\CommentsController... so do I create a src/Controller/Articles/CommentsController.php file? Also, what namespace do I include in this file.. namepsace App\Controller\Articles? |
# |
Oct 7th 2016, 12:41 |
pat |
ah I see it is not cake specific |
# |
Oct 7th 2016, 12:41 |
westy |
@dereuromark do I just add the data to the table in the up() function or do I call the seed class? |
# |
Oct 7th 2016, 12:34 |
pat |
I see, thank you. did I miss it in the docs or is it missing? |
# |
Oct 7th 2016, 12:33 |
dereuromark |
dont use the deprecated version, use getMockBuilder |
# |
Oct 7th 2016, 12:29 |
pat |
@dereuromark is it done with $this->getMock("path to component")? |