- Posts: 15920
COMMUNITY FORUM
Image upload error K2.7 and J3.5
- Krikor Boghossian
- Offline
- Platinum Member
@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.