- Posts: 24
COMMUNITY FORUM
K2 image upload not working with PHP 7.4
- Jennie Dawson
-
Topic Author
- Offline
- Junior Member
I moved a new site I've just completed to PHP version 7.4 but when I tried to add an image to a K2 item under the image tab, it failed to upload. I tried other images and they failed too. There was a warning message but unfortunately it was behind the 'Item saved' message so unable to read it all - see attachment.
I tried logging in from Chrome (I was using Firefox) and that didn't help.
I reverted the site back to PHP 7.2 and tried again, and it then worked fine and the image was uploaded.
Joomla version is 3.9.12
K2 version is 2.10.2
Many thanks
Jennie
Please Log in or Create an account to join the conversation.
- JoomlaWorks
-
- Offline
- Admin
- Posts: 6227
K2 is tested and working with PHP up to 7.4.
Fotis / JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Please Log in or Create an account to join the conversation.
- Jennie Dawson
-
Topic Author
- Offline
- Junior Member
- Posts: 24
I've not installed any third party k2 extensions, this is just a basic site and I wanted to use k2 for a blog. I've attached the FPA report if that helps.
URL: www.mindfell.co.uk/blog
It could just be that I need to enable a PHP setting in cPanel maybe? I've also attached screenshot of settings. I enabled the 2 under 'N' as previously when I tried to switch to 7.4 on a Joomla site it didn't work at all. A search suggested this fix but I only just got around to trying it.
I have another site I can test this on which is currently running on 7.4.
Many thanks
Jennie
Please Log in or Create an account to join the conversation.
- Jennie Dawson
-
Topic Author
- Offline
- Junior Member
- Posts: 24
Please Log in or Create an account to join the conversation.
- JoomlaWorks
-
- Offline
- Admin
- Posts: 6227
However, I wound strongly recommend installing most, only excluding the ones you KNOW you won't use, e.g. mongodb, redis, newrelic etc.
Fotis / JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Please Log in or Create an account to join the conversation.
- Jennie Dawson
-
Topic Author
- Offline
- Junior Member
- Posts: 24
Enabling the GD php extension sorted this.
I love the way you think that I would know which ones were not needed! I've searched for a list of recommended php extensions for Joomla but got nowhere. I did find one for Wordpress! Even where there are tooltips explaining it, it doesn't make me any the wiser! I tried enabling one that looked like it would be needed, but it refused saying it would conflict. I think I'd have to google every one, maybe when I have a spare afternoon, ahem!
I've never had to touch these before, the default setup always seems to have worked in the past.
Thank you for your help
Best wishes
Jennie
Please Log in or Create an account to join the conversation.
- JoomlaWorks
-
- Offline
- Admin
- Posts: 6227
If you get a specific conflict error, share it back with us and I'll tell you what to do.
Fotis / JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Please Log in or Create an account to join the conversation.
- RomyS
-
- Offline
- Junior Member
- Posts: 29
In IMAGE TAB: select image from the server > give me this error:
"The image was not uploaded. Please ensure that you used a valid image file and that file uploads are properly configured on your server."
Can you helpme here or i need to open other post?
Thanks for your time!
R
Please Log in or Create an account to join the conversation.
- RomyS
-
- Offline
- Junior Member
- Posts: 29
Probed into php 7.2 and 7.3
Please Log in or Create an account to join the conversation.
- JoomlaWorks
-
- Offline
- Admin
- Posts: 6227
Fotis / JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Please Log in or Create an account to join the conversation.
- RomyS
-
- Offline
- Junior Member
- Posts: 29
Regards
Please Log in or Create an account to join the conversation.
- JoomlaWorks
-
- Offline
- Admin
- Posts: 6227
Fotis / JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Please Log in or Create an account to join the conversation.
- RomyS
-
- Offline
- Junior Member
- Posts: 29
THIS WARNINGS:
_ /media/system/jscore.js:1 window.submitform() is deprecated use Joomla.submitform() instead
window.submitform @ core.js?e262ddda6f4611e2e09b9f369afb247a:1
Joomla.submitbutton @ index.php?option=com_k2&view=item&cid=29613:245
onclick @ index.php?option=com_k2&view=item&cid=29613:393
index.php?option=com_k2&view=item&cid=29613:1
_ [DOM] Found 2 elements with non-unique id #K2ExtraField_2: (More info: goo.gl/9p2vKq) index.php?option=com_k2&view=item&cid=29613:1
AND THIS INFO:
_ VM626 jquery.min.js:2 [Violation] Added non-passive event listener to a scroll-blocking 'touchstart' event. Consider marking event handler as 'passive' to make the page more responsive. See www.chromestatus.com/feature/5745543795965952
add @ VM626 jquery.min.js:2
a.event.add @ VM630 jquery-migrate.min.js:2
(anonymous) @ VM626 jquery.min.js:2
each @ VM626 jquery.min.js:2
each @ VM626 jquery.min.js:2
xe @ VM626 jquery.min.js:2
on @ VM626 jquery.min.js:2
(anonymous) @ VM628 elfinder.min.js:10
o @ VM628 elfinder.min.js:11
trigger @ VM628 elfinder.min.js:9
(anonymous) @ VM628 elfinder.min.js:11
u @ VM626 jquery.min.js:2
fireWith @ VM626 jquery.min.js:2
i.<computed> @ VM626 jquery.min.js:2
a @ VM628 elfinder.min.js:9
M @ VM628 elfinder.min.js:9
u @ VM626 jquery.min.js:2
fireWith @ VM626 jquery.min.js:2
C @ VM626 jquery.min.js:2
n @ VM626 jquery.min.js:2
___media/jui/js/ jquery.min.js?e262ddda6f4611e2e09b9f369afb247a:2 [Violation] 'readystatechange' handler took 186ms
[Violation] Forced reflow while executing JavaScript took 81ms
VM628 elfinder.min.js:10 [Violation] 'requestAnimationFrame' handler took 69ms
[Violation] Forced reflow while executing JavaScript took 32ms
__ VM626 jquery.min.js:2 [Violation] Added non-passive event listener to a scroll-blocking 'touchstart' event. Consider marking event handler as 'passive' to make the page more responsive. See www.chromestatus.com/feature/5745543795965952
add @ VM626 jquery.min.js:2
a.event.add @ VM630 jquery-migrate.min.js:2
(anonymous) @ VM626 jquery.min.js:2
each @ VM626 jquery.min.js:2
each @ VM626 jquery.min.js:2
xe @ VM626 jquery.min.js:2
on @ VM626 jquery.min.js:2
(anonymous) @ VM628 elfinder.min.js:10
o @ VM628 elfinder.min.js:11
trigger @ VM628 elfinder.min.js:9
(anonymous) @ VM628 elfinder.min.js:11
u @ VM626 jquery.min.js:2
fireWith @ VM626 jquery.min.js:2
i.<computed> @ VM626 jquery.min.js:2
a @ VM628 elfinder.min.js:9
M @ VM628 elfinder.min.js:9
u @ VM626 jquery.min.js:2
fireWith @ VM626 jquery.min.js:2
C @ VM626 jquery.min.js:2
n @ VM626 jquery.min.js:2
__ jquery.min.js?e262ddda6f4611e2e09b9f369afb247a:2 [Violation] 'readystatechange' handler took 186ms
[Violation] Forced reflow while executing JavaScript took 81ms
__ VM628 elfinder.min.js:10 [Violation] 'requestAnimationFrame' handler took 69ms
[Violation] Forced reflow while executing JavaScript took 32ms
Please Log in or Create an account to join the conversation.
- JoomlaWorks
-
- Offline
- Admin
- Posts: 6227
Fotis / JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Please Log in or Create an account to join the conversation.
- RomyS
-
- Offline
- Junior Member
- Posts: 29
Thanks!
Please Log in or Create an account to join the conversation.
- JoomlaWorks
-
- Offline
- Admin
- Posts: 6227
Fotis / JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Please Log in or Create an account to join the conversation.
- RomyS
-
- Offline
- Junior Member
- Posts: 29
See in my second post #177589 >
UPDATE >> I updagrade to 2.10.4 and the error persist! Probed into php 7.2 and 7.3
Please Log in or Create an account to join the conversation.
- JoomlaWorks
-
- Offline
- Admin
- Posts: 6227
Fotis / JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Please Log in or Create an account to join the conversation.
- RomyS
-
- Offline
- Junior Member
- Posts: 29
I ask you: is it possible that your add some changes for everyone?
1/ In View>Item>tmpl > Change the image tag "summary" of the Twitter card to: "summary_large_image"? I have read that other users also requested it.
2/ In Administrator, mod k2 stats > the time is incorrect, it is "K2_DATE_FORMAT" (broked the hours and minutes) but it will be: "K2_DATE_FORMAT_LC2"
These are two changes that I always make manually every time I update k2 in my sites! ;)
Please Log in or Create an account to join the conversation.
- JoomlaWorks
-
- Offline
- Admin
- Posts: 6227
2. The issue is most likely in your language pack, it's not a K2 issue.
Fotis / JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Please Log in or Create an account to join the conversation.