Log message #4181272

# At Username Text
# Mar 28th 2019, 14:57 dereuromark focus on the www-data part of proper deploy management :slightly_smiling_face:
# Mar 28th 2019, 14:57 isaiah I have changed the lib folder permission to 0777
# Mar 28th 2019, 14:57 neon1024 Not as a deploy tool!
# Mar 28th 2019, 14:57 cnizzardini You should really use git
# Mar 28th 2019, 14:56 neon1024 That sounds like a reason
# Mar 28th 2019, 14:56 isaiah I backed it up from my previous server to the current server using ftp
# Mar 28th 2019, 14:55 dereuromark https://sandbox.dereuromark.de/pages/best-practices#deployment ^^
# Mar 28th 2019, 14:55 isaiah 2x
# Mar 28th 2019, 14:55 dereuromark classic permissions error from bad deploy probably? upload already sounds like the route cause of all your issues
# Mar 28th 2019, 14:53 neon1024 Looks like a hardcoded path, which would be why it’s looking for an error handler in a different users folder I’d imagine, as that would certainly cause a permissions error
# Mar 28th 2019, 14:52 neon1024 2
# Mar 28th 2019, 14:50 cnizzardini What version of cake is that?
# Mar 28th 2019, 14:50 cnizzardini Well those look like permission errors
# Mar 28th 2019, 14:49 isaiah PHP Fatal error: Class 'ErrorHandler' not found in /home/studycliq/public_html/lib/Cake/Core/App.php on line 957 mmap cache can't open /home/payvalue/public_html/lib/Cake/Error/ErrorHandler.php - Permission denied (pid 18797) mmap cache can't open /home/payvalue/public_html/lib/Cake/Error/ErrorHandler.php - Permission denied (pid 18797) mmap cache can't open /home/payvalue/public_html/lib/Cake/Configure/PhpReader.php - Permission den
# Mar 28th 2019, 14:49 isaiah I uploaded my site content and i am having this error
# Mar 28th 2019, 14:48 isaiah hello
# Mar 28th 2019, 14:39 dereuromark yeah those are using the old way
# Mar 28th 2019, 14:39 cnizzardini but withDownload will return new instance
# Mar 28th 2019, 14:38 cnizzardini Okay I see, because before i was just using download
# Mar 28th 2019, 14:38 dereuromark 3.5+ or so
# Mar 28th 2019, 14:37 cnizzardini strange, has it always been immutable?
# Mar 28th 2019, 14:37 cnizzardini Awesome!
# Mar 28th 2019, 14:37 ricksaccous so you have to return $response->withModifications
# Mar 28th 2019, 14:36 ricksaccous $response is immutable
# Mar 28th 2019, 14:36 cnizzardini Any reason filenames would not be getting set on downloads after upgrade from 3.5 to 3.7? Seems to be ignoring the filename and just doing index.csv now. This could was working prior in AppController::beforeRender ` if ($response->getType() == 'text/csv') { $filename = filter_var($this->request->getQuery('filename'), FILTER_SANITIZE_STRING); $response->withDownload($filename . ".csv"); }`
# Mar 28th 2019, 13:50 cnizzardini worth checking to see what its doing at least
# Mar 28th 2019, 13:50 ricksaccous meaning i haven't run into anything running too slow yet
# Mar 28th 2019, 13:49 ricksaccous anyway my worries are kind of pre-emptive
# Mar 28th 2019, 13:49 cnizzardini I doubt it is doing bad database access though, the cake orm is pretty good about that
# Mar 28th 2019, 13:49 ricksaccous kk will do
# Mar 28th 2019, 13:48 cnizzardini Just check the SQL Log tab
# Mar 28th 2019, 13:48 cnizzardini You can see what its doing with debugkit
# Mar 28th 2019, 13:41 ricksaccous but after patch saving is no big deal
# Mar 28th 2019, 13:40 ricksaccous meaning i think it's selecting 1000 or so rows to patch
# Mar 28th 2019, 13:40 ricksaccous yeah it's basically just a big patchEntity, i'm just worried because patchEntity seems to hydrate everything
# Mar 28th 2019, 13:38 cnizzardini But like inoas said, do not do 1000 inserts/updates, do a single query for the save operation.
# Mar 28th 2019, 13:37 cnizzardini But it depends on how often you expect the operation to be run by users
# Mar 28th 2019, 13:37 cnizzardini I don't think databases or cake will have problems with that
# Mar 28th 2019, 13:35 inoas with update all and conditions and stuff
# Mar 28th 2019, 13:34 inoas you can do that in one patch
# Mar 28th 2019, 13:30 ricksaccous lol