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?
Problem Adding Image
- Benno
- Phoca Hero
- Posts: 9117
- Joined: 04 Dec 2008, 11:58
- Location: Germany
- Contact:
Re: Problem Adding Image
Hi,
you need to enable GD library in php.ini of xampp.
Kind regards,
Benno
you need to enable GD library in php.ini of xampp.
Kind regards,
Benno
-
- Phoca Newbie
- Posts: 2
- Joined: 08 Jul 2022, 10:58
Re: Problem Adding Image
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?
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?
- Benno
- Phoca Hero
- Posts: 9117
- Joined: 04 Dec 2008, 11:58
- Location: Germany
- Contact:
Re: Problem Adding Image
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:
After edit:
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
1.) Open your xampp php.ini with an editor like Notepad++.
2.) Go to line 925 and remove the semicolon.
See images. Before edit:
After edit:
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