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
3 weeks 4 days ago #173610 by Brian L
Brian L created the topic: After upgrade from php 7.1 to php 7.2 cannot upload images in K2
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
3 weeks 3 days ago #173611 by Brian L
Brian L replied the 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
  • Brian L's Avatar Topic Author
  • Offline
  • New Member
More
3 weeks 3 days ago #173612 by Brian L
Brian L replied the 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.

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

  • Brian L
  • Brian L's Avatar Topic Author
  • Offline
  • New Member
More
3 weeks 3 days ago #173614 by Brian L
Brian L replied the 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
  • Brian L's Avatar Topic Author
  • Offline
  • New Member
More
3 weeks 3 days ago #173617 by Brian L
Brian L replied the 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.

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

  • Fotis
  • Fotis's Avatar
  • Away
  • Administrator
  • JoomlaWorks Support Team
More
3 weeks 2 days ago #173624 by Fotis
Fotis replied the 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).

If you use & love K2, please take a moment to add your review and rate it
at the Joomla Extensions Directory: extensions.joomla.org/extension/k2/


IMPORTANT: Please search the forum before posting a question!

JoomlaWorks Support Team Member

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


Powered by Kunena Forum