Hm, just guessing, but maybe this is due to numeric calculations with floating points. I remember I once had an issue with the Guggenheim plugin due to LC_NUMERIC settings ā¦
That shouldnāt be the reason. Does it blow up with the default im driver as well?
BTW: I donāt recommend using PHP short tags. They are not usable in every PHP installation and can conflict with XML open tags, e.g. in sitemap templates.
That shouldnāt be the reason. Does it blow up with the default im driver as well?
No.
BTW: I donāt recommend using PHP short tags. They are not usable in every PHP installation and can conflict with XML open tags, e.g. in sitemap templates.
Wow, thatās a strange bug. To be honest I canāt really tell whatās happening. The thumb drivers are just functions that get stored in a static array, so thereās nothing that should be different between a core thumb driver and the same one in a plugin.
Do you get any error message? Maybe it can lead us to a bug.
I tested your code with the above settings and could not reproduce this. What exactly do I have to put where to reproduce the error? And in what way does the site break?
When setting the locale for numbers in PHP to German and you echo a float value, PHP will use a comma as a decimal point instead of a dot. For example, something like this will lead to an error:
Without being able to test your code right now, your problem could be related to a float being converted to a string ā and instead of a dot as decimal point, PHP will use a comma according to German orthography. This can be fixed by using the number_format() function, instead of just converting floats to strings. Maybe this is a starting point for further research ā¦
That was my very first idea as well as outlined above, but how would that explain why the default driver works and the custom one does not, not even with the exact same commands?