- Posts: 34
COMMUNITY FORUM
SOLVED - K2 Item Images Cannot be Added!!
- Sarah Allen
-
Topic Author
- Offline
- Junior Member
I have come across an issue when using K2 on the Joomla site I am currently developing.
I am using Joomla 3.5.1 and K2 2.7 (updated yesterday and issue still persists from previous version ?2.6.8?).
My host runs PHP 5.6.18 on the current server I am working on (but our live server is 5.3.29, so I need to see about getting them to update it before I go live).
I have searched the forum for a resolution to my issue, but as I haven't found one yet I am going to post my question here as I have a impending deadline to have the site live by and cannot miss it!
My issue is that whenever I try to add an image using the K2 Image Tab I get the following:
If I try to add an already uploaded image or if I try to add an image using the upload feature, I get the error "Notice
The image was not uploaded. Please ensure that you used a valid image file and that file uploads are properly configured on your server."
I have gone through ALL of my category and item settings, component settings and everything I can possibly think of and can't seem to find a reason for the issue.
I've already seen this post in the forum - www.joomlaworks.net/forum/k2-en/45116-solved-image-upload-error-k2-7-and-j3-5?limitstart=0 - and have tried the solution that was suggested there, but it doesn't seem to have worked for me?
If you need access to my site to troubleshoot please let me know I can PM or Email you some details.
Any help that could be provided as soon as possible would be very much appreciated!!
Thanks in advance,
Sarah
Please Log in or Create an account to join the conversation.
- Krikor Boghossian
-
- Offline
- Platinum Member
- Posts: 15920
Are you using any 3rd party K2 extensions?
Are your permissions correct? Correct permissions for Joomla! sites are 755 for folders and 644 for files.
Please Log in or Create an account to join the conversation.
- Sarah Allen
-
Topic Author
- Offline
- Junior Member
- Posts: 34
Thanks for getting back to me!
I am using JCE as my default site editor. Other than that, there are no 3rd Party K2 extensions I can think of.
I believe my permissions are correct, yes. I haven't changed them, so there should be nothing out of the ordinary.
Any help you could provide would be very much appreciated!!
Thanks,
Sarah
Please Log in or Create an account to join the conversation.
- Krikor Boghossian
-
- Offline
- Platinum Member
- Posts: 15920
updated yesterday and issue still persists from previous version ?2.6.8?).
This leads me to believe that something is wrong with your setup.
Try correcting your permissions and making sure that the path to the /logs and /tmp folders is correct.
Please Log in or Create an account to join the conversation.
- Sarah Allen
-
Topic Author
- Offline
- Junior Member
- Posts: 34
I have checked my permissions again and I've checked the path to both folders you mentioned. I've even run an Akeeba Fix Permissions.
The issue still persists.
I cannot upload files via the K2 Item Image tab, nor can I even use the 'Browse Server' tool next to the upload to insert an already uploaded file.
Both give me the same message.
"Notice
The image was not uploaded. Please ensure that you used a valid image file and that file uploads are properly configured on your server."
It's Friday here, so I won't be able to get back to you now until Monday, but I am happy to provide you with access details to the site when I get back to the office next week and you can take a look at the issue?
Thanks very much - have a great weekend!
Sarah
Please Log in or Create an account to join the conversation.
- Krikor Boghossian
-
- Offline
- Platinum Member
- Posts: 15920
Please Log in or Create an account to join the conversation.
- Sarah Allen
-
Topic Author
- Offline
- Junior Member
- Posts: 34
I have not spoken to my host as yet. I have another site on the same server, with the exact same setup (i.e. Joomla version, template, extension versions etc...) and the uploads are working fine there!
So, I can do one of two things now:
1. I can contact my host and see if they can find anything in the server that could be causing the issue
OR
2. I can give you details to my site and you can log in and take a look to see if there is anything wrong?
I don't believe my host will be able to help on this one as they only take care of the server, WHM and cPanel troubleshooting and the rest is up to me.
Also, as another site with the same setup is working, I don't believe it's a server issue ( I could be wrong though), so what would you recommend?
Thanks,
Sarah
Please Log in or Create an account to join the conversation.
- Krikor Boghossian
-
- Offline
- Platinum Member
- Posts: 15920
You can start by deactivating these extensions.
Furthermore, it has happened in the past, you could have reached the limit of your available disk space.
Finally you can enable error reporting and set it to development so any potential PHP fatal errors can show up.
Please Log in or Create an account to join the conversation.
- Gary Hewitt
-
- Offline
- New Member
- Posts: 10
Please Log in or Create an account to join the conversation.
- Sarah Allen
-
Topic Author
- Offline
- Junior Member
- Posts: 34
I have was at my wits end with this one, so I called upon the services of a website development and support company that my organisation uses from time to time for various things.
It turns out that, after their troubleshooting and testing the Item Upload was working (even though before their testing I couldn't get it to work), but the 'Browse' feature still wouldn't work. The support team then realised that because the folders I was trying to browse for images in had spaces in their names. As soon as we changed the folder names (removed the spaces) it all started working again!
My issue is resolved, and I hope (if this doesn't help you) that your issue is resolved soon!
Thanks,
Sarah
Please Log in or Create an account to join the conversation.
- Krikor Boghossian
-
- Offline
- Platinum Member
- Posts: 15920
Now... @Gary
Have you seen this thread www.joomlaworks.net/forum/k2-en/45116-solved-image-upload-error-k2-7-and-j3-5?limitstart=0 ?
This is not a coding issue, as per PHP's manual the code is correct but in some versions the result is a string instead of an integer. The ;TLDR version is, we changed the code in the repo.
Please Log in or Create an account to join the conversation.
- Gary Hewitt
-
- Offline
- New Member
- Posts: 10
Please Log in or Create an account to join the conversation.
- Krikor Boghossian
-
- Offline
- Platinum Member
- Posts: 15920
This change is already included in our repo (DEV version) so the new version contains the == code.
Please Log in or Create an account to join the conversation.