Keyword

Image upload error K2.7 and J3.5

More
8 years 8 months ago #152499 by Lefteris
Replied by Lefteris on 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 .

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

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

More
8 years 8 months ago #152571 by Thomas Thrane
Replied by Thomas Thrane on 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
8 years 7 months ago #152579 by algerka
Replied by algerka on 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
8 years 7 months ago #152596 by Laurent Robin
Replied by Laurent Robin on 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
8 years 7 months ago #152598 by George Sickler
Replied by George Sickler on 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
8 years 7 months ago #152618 by Frédéric
Replied by Frédéric on 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
8 years 7 months ago #152622 by Thomas Thrane
Replied by Thomas Thrane on 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
  • Senior Member
More
8 years 7 months ago #152756 by Litho-Verlag e.K.
Replied by Litho-Verlag e.K. on 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.

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
8 years 7 months ago #152797 by Krikor Boghossian
Replied by Krikor Boghossian on topic Image upload error K2.7 and J3.5
Hello Litho,

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

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

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

  • Litho-Verlag e.K.
  • Litho-Verlag e.K.'s Avatar
  • Offline
  • Senior Member
More
8 years 7 months ago #152888 by Litho-Verlag e.K.
Replied by Litho-Verlag e.K. on 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.


Powered by Kunena Forum