- Posts: 5
COMMUNITY FORUM
- Forum
- K2 Community Forum
- English K2 Community
- After upgrade from php 7.1 to php 7.2 cannot upload images in K2 (SOLVED)
After upgrade from php 7.1 to php 7.2 cannot upload images in K2 (SOLVED)
- Brian L
- Topic Author
- Offline
- New Member
Less
More
5 years 1 week ago #173610
by Brian L
After upgrade from php 7.1 to php 7.2 cannot upload images in K2 was created by Brian L
When I attempt to attach an image to an article I get:
"The image was not uploaded. Please ensure that you used a valid image file and that file uploads are properly configured on your server."
I turned on joomla debugging and looked in log files, but I am not finding anything.
Any pointers?
"The image was not uploaded. Please ensure that you used a valid image file and that file uploads are properly configured on your server."
I turned on joomla debugging and looked in log files, but I am not finding anything.
Any pointers?
Please Log in or Create an account to join the conversation.
- Brian L
- Topic Author
- Offline
- New Member
Less
More
- Posts: 5
5 years 1 week ago #173611
by Brian L
Replied by Brian L on topic After upgrade from php 7.1 to php 7.2 cannot upload images in K2
I can load images into MediaManager/images, but when I attempt to attach the image to the article using Browse Server I get the same error message.
Please Log in or Create an account to join the conversation.
- Brian L
- Topic Author
- Offline
- New Member
Less
More
- Posts: 5
5 years 1 week ago #173612
by Brian L
Replied by Brian L on topic After upgrade from php 7.1 to php 7.2 cannot upload images in K2
I reverted to php 7.1 and it is still broken. I notice that an upgrade of k2 from 2.9 to 2.10 happened around the same time. I wonder if the issue is related to 2.10.
I will try rolling back the 2.10 update too.
I will try rolling back the 2.10 update too.
Please Log in or Create an account to join the conversation.
- Brian L
- Topic Author
- Offline
- New Member
Less
More
- Posts: 5
5 years 1 week ago #173614
by Brian L
Replied by Brian L on topic After upgrade from php 7.1 to php 7.2 cannot upload images in K2
I can confirm that I can upload files via the Joomla media manager successfully. I simply cannot do so within the k2 article editor. I cannot attach images via the upload directly for via browse server.
Please Log in or Create an account to join the conversation.
- Brian L
- Topic Author
- Offline
- New Member
Less
More
- Posts: 5
5 years 1 week ago #173617
by Brian L
Replied by Brian L on topic After upgrade from php 7.1 to php 7.2 cannot upload images in K2 (SOLVED)
apt-get install php7,2-gd fixes the issue.
The author of the upload code you use did a great job passing back diagnostics. It is too bad you didn't pass that back in the error message you reported to the screen.
The author of the upload code you use did a great job passing back diagnostics. It is too bad you didn't pass that back in the error message you reported to the screen.
Please Log in or Create an account to join the conversation.
- JoomlaWorks
- Offline
- Admin
Less
More
- Posts: 6218
5 years 1 week ago #173624
by JoomlaWorks
Fotis / JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Replied by JoomlaWorks on topic After upgrade from php 7.1 to php 7.2 cannot upload images in K2 (SOLVED)
You would see that GD is missing if you had a look at the K2 info page. In any case, when you configure PHP, you need to make sure you always setup a bare minimum of PHP modules, GD being one of them as it allows for PHP to perform basic image manipulations (e.g. resizing).
Fotis / JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Please Log in or Create an account to join the conversation.
- Forum
- K2 Community Forum
- English K2 Community
- After upgrade from php 7.1 to php 7.2 cannot upload images in K2 (SOLVED)