Skip to content
Grav 2.0 is officially stable. Read the announcement →

Community guidelines

Please keep discussions civil and on-topic. Repeated violations may lead to a temporary ban.

Archive

ErrorException in localhost with Gregwar vendor

Started by Muut Archive 11 years ago · 2 replies · 395 views
11 years ago

Hello,

I have installed grav on localhost running all of the latest LAMP software within Ubuntu 14.04. When I go to localhost:8000, I get the below attached error. It is ErrorException (E_ERROR) Undefined constant 'IMG_JPG'

Then it gives this code:

PHP
Open: /var/www/anotherguy/vendor/gregwar/image/Gregwar/Image/Image.php
            $this->adapter = $adapter;
        } else {
            if (is_string($adapter)) {
                $adapter = strtolower($adapter);

                switch ($adapter) {
                case 'gd':
                   $this->adapter = new Adapter\GD();
                    break;
                case 'imagemagick':

This only happens in localhost and not in the production site, so I assume there's something missing in my configuration. This happens in both of my development grav installs.

Screenshot - 12312014 - 02:49:04 PM

11 years ago

Can you check your php info and see if you have GD extension installed?

11 years ago

OK, I see. Yes, that fixed the problem. I forgot to reinstall GD after I had re-installed xfce with ubuntu 14.04 so that I could get php 5.5 (Ubuntu 12.04 was stuck at 5.3).

Thanks for the quick reply.

Suggested topics

Topic Participants Replies Views Activity
Archive · by Deleted User, 9 years ago
0 1318 9 years ago
Archive · by Muut Archive, 9 years ago
2 915 9 years ago
Archive · by Muut Archive, 9 years ago
2 4024 9 years ago
Archive · by Muut Archive, 9 years ago
1 2900 9 years ago
Archive · by Muut Archive, 9 years ago
3 1082 9 years ago