Keyword

Images not saving

  • Carden
  • Carden's Avatar Topic Author
  • Offline
  • New Member
More
12 years 6 months ago #105724 by Carden
Images not saving was created by Carden
I have been using K2 for a few months without any problems but recently I have encountered a problem with uploading or inserting images in both the back end and in the front end.

In the back end when I browse to an image on my computer or on the server and click save I get redirected to a blank page www.mydomain/administrator.php .....and the image does not get uploaded and is not saved, but the category or item is saved

In the front end when I browse to an image on my computer and click save the content editor window goes blank. If I browse to an image on the server and click save I get a 404 error message and the image is not uploaded or saved,....... but in each case the item or category is saved.

If you wish to test this in the front end follow this Link:
Log in as "guest" and password "guest"

Please note: I am an experienced joomla administrator but not a developer so please use layman language as much as possible.

I greatly appreciate any assistance you can provide.

Thanks,
Carden

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

More
12 years 6 months ago - 12 years 6 months ago #105725 by william white
Replied by william white on topic Re: Images not saving
First, turn error reporting on int eh Joomla Global Settings Server Tab.
Try to load the pages again and there may be an error reported that will point you in the direction of whats not correct.

Also,check the information tab in the k2 dashboard, be sure mb_string is enabled on your server

Since you have been using K2 for several months, if this symptom just showed up and was not there before, what have you changed or added to your site that could be causing the error

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

  • Carden
  • Carden's Avatar Topic Author
  • Offline
  • New Member
More
12 years 6 months ago #105726 by Carden
Replied by Carden on topic Re: Images not saving
W.W - Thanks for the speedy response and the suggestions.

1) I set error reporting to maximum in server tab.
2) When the add item window opened the following notice appeared across the top of the page.

"Notice: Undefined property: JSite::$registeredurlparams in /home/regional/public_html/libraries/joomla/cache/cache.php on line 639"

3) When I clicked the image tab the following error message appeared.

"Invalid backend response. Data is not JSON."

I Googled this error message and there seems to be a number of references to 2.5.7 version of K2 and some of the responses were too technical for me to follow. ( I have version 2.6.1)

I also used the serach function on the K2 website and found that several people have had this problem with v.2.5.7 but found no references to v.2.6.1. There may be an solution in the postings but perhaps in a language I do not understand.

4) As far as I can recall the only change that have been made is the installation of a JCE update and then I reviewed the settings making a few changes but I don't see anything that might have caused this problem.

5) Mb_string is enabled.

Does any of this narrow down the problem? Hopefully you can help.

Thanks

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

More
12 years 6 months ago #105727 by william white
Replied by william white on topic Re: Images not saving
Check your system plugins, test by disabling the to see if one of them is causing the problem

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

  • Carden
  • Carden's Avatar Topic Author
  • Offline
  • New Member
More
12 years 6 months ago #105728 by Carden
Replied by Carden on topic Re: Images not saving
Thanks for the suggestion. I tried turning off each system plugin but the problem persists.

Any other ideas?

Carden

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

More
12 years 6 months ago #105729 by Lefteris
Replied by Lefteris on topic Re: Images not saving
@Carden

Set error reporting to maximum as William suggested and try again. If get the blank screen again but no fatal errors, use browser's page source button to view the actual source. Sometimes the error may be hidden inside a div element.

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

  • Carden
  • Carden's Avatar Topic Author
  • Offline
  • New Member
More
12 years 6 months ago - 12 years 6 months ago #105730 by Carden
Replied by Carden on topic Re: Images not saving
Thanks L.K.
I tried as you suggested and did not get a fatal error message.
As I am not a coder I have attached as file for your perusal.
Hopefully something will be evident.
Carden
Attachments:

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

More
12 years 6 months ago #105731 by Lefteris
Replied by Lefteris on topic Re: Images not saving
@Carden

So what's the issue? I see a normal HTML page.

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

  • Carden
  • Carden's Avatar Topic Author
  • Offline
  • New Member
More
12 years 6 months ago #105732 by Carden
Replied by Carden on topic Re: Images not saving
Ok: The issue is that I am unable to bring images into K2 pages.

The html page code sent previously is what was produced when viewing source code of blank page produced after trying to save image from the front end. As I do not understand code I passed it along in case there was something useful.

I also tried viewing source code of the blank page that resulted when trying to save image from the back end. In this case no source code is produced it is truly a blank page.

I really like K2 and my community users are very excited about the capabilities. Does anyone have any additional ideas as to how to solve this problem.

I am unable to identify any additions or changes that were made to the system that could have caused the problem. As I have mentioned previously the only change that has been made since the installation of K2 is the upgrade to the current version of JCE. Nevertheless, in the coming days I intend to disable each extension one by one to see if a conflict can be identified. As my available time is very limited it will no doubt take some time to complete this task.

Alternatively, I am looking for options for a way forward. A fix for the existing issue would be ideal, but if no fix exists, what are the next best options?
For instance:
1) if I uninstall K2 and reinstall might the problem be solved?
2) if so, will all of the items, categories and images be deleted.
3) If yes, is there any practical way to export items, categories, and images and then import back into a clean installation.

I greatly appreciate any and all help.
Carden

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

More
12 years 6 months ago #105733 by Ryo San
Replied by Ryo San on topic Re: Images not saving
Hi,

