Page 1 of 1

[solved] PLEASE HELP!!! TinyMCE not letting me insert images

Posted: Mon Sep 27, 2010 1:25 am
by Alpdog14
I have been using CMSMS for years. I have a ton of sites running the software. I have one installation giving me issues and I cannot figure out why. Everything was working fine with inserting images using the TinyMCE and then I went in today and got this error when I tried to insert an image:

Warning: dir(/home/content/mysite/yesiamshow/CMS/uploads/images/) [function.dir]: failed to open dir: No such file or directory in /home/content/t/o/n/tonyvalle/html/yesiamshow/modules/TinyMCE/filepicker.php on line 207

Fatal error: Call to a member function read() on a non-object in /home/content/t/o/n/tonyvalle/html/yesiamshow/modules/TinyMCE/filepicker.php on line 208

I have tried to uninstall and re-install the module but nothing is working. I even went into another website I have with a working TinyMCE and copy those file over to the site that was not working but still get the same issue. Does anyone know how to fix this problem? The 207 and 208 code lines are:

Code: Select all

$d = dir($thisdir);
while ($entry = $d->read()) {
I have not idea how to fix this. Any help would be most appreciated.

Re: PLEASE HELP!!! TinyMCE not letting me insert images

Posted: Mon Sep 27, 2010 6:02 am
by RichardC
At the risk of sounding stupid, but I did not see this in your post...

Have you checked if the specified directory actually exists, and if it's writable?

Re: PLEASE HELP!!! TinyMCE not letting me insert images

Posted: Mon Sep 27, 2010 4:34 pm
by Alpdog14
I have never had to set the permissions of a module directory before? Whenever I have done a install of CMSMS everything, especially the TinyMCE would work without issues. I have tried to changed the permissions of the TinyMCE folder to 777 and even filepicker.php to 777 but I still get the same error. I have completely remove the moduled, downloaded a new on from CMSMS site and installed it but I still get the same error.

Warning: dir(/home/content/mysite/yesiamshow/CMS/uploads/images/) [function.dir]: failed to open dir: No such file or directory in /home/content/t/o/n/tonyvalle/html/yesiamshow/modules/TinyMCE/filepicker.php on line 207

Fatal error: Call to a member function read() on a non-object in /home/content/t/o/n/tonyvalle/html/yesiamshow/modules/TinyMCE/filepicker.php on line 208


I have even tried to take a TinyMCE module from another website that it is working on and replace it but still does not work.

I really could use some help on this, I have no idea how to fix it.

Re: PLEASE HELP!!! TinyMCE not letting me insert images

Posted: Tue Sep 28, 2010 3:02 pm
by Alpdog14
I really need help on this, can anyone help me?

Re: PLEASE HELP!!! TinyMCE not letting me insert images

Posted: Tue Sep 28, 2010 3:34 pm
by Alpdog14
I figured it out, if anyone gets a similar error it because your config.php file in the root directory has the wrong path to the images folder.

Re: [solved] PLEASE HELP!!! TinyMCE not letting me insert images

Posted: Thu Oct 14, 2010 3:05 pm
by hagar
Im Having the same problem with my images. How did you fix this? Much Appreciated.........Matt.......
Image

Re: [solved] PLEASE HELP!!! TinyMCE not letting me insert images

Posted: Thu Oct 14, 2010 3:14 pm
by Alpdog14
Hi Hagar, so what you need to do is go into your config.php file in the root directory and make sure you path is going to the right location of ur images. that is how i fixed it.

So in the config.php there is a line of code that reads:

Code: Select all

#Default path and URL for uploaded images in the image manager
$config['image_uploads_path'] = '/home/content/"server path"/html/"sitename"/uploads/images';
$config['image_uploads_url'] = $config['root_url'] . '/uploads/images';
This line is where I saw the location going to the wrong place, so "server path" should be the path of ur server and "sitename" should be the name of your folder. Make sure the ending directory is 'uploads/images'. I hope this helps you.

Re: [solved] PLEASE HELP!!! TinyMCE not letting me insert images

Posted: Thu Oct 14, 2010 4:02 pm
by hagar
Not to shure about this. I have all my files in a folder called cms on my server. I think im tired, have to look at this tommorrow. Thank you so much.
http://www.mhdigitaldesign.com/cms/uploads/images/Capture4.JPG

Re: [solved] PLEASE HELP!!! TinyMCE not letting me insert images

Posted: Thu Oct 14, 2010 4:14 pm
by Alpdog14
Its quite possible that you moved your files from your "cms" directory to your root directory so that means you need to remove the "cms" from that path so it reads:

#Default path and URL for uploaded images in the image manager
$config['image_uploads_path'] = '/home/mhdigita/public_html/uploads/images';
$config['image_uploads_url'] = $config['root_url'] . '/uploads/images';

Try removing the cms from that path.

Re: [solved] PLEASE HELP!!! TinyMCE not letting me insert images

Posted: Fri Oct 15, 2010 12:55 pm
by hagar
You where very helpfull, thankyou so much.................Matt