Keyword

After upgrade from php 7.1 to php 7.2 cannot upload images in K2 (SOLVED)

  • Brian L
  • Brian L's Avatar Topic Author
  • Offline
  • New Member
More
4 years 6 months ago #173610 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?

Please Log in or Create an account to join the conversation.

  • Brian L
  • Brian L's Avatar Topic Author
  • Offline
  • New Member
More
4 years 6 months ago #173611 by Brian L
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
  • Brian L's Avatar Topic Author
  • Offline
  • New Member
More
4 years 6 months ago #173612 by Brian L
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.

Please Log in or Create an account to join the conversation.

  • Brian L
  • Brian L's Avatar Topic Author
  • Offline
  • New Member
More
4 years 6 months ago #173614 by Brian L
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
  • Brian L's Avatar Topic Author
  • Offline
  • New Member
More
4 years 6 months ago #173617 by Brian L
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.

Please Log in or Create an account to join the conversation.

More
4 years 6 months ago #173624 by JoomlaWorks
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.


Powered by Kunena Forum