Did you found a solution ? I think I have the same problem, impossible to add an image to an article with Joomla 2.5.7 and K2 2.6.1 :unsure:

Ryo

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

  • Carden
  • Carden's Avatar Topic Author
  • Offline
  • New Member
More
12 years 6 months ago #105734 by Carden
Replied by Carden on topic Re: Images not saving
Not yet.


The prevailaing theory seems to be that there is a conflict with another plugin or extension or that a change has been made to the system that has caused the problem. so far I have not identified any possible conflict or cause but have not completely ruled out the possibility.

I feel your paun but I'm glad to hear that someone else is having the same problem. I hope that the K2 team will take it seriously. It is a huge problem and we all need a solution.

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

More
12 years 6 months ago #105735 by Pieter
Replied by Pieter on topic Re: Images not saving
I'm having the exact same problem. However there are a few differences: I do not get any error or 404 page. I can upload the image using the file browser (click Browse server...), but it just doesn't save it when I select that image.

Also J2.5.7 and K2 2.6.1.

Any solutions yet?

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

  • Carden
  • Carden's Avatar Topic Author
  • Offline
  • New Member
More
12 years 6 months ago #105736 by Carden
Replied by Carden on topic Re: Images not saving
I created my own solution by deleting the site and restoring from a back-up that was taken three weeks ago before the problem occurred. I will have to redo a lot of work that was completed in those three weeks, but I could not wait any longer for a fix.

J2.5.7 and K2 2.6.1. are working properly now but I do expect that the issue will reoccur. From now on I will be backing up first and documenting all changes to the site in the hope of finding the cause of this huge problem.

If anyone finds the cause or the fix please post a message here. Much appreciated.

Carden

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

More
12 years 6 months ago #105737 by Ryo San
Replied by Ryo San on topic Re: Images not saving
pfffff that's terrible!!!!!!!!!

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

More
12 years 6 months ago #105738 by Lefteris
Replied by Lefteris on topic Re: Images not saving
@Ryo San

Are you getting any error? Try to use the SVN version at getk2.org/assets/svn . Backup your site first. Let me know if the SVN version solves your issue.

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

More
12 years 6 months ago #105739 by pbellot
Replied by pbellot on topic Re: Images not saving
Hi,
I had the same problem (OS X 10.8, Joomla 2.5.7., K2 2.6.1) : blank page after choosing image and saving
-->
I edited the file administrator/components/com_k2/lib/class.upload.php
and set MIME detection methods to false :

// these are the different MIME detection methods. if one of these method doesn't work on your
// system, you can deactivate it here; just set it to false
$this->mime_fileinfo = false; // MIME detection with Fileinfo PECL extension
$this->mime_file = false; // MIME detection with UNIX file() commaed
$this->mime_magic = false; // MIME detection with mime_magic (mime_content_type())
$this->mime_getimagesize = false; // MIME detection with getimagesize()

This resolved the issue

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

More
12 years 6 months ago #105740 by Mark
Replied by Mark on topic Re: Images not saving

Carden wrote: W...

"Invalid backend response. Data is not JSON."

...


I am having the exact same issue as everyone else on here. The sites were functioning properly for over a year and then all of a sudden, i am getting these errors when attempting to upload.

I am using Godaddy VDS with Plesk on a Windows server. K2 v 2.6.1 / Joomla 1.5.26 AND Joomla! 2.5.4 Stable - I am having the problem on both versions of Joomla on 2 different websites. Both of which were working just fine with no problems.

I have been over and over all these forums for K2, JCE and Joomla and have attempted almost every "solution" that it shows.. nothing seems to be working.

I could really use some help if anyone has a direction to try... i am open to trying almost any solution at this point...

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

More
12 years 6 months ago #105741 by Ryo San
Replied by Ryo San on topic Re: Images not saving
Hi everyone and thanks for your answer.

I try the method explain by Patrice and...... MIRACLE it works, finally I can attach an image!!!!!

So Lefteris what do you think of it ? Is it a problem to do this ? For the next update the modification could be delete so maybe there is an another way to make this modification ?

Thanks for your answer,

Ryo

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

  • Carden
  • Carden's Avatar Topic Author
  • Offline
  • New Member
More
12 years 6 months ago #105742 by Carden
Replied by Carden on topic Re: Images not saving
The problem of images not saving has reoccurred!!!!!!!!!!!!!!!!

I reconstructed almost all of the content, categories, items, menus, modules etc. over the last several days and all of a sudden today the problem has spontaneously reoccurred.

Periodically along the way I have tested saving images and everything has been working properly until tonight after I completed setting up modules and K2 user login settings. Once again I tested adding an image to an article and it will not save.

I have not added any extensions, plugins, templates, components etc. but the problem has reoccurred.

This is very annoying and confusing.

I am now very anxious to hear from others regarding the fix suggested by Patrice and confirmed by Ryo San.

What, possible problems could be associated with this fix?

Carden

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

More
12 years 6 months ago #105743 by Lefteris
Replied by Lefteris on topic Re: Images not saving
The fix just disabled the mime detection. We need to ensure that the uploaded file is an image and so we need the mime detection. For anyone of you facing the issue:

1. Check again the directory permissions. They should be writable.
2. Try to increase PHP's memory limit.
3. Try to increase the maximum upload size.
4. If you have any PHP hardening solution to your server ( like Suhosin ) try to disable it.

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


Powered by Kunena Forum