problems with images not uploading

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Locked
fiddler

problems with images not uploading

Post by fiddler »

Ok, I've literally scoured this web site for someone else to have this problem, and can't seem to find anything on it, although I have found some similar problems that were not any help to my particular situation.

I have several sites running cmsmade simple.  Most of the sites run without incident.  The newest versions (from 1.1.3.1 on up to 1.2.3) seem to install or upgrade just fine except for one problem and that is I can no longer upload any images.  It doesn't matter if I use Tnymce or FCKeditor, when I click on the upload image icon, it goes through the motions ok, and when it says it is finished uploading, all I get is a broken image icon and the path no longer points to the uploads/images directory - instead, the path points to the photo being in the main directory - which it isn't - nor is it in the uploads/images directory.  If I ftp the image to whatever directory, then edit the path of the image to the correct directory, the photo will naturally show up, because I manually put it there. 

I've tried uninstalling and reinstalling both wysiwygs - I've tried uninstalling and reinstalling fresh (different) cmsmadesimple versions (on the new sites, anyway) - anything below the 1.1 works, anything above doesn't. 

All the sites in question are on the same server, using the same version of php and all the permissions are set correctly.
I am absolutely stumped as to why (a.) the path for the images doesn't point to the uploads/images files like the older versions of cms do and (b.) why the images don't upload at all.

Does anyone have any idea here on what's going on?
nickcw

Re: problems with images not uploading

Post by nickcw »

I have just been having simular problems with uploading files.

There are 2 ways to upload images in the fck editor, both using different forms.
1.) From within the file browser. I found this upload method works.

2.) From the upload tab in the images properties dialogue box. I belive this is broken.
The problem I found is as you described the images did not upload and the path it said it uploaded to is the root folder.

The fix or what fixed it in my case was to add the following lines to the following file...

In this file (assuming your root folder is /public_html/)...
/public_html/modules/FCKeditorX/FCKeditor/editor/filemanager/upload/php/upload.php

Add the following 2 lines...
require_once(dirname(dirname(dirname(dirname(dirname(dirname(dirname(dirname(__FILE__)))))))) . '/include.php');
check_login();

Just before these 2 lines...
require('config.php') ;
require('util.php') ;

Hope this fixes the problem.

Not sure who needs telling to get the SVN version updated, so when people download the module they get the corrected version.

Nick
fiddler

Re: problems with images not uploading [Solved]

Post by fiddler »

Yes, that did the trick.  Thanks!!!!!
fiddler

Re: problems with images not uploading

Post by fiddler »

[SOLVED]
I know it's been a long time since this thread has been commented on, but I want to include some notes here for future reference, since I had the same problem again with the latest upgrade, as well as a new install for another website.

If you've looked over the entire forum and exhausted all possibilities from other threads, my experience today may be of some help.

I installed 1.5.4 on a new website, and also upgraded to 1.5.4 on another website.  When everything was loaded, and FCKeditorX 1.1.0 was installed, I ran across the same problem with the images not uploading to the server.  I researched and found I had started this thread over a year ago, and saw that adding some coding to a file worked before.  Unfortunately, it didn't work this time.  The coding was already in place (or maybe I copied it over - whatever, when I looked at the file, the code was there).

I uninstalled and reinstalled FCKeditorX version 1.1.0 and that didn't do the trick.

Then i remebered I needed to go under Extensions and click on the  FCKeditorX (below the dotted line under Extensions) and check the following:
chk - Use CMS Language settings
chk - Enable XHTML Formatting
chk - Enable context menu

Then set the width and height with specific px (I used 800 px wide by 600 px high)

Click update.

One other thing I discovered I needed to change the permissions on the modules directory to 755 (for some reason I had them at 777 - probably I did that on install???).

Last but not least, I had to clear the cache in my computer - so I closed everything out - ran a nifty little free program called CCleaner, then accessed the website again and Voila!  It worked.

No guarantees that this will work in future versions/upgrades - I only know I just spent 6 hours banging my head against the wall trying to come up with the viable solution I just stated here.

Since I see quite a few people seeming to search/read with similar problems, perhaps this will help.  In any case, I now have a written "diary" to refer to when I can't remember everything that needs to be done the next time.
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: problems with images not uploading

Post by Dr.CSS »

FCKeditor is no longer supported as the developer hasn't made any updates to it in a year and tiny comes default with cmsms now and most don't have a problem with it...
Locked

Return to “CMSMS Core”