Problem Adding Image

Phoca Gallery - image gallery extension
EX34Mush
Phoca Newbie
Phoca Newbie
Posts: 2
Joined: 08 Jul 2022, 10:58

Problem Adding Image

Post by EX34Mush »

I have just installed Phoca Gallery in a new Joomla 4.1 site I am currently running using xampp. It worked fine when I installed it on a trial site but not on this one.
I Open Phoca Gallery at the control panel
Create a Category (works OK)
Go to Image New.
Add image name and select category
When I click File Name I get the following error screen:
https://imgur.com/a/2HWPKS2
What is going wrong?
User avatar
Benno
Phoca Hero
Phoca Hero
Posts: 9110
Joined: 04 Dec 2008, 11:58
Location: Germany
Contact:

Re: Problem Adding Image

Post by Benno »

Hi,
you need to enable GD library in php.ini of xampp.

Kind regards,
Benno
EX34Mush
Phoca Newbie
Phoca Newbie
Posts: 2
Joined: 08 Jul 2022, 10:58

Re: Problem Adding Image

Post by EX34Mush »

Hi,
This is the only reference to GD I can find in my php.ini file:
[gd]
; Tell the jpeg decode to ignore warnings and try to create
; a gd image. The warning will then be displayed as notices
; disabled by default
; https://php.net/gd.jpeg-ignore-warning
;gd.jpeg_ignore_warning = 1

I should probably experiment, but is this where the code needs to be changed, and what do I do to it?
As the sites on this xampp installation all use the same php.ini, why does it work on them but not this one?
User avatar
Benno
Phoca Hero
Phoca Hero
Posts: 9110
Joined: 04 Dec 2008, 11:58
Location: Germany
Contact:

Re: Problem Adding Image

Post by Benno »

Hi,
1.) Open your xampp php.ini with an editor like Notepad++.
2.) Go to line 925 and remove the semicolon.
See images. Before edit:
Image
After edit:
Image
3.) Save the edited php.ini
4.) Start PHP and MySQL in your Xampp control panel.
5.) Now the edited php.ini is processed and the GD library is loaded and you should now be able to create thumbnails with Phoca Gallery.
6.) Don't use spaces in file names.
ilf harbour line sketch.png
should be renamed to:
ilf-harbour-line-sketch.png
or:
ilf_harbour_line_sketch.png
See: https://www.phoca.cz/documents/2-phoca- ... ng-images

Kind regards,
Benno
Post Reply