GithubHelp home page GithubHelp logo

Comments (18)

trongate avatar trongate commented on August 18, 2024 1

Thanks, Derek.

from trongate-framework.

trongate avatar trongate commented on August 18, 2024

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.

delboy1978uk avatar delboy1978uk commented on August 18, 2024

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.

delboy1978uk avatar delboy1978uk commented on August 18, 2024

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.

delboy1978uk avatar delboy1978uk commented on August 18, 2024

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.

trongate avatar trongate commented on August 18, 2024

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.

delboy1978uk avatar delboy1978uk commented on August 18, 2024

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.

delboy1978uk avatar delboy1978uk commented on August 18, 2024

@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.

DaFa66 avatar DaFa66 commented on August 18, 2024

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.

delboy1978uk avatar delboy1978uk commented on August 18, 2024

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.

delboy1978uk avatar delboy1978uk commented on August 18, 2024

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.

DaFa66 avatar DaFa66 commented on August 18, 2024

from trongate-framework.

trongate avatar trongate commented on August 18, 2024

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.

DaFa66 avatar DaFa66 commented on August 18, 2024

from trongate-framework.

DaFa66 avatar DaFa66 commented on August 18, 2024

from trongate-framework.

trongate avatar trongate commented on August 18, 2024

I had assumed the SCA forum to be closed to the general public. Anyway, I'll close this one. Thanks.

from trongate-framework.

delboy1978uk avatar delboy1978uk commented on August 18, 2024

@DaFa66 I don't have access to that forum, can you share whatever change was suggested?

from trongate-framework.

DaFa66 avatar DaFa66 commented on August 18, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.