Log message #4213499

# At Username Text
# Nov 15th 2019, 15:48 ndm `vendor/mobiledetect/mobiledetectlib/namespaced/Detection`
# Nov 15th 2019, 15:46 kaliel Hi everyone, i can't see where is located the namespace \Detection used in boostrap `$detector = new \Detection\MobileDetect();`, can anyone point me into some direction please ?
# Nov 15th 2019, 15:05 slackebot1 } when I rename the geocoded.php it into to GeocodedBehavior.php file this error is gone But when I export the PDF file in the application it is getting can't read the PDF output fdpf error (output starting at /apps/app/Model/Behavior/GeocodedBehavior.php) please can you help me with this error as I am new to the migration in cakephp
# Nov 15th 2019, 15:05 nayakvradhit When I migrate cakephp version 2.1 to 2.10 there was a file called geocoded.php in the folder app/Model/Behavior and I copied the respective controllers,views and model into the folders into the new version and I connected the database and it is working fine but when I run the new code in cakephp 2.10 I am getting the missing behavior GeocodedBehavior is not found error , create a class called GeocodedBehavior extends ModelBehavior {
# Nov 15th 2019, 13:55 dereuromark Sure, lets try :slightly_smiling_face:
# Nov 15th 2019, 13:51 justin.denick ok thanks @dereuromark! There is a test in there showing how `_config['address_format']` would work and I will add another test to illustrate the adminLevel (%a %A) interpolation and push the PR to ya — let me know if that has a negative impact on your ci usage.
# Nov 15th 2019, 13:44 slackebot1 could move forward here. Thanks for bringing this to my attention :slightly_smiling_face:
# Nov 15th 2019, 13:44 dereuromark @justin.denick I dont see your %a issue etc in there. But isn't the Geo lib underneath the surface doing quite similar things you do here? Can we maybe improve the current code to be more generic/working? Also please see the underlying lib using the external wrapper (and here we are not on the latest version yet), so maybe that also could resolve some of the issue. Feel free to open a ticket or PR on the repo to further discuss how we
# Nov 15th 2019, 13:34 slackebot1 https://gist.github.com/justindenick/cdc737e40ece79d0928439b7c575ff7b While it’s not as sophisticated as cakephp-geo, it does do what I need it to. I could just move on from here, but something doesn’t feel right about how I am using Behaviors.
# Nov 15th 2019, 13:34 justin.denick @dereuromark I ran into a wall with the cakephp-geo plugin. I started to work on it here `https://github.com/justindenick/cakephp-geo/tree/feature/config-address_format` to make it easier to format the address. >This side of the pond likes the street_number to come before the street_name. I just couldn’t get the adminLevels to work. `%a` and `%A` are not being interpolated. :exploding_head: I ended up having to call it and I wrote th
# Nov 15th 2019, 10:42 challgren np
# Nov 15th 2019, 10:41 Benjamin3 Thanks a lot!
# Nov 15th 2019, 10:41 Benjamin3 That's an interesting approach, sadly doesn't work for postgres, but i'll have a look if i can steal some ideas there for an own solution :-)
# Nov 15th 2019, 10:37 challgren @benjamin3 try https://github.com/FriendsOfCake/fixturize
# Nov 15th 2019, 10:36 Benjamin3 ?
# Nov 15th 2019, 10:36 Benjamin3 But: Is there any way to keep the fixtures imported and not throw them away and reimport them after each test=
# Nov 15th 2019, 10:35 Benjamin3 This seems to be a bit slow (not a problem by itself, schema introspection may take a bit of time
# Nov 15th 2019, 10:35 Benjamin3 Load Test fixtures (Schema only) by public $import = ['model' =>TableName'];
# Nov 15th 2019, 10:34 Benjamin3 Hello everyone, i'm using cakephp 3.8 with phpunit. I'm running Tests that
# Nov 15th 2019, 10:32 chris-andre Cache is cleared.
# Nov 15th 2019, 10:30 chris-andre Hi people! I have created a plugin inside `app_root/plugins/Bronnoysund` with AppController and BrregController and view files. On dev server (homestead) I can navigate to `domain.test/bronnoysund/brreg` and it works as expected. On prod. server (CloudLinux 6, apache) I get an error with the same url params: `Controller Brreg is not found`. Is a typical mistake for this error?
# Nov 15th 2019, 08:27 jotpe thanks @kevin.pfeifer
# Nov 15th 2019, 08:27 admad only one way to find out :slightly_smiling_face:
# Nov 15th 2019, 08:27 kgb.acct.personal Does that guarantee that I won't run into max memory allocated error?
# Nov 15th 2019, 08:24 admad @kgb.acct.personal disable results casting too, that will for e.g stop wasting memory converting datetime string to objects
# Nov 15th 2019, 08:21 kevin.pfeifer @jote
# Nov 15th 2019, 08:21 kgb.acct.personal I'll look into it. Thanks :+1:
# Nov 15th 2019, 08:20 kgb.acct.personal That makes sense. Also the thing about CSV streaming
# Nov 15th 2019, 08:19 admad error hydration not marshalling
# Nov 15th 2019, 08:18 admad turn off query buffering and marshalling
# Nov 15th 2019, 08:18 admad depending on how you fetched the data, i might be the resultset eating up the memory, not the generated csv
# Nov 15th 2019, 08:17 kgb.acct.personal Not that large but "max allowed memory" error is triggered when large amount of data is queried for export
# Nov 15th 2019, 08:16 admad exactly how large is "large"?
# Nov 15th 2019, 08:15 admad unbuffered query and stream to csv file
# Nov 15th 2019, 08:14 kgb.acct.personal @admad I mean from table to CSV :cakephp:
# Nov 15th 2019, 08:13 admad @kgb.acct.personal one way is: directly load csv file into temp database table, perform cleanup / alterations required, then copy/move rows to required table
# Nov 15th 2019, 08:12 jotpe Unfortunately my Client wants xlsx output :S
# Nov 15th 2019, 08:11 kgb.acct.personal Speaking of CSVs. What strategy do you use when exporting large amount of data?
# Nov 15th 2019, 08:11 admad wisest choice is to generate CSVs :slightly_smiling_face:
# Nov 15th 2019, 08:07 jotpe or better use PHPExcel directly?
# Nov 15th 2019, 08:07 jotpe and https://github.com/robotusers/cakephp-excel