Keyword

Image upload error K2.7 and J3.5

More
3 years 6 months ago #152499 by Lefteris
Lefteris replied the topic: Image upload error K2.7 and J3.5
Hi,

The tripple equal sign operator checks a value by it's type. According to the official PHP documentation the upload errors should be integers: php.net/manual/en/features.file-upload.errors.php . So, i don't see the reason this is not working in some sites. In any case, i have applied the fix to the repository: github.com/getk2/k2/commit/6450ba69378318aeb974d2c72d8990f298f00781 .

IMPORTANT: Please search the forum before posting a question!

JoomlaWorks Support Team Member

---
JoomlaWorks
www.joomlaworks.net/

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

More
3 years 6 months ago #152571 by Thomas Thrane
Thomas Thrane replied the topic: Image upload error K2.7 and J3.5
I had the same issue on 2 sites.
When using PHP 7.0.4 the issue went away and things seems fine?
No need of changing the source code.

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

More
3 years 6 months ago #152579 by algerka
algerka replied the topic: Image upload error K2.7 and J3.5
Yes, this solution is work

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

More
3 years 6 months ago #152596 by Laurent Robin
Laurent Robin replied the topic: Image upload error K2.7 and J3.5
thanks all for the fix. had the same issue. replaced the === with == in item and category.php and it works now.

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

More
3 years 6 months ago #152598 by George Sickler
George Sickler replied the topic: Image upload error K2.7 and J3.5
I did these fixes, and I still got this error with a box that shows up. It wont upload the images or even the item unless the extra fields box is field out with some text in the video link and slide images fields.

So I just put my titles in there and it lets me continue, but how can we fix this? I tried to upload an image, but the add file link for an attachments wont work.

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

More
3 years 6 months ago #152618 by Frédéric
Frédéric replied the topic: Image upload error K2.7 and J3.5
Thank you (merci) for your fix...it works for me now...

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

More
3 years 6 months ago #152622 by Thomas Thrane
Thomas Thrane replied the topic: Image upload error K2.7 and J3.5
The fix didn't work for me, but after upgrading to PHP 7.0.4. the issue was gone!

So Joomla 3.5 + K2 2.70 + PHP 7 works for me!

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

  • Litho-Verlag e.K.
  • Litho-Verlag e.K.'s Avatar
  • Offline
  • Junior Member
More
3 years 6 months ago #152756 by Litho-Verlag e.K.
Litho-Verlag e.K. replied the topic: Image upload error K2.7 and J3.5
Hi the solution works!
But just a short question
in
/administrator/components/com_k2/models

in
item.php
and
catergory.php
I found 3 times "==="
I replaced them all with "==".

DId I do right?

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

More
3 years 6 months ago #152797 by Krikor Boghossian
Krikor Boghossian replied the topic: Image upload error K2.7 and J3.5
Hello Litho,

The '===' checks should be located in lines 276-279.

IMPORTANT: Please search the forum before posting a question!

JoomlaWorks Support Team Member

---
JoomlaWorks
www.joomlaworks.net/

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

  • Litho-Verlag e.K.
  • Litho-Verlag e.K.'s Avatar
  • Offline
  • Junior Member
More
3 years 6 months ago #152888 by Litho-Verlag e.K.
Litho-Verlag e.K. replied the topic: Image upload error K2.7 and J3.5
Hi Krikor,
thanks for your confirmation.

that's right for the item.php

but for the category.php are the lines: 86-88.

regards
Litho

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

Moderators: william white

Powered by Kunena Forum