Log message #4115872

# At Username Text
# Feb 9th 2018, 06:45 admad @jameg83 can you show the full exact error message
# Feb 9th 2018, 06:45 jameg83 It works fine from the command line admad. But not when executed via php. Any ideas?
# Feb 9th 2018, 06:45 jkarlmen and it was one line of code
# Feb 9th 2018, 06:45 jkarlmen wow ... 3 days I fought with this
# Feb 9th 2018, 06:44 ricksaccous but you get the picture
# Feb 9th 2018, 06:44 admad having to call parent::foo() is PHP 101.
# Feb 9th 2018, 06:44 ricksaccous or i probably said it badly
# Feb 9th 2018, 06:44 ricksaccous since in the subclass you overwrite it
# Feb 9th 2018, 06:44 ricksaccous yeah otherwise you are not inheriting the stuff from the parent method
# Feb 9th 2018, 06:43 jkarlmen ?
# Feb 9th 2018, 06:43 jkarlmen so i have to call parent::initialize before it will load the stuff from app controller
# Feb 9th 2018, 06:43 jkarlmen oh ... oh my
# Feb 9th 2018, 06:43 ricksaccous ie initialize() { doing stuff here} instead of initialize() {parent::initialize(); dostuffhere}
# Feb 9th 2018, 06:42 ricksaccous are you calling methods in other controllers that are over-riding appController method?
# Feb 9th 2018, 06:42 jkarlmen yup just checked
# Feb 9th 2018, 06:42 jkarlmen as far as I can tell
# Feb 9th 2018, 06:41 ricksaccous are your other controllers extending AppController class?
# Feb 9th 2018, 06:35 jkarlmen anyone have any idea why that is
# Feb 9th 2018, 06:35 jkarlmen So it wouldn't work until I loaded it into ExampleController.php
# Feb 9th 2018, 06:35 jkarlmen it wasn't apply it to the sub classes
# Feb 9th 2018, 06:34 jkarlmen Turns out although i loaded the th CakeDC/Users.UserAuth component in AppController.php
# Feb 9th 2018, 06:34 jkarlmen so I wound up figuring out why cakedc authlinks weren't working
# Feb 9th 2018, 06:25 admad php doesn't like, if it says it doesn't have permission than it doesn't :slightly_smiling_face:
# Feb 9th 2018, 06:22 jameg83 Hi can anyone help with CakePdf? I’m getting an error500 ‘permission denied when executing command “usr/bin...”. I’ve checked binary file permissions and all users can execute.
# Feb 9th 2018, 05:46 kevin my wife used to be a competitive figure skater, so she made some nice strong drinks and turned on the olympics while I worked on this.
# Feb 9th 2018, 05:45 kevin Ballmer*
# Feb 9th 2018, 05:45 kevin ugh im over the Bahlmer curve.
# Feb 9th 2018, 05:40 ricksaccous or maybe the Text class has a method that will work now
# Feb 9th 2018, 05:39 ricksaccous another option is just save them with normal line breaks (not wrote in) and I think the Text class utility has an option to display it properly
# Feb 9th 2018, 05:37 kevin sweet thanks
# Feb 9th 2018, 05:35 ricksaccous or there are other options to do post-processing like afterFind
# Feb 9th 2018, 05:34 ricksaccous look up entities, you can use setters or getters there, forgot really which applies since i don't use them often
# Feb 9th 2018, 05:33 kevin I can use the php nl2br() function, but I dont know how I would incorporate it
# Feb 9th 2018, 05:32 kevin how can I tell cakephp to replace \r\n with actual breaklines
# Feb 9th 2018, 05:31 kevin the $widget[‘details’] is a multi-line text input, but in the DB, I save it as line1\r\nline2\r\nline3\r\n. when I Form->create($widget), it loads the text without parsing the \r\n’s properly
# Feb 9th 2018, 05:28 kevin one that I cant find the answer to
# Feb 9th 2018, 05:28 kevin ugh okay now I have a real one
# Feb 9th 2018, 05:14 ricksaccous ;)
# Feb 9th 2018, 05:14 kevin dont answer that. ill never learn if you do
# Feb 9th 2018, 05:14 kevin actually nm. im going to RTFM more
# Feb 9th 2018, 05:13 kevin that should create the whole form, right>