- Posts: 9
COMMUNITY FORUM
Image upload error K2.7 and J3.5
- Chris Vrakotas
-
- Offline
- New Member
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?
Please Log in or Create an account to join the conversation.
- Krikor Boghossian
-
- Offline
- Platinum Member
- Posts: 15920
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Please Log in or Create an account to join the conversation.
- Chris
-
- Offline
- Junior Member
- Posts: 37
Please Log in or Create an account to join the conversation.
- Krikor Boghossian
-
- Offline
- Platinum Member
- Posts: 15920
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Please Log in or Create an account to join the conversation.
- Chris
-
- Offline
- Junior Member
- Posts: 37
Please Log in or Create an account to join the conversation.
- Chris
-
- Offline
- Junior Member
- Posts: 37
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
-
- Offline
- Platinum Member
- Posts: 15920
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.
- Chris
-
- Offline
- Junior Member
- Posts: 37
Then I get the error message.
Please Log in or Create an account to join the conversation.
- John
-
- Offline
- New Member
- Posts: 7
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.
- Mailson Anselmo
-
- Offline
- New Member
- Posts: 1
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
-
- Offline
- Platinum Member
- Posts: 15920
@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.
- Chris
-
- Offline
- Junior Member
- Posts: 37
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
-
- Offline
- Platinum Member
- Posts: 15920
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Please Log in or Create an account to join the conversation.
- John
-
- Offline
- New Member
- Posts: 7
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
-
- Offline
- Platinum Member
- Posts: 15920
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.
- John
-
- Offline
- New Member
- Posts: 7
Please Log in or Create an account to join the conversation.
- Krikor Boghossian
-
- Offline
- Platinum Member
- Posts: 15920
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Please Log in or Create an account to join the conversation.
- Javier Romero
-
- Offline
- New Member
- Posts: 2
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.
- John
-
- Offline
- New Member
- Posts: 7
Its working.. problem fixed , thanks again
Please Log in or Create an account to join the conversation.
- Krikor Boghossian
-
- Offline
- Platinum Member
- Posts: 15920
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Please Log in or Create an account to join the conversation.