# |
Nov 28th 2017, 03:07 |
chan |
hello! i take vertical photo with iphone and then i upload that photo on i create cakephp website (coding is file upload) but photo is show by horizontal. why? Can i fix this problem? if you know, please give advice to me. thanks all. |
# |
Nov 28th 2017, 00:44 |
ndm |
Good night everybody :sleeping: |
# |
Nov 28th 2017, 00:44 |
ndm |
I've traced things down to `__debugInfo()` being invoked on a query object in the variable panels shutdown function... looks like this causes the erroneous query to be executed again, causing a second exception to be triggered, and then things go south. Not sure where to go from here, I'm way to tired to pursue this any further now, guess I'll either log an issue tomorrow or harass @lorenzo , he's used to it :slightly_smiling_face: |
# |
Nov 28th 2017, 00:41 |
ndm |
No problem... |
# |
Nov 28th 2017, 00:37 |
casmo |
Ah, misread it, my bad |
# |
Nov 28th 2017, 00:35 |
ndm |
No, it works fine then. That's what I mean when I say "disabling debug kit", debug mode is still on, I've just commented loading the plugin. |
# |
Nov 28th 2017, 00:33 |
casmo |
Is it still happening if you put debug = true and remove the plugin::load('debugkit') from your bootstrap.php ? |
# |
Nov 28th 2017, 00:32 |
ndm |
Well, if things work as expected with debug kit disabled, then I'm of course going to poke it to see what's going on there :slightly_smiling_face: |
# |
Nov 28th 2017, 00:30 |
casmo |
I find it strange that you are searching within debugKit for the problem, though |
# |
Nov 28th 2017, 00:29 |
ndm |
Thanks nonetheless... I'm slooooowly getting to it, looks like they key is `VariablesPanel::shutdown()` |
# |
Nov 28th 2017, 00:26 |
casmo |
I do not know |
# |
Nov 28th 2017, 00:23 |
ndm |
Not sure what exactly you mean by "debug message"? It's the same error/message ("x is not associated with y"), but with DebugKit enabled (specifically with ToolbarService::loadPanels() being invoked), it's being rendered as HTML instead of / additionally to JSON. |
# |
Nov 28th 2017, 00:21 |
casmo |
What I'm trying to ask is: Are you sure it is the debugkit, not just a debug message? |
# |
Nov 28th 2017, 00:20 |
ndm |
sure, that's just how it's configured in my app |
# |
Nov 28th 2017, 00:19 |
casmo |
And visaversa |
# |
Nov 28th 2017, 00:19 |
casmo |
Well, you can disable debugkit and still have debug = true |
# |
Nov 28th 2017, 00:19 |
ndm |
both, the former depends on the latter |
# |
Nov 28th 2017, 00:18 |
ndm |
And by fine I mean once, as JSON, as requested. |
# |
Nov 28th 2017, 00:18 |
casmo |
When debugkit is enabled or when debug == true? |
# |
Nov 28th 2017, 00:17 |
ndm |
I'm seeig a kinda tricky issue, where it seems that specific errors are being renderd twice, first as serialized JSON, then as HTML, and the latter wins, ie is being output, but this only happens when DebugKit is enabled, and only for some errors, in this case for a missing association, while errors like missing tables are being rendered fine |
# |
Nov 28th 2017, 00:17 |
casmo |
Does that work? |
# |
Nov 28th 2017, 00:15 |
ndm |
Nah, just stomped with the foot to see who's there, so that I could maybe annoy someone specific :slightly_smiling_face: |
# |
Nov 28th 2017, 00:11 |
casmo |
Did I miss your question? |
# |
Nov 28th 2017, 00:00 |
ndm |
Well, at this point I'd be willing to accept assistance from anyone, even from people that measure distances in body parts :P |
# |
Nov 27th 2017, 23:56 |
casmo |
I suppose most europeans are by now |
# |
Nov 27th 2017, 23:47 |
ndm |
Looks like mostly everbody's away or asleep, hu? |
# |
Nov 27th 2017, 23:34 |
casmo |
That works |
# |
Nov 27th 2017, 23:34 |
casmo |
$this->request->getRequestTarget(); is the new function to use :) |
# |
Nov 27th 2017, 23:28 |
casmo |
I remember I fixed this with a pull request in 3.0 or 3.1 or so |
# |
Nov 27th 2017, 23:28 |
casmo |
So, if I've localhost/my-project/users/edit/1, it adds /my-project |
# |
Nov 27th 2017, 23:27 |
casmo |
$this->request->here() is adding the base of the document root |
# |
Nov 27th 2017, 23:15 |
saeideng |
good |
# |
Nov 27th 2017, 23:14 |
inoas |
gnite |
# |
Nov 27th 2017, 22:16 |
inoas |
because it integrates with formhelper so well |
# |
Nov 27th 2017, 22:16 |
inoas |
I will try this first before using json validator however |
# |
Nov 27th 2017, 22:16 |
inoas |
the thing is I am not sure how to do nested validation and everything |
# |
Nov 27th 2017, 22:16 |
inoas |
https://book.cakephp.org/3.0/en/core-libraries/form.html |
# |
Nov 27th 2017, 22:15 |
inoas |
but it is called modelless forms |
# |
Nov 27th 2017, 22:15 |
inoas |
it should be called form validator |
# |
Nov 27th 2017, 22:15 |
inoas |
well because I don't have database models |
# |
Nov 27th 2017, 22:11 |
saeideng |
why Modelless? |