Hi,
I had issue with uploading image to blog item.
I couldn't upload image and no error was showing in admin. This was on Joomla updated site to J3.5 and K2 was updated to v2.7 and on online hosting server. I couldn't get this error on localhost on Wamp.
I did some digging and found that problem is probably in J3.5, but I'm not 100% sure.
I fix that in item.php file (K2 administrator\components\com_k2\models) and alternated lines (around 276-279):
if (($files === 0 || $existingImage) && !JRequest::getBool('del_image'))
changed to
if (($files == 0 || $existingImage) && !JRequest::getBool('del_image'))
and
if ($files === 0)
changed to
if ($files == 0)
Not sure if this is correct, but after that I could upload image to item and didn't get any error.
Before that, I have tested K2 v2.7 on J4.8 and it is working fine online and local - I can upload image.
Uploading images on K2 v2.7 on fresh J3.5 install on local server is working as well.
Didn't have time to test fresh J3.5 install and k2 v2.7 on online server.
Also uploading video is working OK.
Maybe someone can check that code if there is not any issue.
Thanks.
I had issue with uploading image to blog item.
I couldn't upload image and no error was showing in admin. This was on Joomla updated site to J3.5 and K2 was updated to v2.7 and on online hosting server. I couldn't get this error on localhost on Wamp.
I did some digging and found that problem is probably in J3.5, but I'm not 100% sure.
I fix that in item.php file (K2 administrator\components\com_k2\models) and alternated lines (around 276-279):
if (($files === 0 || $existingImage) && !JRequest::getBool('del_image'))
changed to
if (($files == 0 || $existingImage) && !JRequest::getBool('del_image'))
and
if ($files === 0)
changed to
if ($files == 0)
Not sure if this is correct, but after that I could upload image to item and didn't get any error.
Before that, I have tested K2 v2.7 on J4.8 and it is working fine online and local - I can upload image.
Uploading images on K2 v2.7 on fresh J3.5 install on local server is working as well.
Didn't have time to test fresh J3.5 install and k2 v2.7 on online server.
Also uploading video is working OK.
Maybe someone can check that code if there is not any issue.
Thanks.