Comments (18)
Thanks, Derek.
from trongate-framework.
Hi. I'm not entirely sure about this one. The image.php file was was written by my friend Derek. I'll ask him to have a look at this tomorrow. In the meantime, if you have any more info then I'd be grateful. Cheers.
from trongate-framework.
Oh, actually, you do have a resource, so, are you running on PHP 8? I can guarantee that class up until 7.4 (the code is from an earlier version of https://github.com/delboy1978uk/image/), but I haven't tested it on PHP8 yet, I was was waiting on Travis CI updating, but I guess that's happened now, I might look at it tonight
from trongate-framework.
It works fine and I tested it on PHP8, and there is nothing in this older version that is all that different (all i did in my latest version was put jpeg functions in a jpeg class, png functions in a png class, etc), can you tell me what you are trying to do with it and maybe share some code?
from trongate-framework.
Yes this is a new type of class as of PHP 8.0.0 https://www.php.net/manual/en/class.gdimage, but I'm wondering why I haven't been able to reproduce your issue, what is expecting one of those?
from trongate-framework.
If we cannot reproduce the fault then the only options I can think of are to either close this one or leave it hanging in the hope that somebody else has something for us.
Any advice?
from trongate-framework.
Wait for his reply, if there's something I need to update on my own lib to be properly php 8 (and php8 apparently replaces a 'resource' as a 'GdImage'), then I'll obviously do so, and send you a PR on your own code
from trongate-framework.
@davidjconnelly, if you look to the right you will see that you can tag issues with a label, such as 'improvement', or 'bug', it can help you manage issues as they come in, for example once our man here shows me how to reproduce the bug you can tag it with a bug label, and then its a real 'deal with this' issue
from trongate-framework.
Hi guys, I've noticed the gd extension in PHP 8 is not being loaded by default. Could this be the issue? Easy to see, just open a terminal/ command prompt and enter php -m to list all loaded extensions (as long as php is in the system path). If you don't see the gd module in the list you know the picture functions in Trongate won't work. Then it's just a matter of editing the php.ini file to include this library, then restart the server to enable it and all should work as expected.
from trongate-framework.
That will indeed be the problem! Easy fix thankfully. Funny, as I had to contact Fasthosts the other day for a client of mine, Fasthosts didnt have gd on their PHP 7.4, so everything crashed the second you tried to call a gd function. I had to explain to their engineers what they had done wrong! Took about 5 days for them to sort it out lol
from trongate-framework.
I should mention however that depending how your PHP is set up, you might have a different ini for the CLI, so php -m
could give you different results than phpinfo()
, so check that way also.
from trongate-framework.
from trongate-framework.
I'm getting the feeling that this might be one for the soon-to-open discussion forum at trongate.io. Is that agreeable?
from trongate-framework.
from trongate-framework.
from trongate-framework.
I had assumed the SCA forum to be closed to the general public. Anyway, I'll close this one. Thanks.
from trongate-framework.
@DaFa66 I don't have access to that forum, can you share whatever change was suggested?
from trongate-framework.
Same suggestion as here but more in depth with examples on how to edit the php.ini to enable the GD module.
If you want access to the forum, just create an account and I'll activate 👍
from trongate-framework.
Related Issues (20)
- make issues to make community contribute to ur framework
- I can't register as a member of trongate.io HOT 9
- $this->upload_file() no longer works for non image files HOT 2
- TYPEERROR: CONN.QUERY IS NOT A FUNCTION HOT 1
- [Multisite & Multi-language] How can multi-domain be used from the same installation and multiple databases HOT 7
- missing method remove_special_characters in class Validation_helper HOT 4
- Unit tests? HOT 1
- Deprecated message on API Manager HOT 6
- Sub Module: SQL creator error in admin template. Version: 1.3.3045 HOT 10
- flashdata, $color not used HOT 1
- date-range picker doesn't show calendar HOT 2
- Charset in db-connection HOT 2
- Calling view inside view not working HOT 3
- Can't implement repository pattern
- Members module deficiency
- prevent table names from keywords and reserved words HOT 2
- Add Default locale to the config php HOT 5
- change out method to accept empty string or null values without an error HOT 3
- Script failed to execute HOT 1
- form_helper.php form_hidden() - Additional Code not working HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from trongate-framework.