Keyword

Image upload error K2.7 and J3.5

More
7 years 11 months ago - 7 years 11 months ago #161655 by Chris Vrakotas
Replied by Chris Vrakotas on topic Image upload error K2.7 and J3.5
Hi I get the same message, but the item is saved, also the image.

I checked and in .../item.php lines 276 - 286 I see the following
if (($files == 0 || $existingImage) && !JRequest::getBool('del_image'))
{

if ($files == 0)
{
$image = $files;
}
else
{
$image = JPATH_SITE.DS.JPath::clean($existingImage);
}

There is no "===" to change.

I'm using K2 2.7.1, Joomla 3.6.5, PHP 5.5.38.

Any ideas?
Last edit: 7 years 11 months ago by Chris Vrakotas.

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

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
7 years 11 months ago #161700 by Krikor Boghossian
Replied by Krikor Boghossian on topic Image upload error K2.7 and J3.5
Are you talking about the frontend or the backend?

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

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

More
7 years 11 months ago #161720 by Chris
Replied by Chris on topic Image upload error K2.7 and J3.5
The frontend

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

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
7 years 11 months ago #161727 by Krikor Boghossian
Replied by Krikor Boghossian on topic Image upload error K2.7 and J3.5
If you use the default template, is the issue still present?

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

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

More
7 years 11 months ago #161729 by Chris
Replied by Chris on topic Image upload error K2.7 and J3.5
Yes, I get the same error message

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

More
7 years 11 months ago #161737 by Chris
Replied by Chris on topic Image upload error K2.7 and J3.5
I've found out this:
When I set Image tab -->on from K2/frontend ediding the error message dissapears. When I set it off, the error is back again.
Any suggestions?

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

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
7 years 11 months ago #161748 by Krikor Boghossian
Replied by Krikor Boghossian on topic Image upload error K2.7 and J3.5
If you set the image to off then the field should not appear at all.
Is the field still present?

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

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

More
7 years 11 months ago #161750 by Chris
Replied by Chris on topic Image upload error K2.7 and J3.5
If I set image -->off, the tab (in the frontend) is not present.
Then I get the error message.

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

More
7 years 11 months ago #161766 by John
Replied by John on topic Image upload error K2.7 and J3.5
Hi, Same problem after updating php56 to 7 , joomla 3.7 and K2 2.7.1

cant upload image, getting error message " The image was not uploaded. Please ensure that you used a valid image file and that file uploads are properly configured on your server."

when I change to php56 from whm>Software »MultiPHP Manager , the upload works, but at heavy traffic time website unavailable.

pls need help
thanks

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

More
7 years 11 months ago #161773 by Mailson Anselmo
Replied by Mailson Anselmo on topic Image upload error K2.7 and J3.5
I have the same problem.


The image does not appear and displays the message "
Image not uploaded. Please make sure that you have used a valid image file and that the file upload is configured accordingly on your server".

I use J 3.7, PHP 5.4.16 and K2 2.7.1

Information system
Web server Apache / 2.4.6 (Red Hat Enterprise Linux) OpenSSL / 1.0.1e-fips PHP / 5.4.16
PHP version 5.4.16
MySQL version 5.5.52-MariaDB
GD Picture Library Disabled
Multibyte string support Able
Upload limit 100M
Memory limit 256M
Open remote files (allow url fopen) Yes

Need HELP.

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

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
7 years 11 months ago #161791 by Krikor Boghossian
Replied by Krikor Boghossian on topic Image upload error K2.7 and J3.5
@Chris take a look at this www.joomlaworks.net/forum/k2-en/47685-k2-image-upload-hide-k2_image_was_not_uploaded-notice#161508

@Mailson and @John are you talking about the frontend or the backend?

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

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

More
7 years 11 months ago #161795 by Chris
Replied by Chris on topic Image upload error K2.7 and J3.5
@ Krikor
Yes!! I've added the two lines of code and it worked!!
Thanks a lot!!

@Mailson and @John try this
administrator/components/com_k2/models/item.php line 276
if (!empty($image)){ //added check if $image is empty

and line 440
}// end check if $image is empty

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

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
7 years 11 months ago #161865 by Krikor Boghossian
Replied by Krikor Boghossian on topic Image upload error K2.7 and J3.5
Nice to hear this :)

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

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

More
7 years 11 months ago #161875 by John
Replied by John on topic Image upload error K2.7 and J3.5
the problem is at backend.

Tried above mentioned changes in administrator/components/com_k2/models/item.php line 276. But Image is not uploaded, only the error message disappeared.

the problem is with php7, I can upload image if I change to php5.6 from cpanel. I am getting too many error message from other extension if I use php5.6. so every time to upload image to k2 I have to change php version .

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

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
7 years 11 months ago #161909 by Krikor Boghossian
Replied by Krikor Boghossian on topic Image upload error K2.7 and J3.5
Can you upload images through the media tab?
2.8.0 will be released within the next days as well.

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

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

More
7 years 11 months ago #161915 by John
Replied by John on topic Image upload error K2.7 and J3.5
not working through media tab, I can wait for 2.8.0 . thanks

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

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
7 years 11 months ago #161939 by Krikor Boghossian
Replied by Krikor Boghossian on topic Image upload error K2.7 and J3.5
Ifyou have a DEV environment you can try it out.

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

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

More
7 years 10 months ago #162260 by Javier Romero
Replied by Javier Romero on topic Image upload error K2.7 and J3.5

Mailson Anselmo wrote: I have the same problem.


The image does not appear and displays the message "
Image not uploaded. Please make sure that you have used a valid image file and that the file upload is configured accordingly on your server".

I use J 3.7, PHP 5.4.16 and K2 2.7.1

Information system
Web server Apache / 2.4.6 (Red Hat Enterprise Linux) OpenSSL / 1.0.1e-fips PHP / 5.4.16
PHP version 5.4.16
MySQL version 5.5.52-MariaDB
GD Picture Library Disabled
Multibyte string support Able
Upload limit 100M
Memory limit 256M
Open remote files (allow url fopen) Yes

Need HELP.


After update to J 3.7.2 and K2 2.7.1 we have the same problem

We update to k2 2.8.0 and not working in php 5.6 o php 7.0

We just install php-gd and it works in all versions

K2 2.7.1 + Php 5.6 OK
K2 2.7.1 + Php 7.0 OK
K2 2.8.0 + Php 5.6 OK
K2 2.8.0 + Php 7.0 OK

Try to install php5-gd or php7.0-gd, it works for us

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

More
7 years 10 months ago #162265 by John
Replied by John on topic Image upload error K2.7 and J3.5
Thanks Javier Romero,

Its working.. problem fixed , thanks again

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

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
7 years 10 months ago #162272 by Krikor Boghossian
Replied by Krikor Boghossian on topic Image upload error K2.7 and J3.5
@Javier, was GD not installed in the first place, or was it outdated?

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