Log message #4227966

# At Username Text
# Feb 20th 2020, 10:40 tomrwaller `$this->belongsTo('PrimaryTechnologies', [`             `'className' => 'Technologies',`             `'foreignKey' => 'primary_technology_id',`             `'joinType' => 'INNER',`         `]);`         `$this->belongsToMany('AssociatedTechnologies', [`             `'className' => 'Technologies',`             `'foreignKey' => 'recommendation_id',`  
# Feb 20th 2020, 10:39 slackebot Recommendations I have defined two associations to Technologies. Trouble is, the multiselect on add.php doesn't set the Associated Technologies. The Primary Technology does however get set.
# Feb 20th 2020, 10:39 tomrwaller Hey all - would someone mind casting their eyes over my models? Not sure I'm doing this right. I have Technologies and I have Recommendations. They are joined using the recommendations_technologies table. In the recommendation, I have two fields, one is Primary Technology which is a choice of one from the technologies table, and another field Associated Technologies which can be multiple entries from the technology field. So essentially in
# Feb 20th 2020, 09:31 alexdd55976 yeah.. i figured it out.. the docs have been better then expected :)
# Feb 20th 2020, 09:23 challgren @alexdd55976 do you mean when you run `bin/cake bake ….`
# Feb 20th 2020, 08:32 alexdd55976 ah got it
# Feb 20th 2020, 08:30 alexdd55976 is there a way to change bake templates so they won't be overwritten during an update
# Feb 20th 2020, 08:29 christianjohn.gss i'll keep that in mind.
# Feb 20th 2020, 08:28 conehead that it why you include the parent call to make sure the default behavior is still used as well
# Feb 20th 2020, 08:28 christianjohn.gss thank you @conehead :)
# Feb 20th 2020, 08:27 christianjohn.gss that makes sense
# Feb 20th 2020, 08:27 christianjohn.gss ohhhhhh
# Feb 20th 2020, 08:27 christianjohn.gss yes and it came back like the first picture
# Feb 20th 2020, 08:27 conehead probably because you overwrite the default beforeRender mechanics that set this theme
# Feb 20th 2020, 08:26 conehead Did you try what admad said?
# Feb 20th 2020, 08:26 christianjohn.gss because i was suppose to add `$this->viewBuilder()->setTheme(null);` to display the login page in full
# Feb 20th 2020, 08:25 christianjohn.gss i just want to understand why having beforeRender removed the theme
# Feb 20th 2020, 08:25 conehead so where is your problem @christianjohn.gss?
# Feb 20th 2020, 08:00 christianjohn.gss @admad i did not call the parent method inside it
# Feb 20th 2020, 07:59 christianjohn.gss with the method
# Feb 20th 2020, 07:59 slackebot <christianjohn.gss>
# Feb 20th 2020, 07:59 christianjohn.gss without beforeRender method
# Feb 20th 2020, 07:59 slackebot <christianjohn.gss>
# Feb 20th 2020, 07:58 admad did you forget to call parent::beforeRender() ?
# Feb 20th 2020, 07:56 christianjohn.gss i am currently using adminlte theme at cakephp 3 and i was trying to set the default route to a login page, and when i write a beforeRender function, the theme went away even without the setTheme(null)
# Feb 20th 2020, 07:55 christianjohn.gss i got a question
# Feb 20th 2020, 07:55 christianjohn.gss hello
# Feb 20th 2020, 07:42 alexdd55976 morning el duderinos
# Feb 20th 2020, 07:07 javier.villanueva morning all
# Feb 20th 2020, 06:57 serz I don’t understand what kind of config, there is a view in the app folder, config some kind of file
# Feb 20th 2020, 06:34 admad or php fpm
# Feb 20th 2020, 06:34 admad restart your webserver
# Feb 20th 2020, 06:34 admad on in your cake app's config use config name "cake" instead of "php" so that cake uses tmp/sessions folder of your cake app to store session files
# Feb 20th 2020, 06:34 serz thanks for the answer, changed the path to the tmp folder nothing changes
# Feb 20th 2020, 06:32 admad fix the path to folder where php stores session files through php.ini config
# Feb 20th 2020, 06:30 serz 7.4
# Feb 20th 2020, 06:30 serz after updating cakephp to version 2.10.20 and changing php version to 7.4, before that there was version 5.6, the site refuses to worksession_start (): Failed to read session data: user (path: / var / lib / php / sessions) with permissions there are no problems if you switch to php 5.6 and everything works fine, tell me who had problems with php
# Feb 20th 2020, 06:30 serz hi
# Feb 20th 2020, 05:59 itamer cake3 - I'm just trawling through the logs and thought I'd add the common obvious problem requests to routes.php and send them on their way - more visible than .htaccess so I have ```$routes->redirect('/wp-*', '/', ['status' => 404]); $routes->redirect('/app/*', '/', ['status' => 404]); $routes->redirect('/app-ads.txt', '/', ['status' => 404]);```
# Feb 20th 2020, 05:46 le.mao Opp! sorry I got a mistake typo. The version cake on my system is 2.2.5 It seems that I need to upgrade to a new Cake version right now. Do you have any way for flash resolve as a method temp while waiting for upgrade to a new cake version. Because, I think when I upgrade to new Cake version. There are lots of thing need to test on server for my website. Thank you so much
# Feb 20th 2020, 05:39 nate That said I believe PHP7 support only officially started w/ CakePHP 2.8.0