Page 1 of 1

Working Directory and Image Drop Zone Error

Posted: Fri May 02, 2014 3:00 am
by catchlight
Hi, I'm running CMSMS 1.11.10, recently upgraded from 1.9.1.

If I drop an image into the "Drop files here to upload" drop zone in the top right of CMSMS's admin, they get created in a directory called "ploads" in the root directory.

If I delete that folder and try it again, CMSMS just creates it again when I drop another image.

Even if I click the folder icon to the left of the drop zone and change the Working Directory, the same thing happens.

I have looked at the config file, and searched the DB for "/ploads"

It's probably a typo on my part somewhere, but where?!

Where is the "Working Directory" set? am I missing something in my config?

Can anyone help?

Re: Working Directory and Image Drop Zone Error

Posted: Fri May 02, 2014 7:46 pm
by Dr.CSS
Sounds like you need to look at your config.php, if this is an upgrade it may have a bad path that you need to remove, the config only needs a few lines to function...

<?php
# CMS Made Simple Configuration File
# Documentation: /doc/CMSMS_config_reference.pdf
#
$config['dbms'] = 'mysqli';
$config['db_hostname'] = 'localhost';
$config['db_username'] = 'mark';
$config['db_password'] = 'newcm$';
$config['db_name'] = 'test3';
$config['db_prefix'] = 'cms_';
$config['timezone'] = 'UTC';
?>

Once you clean that up go to Site Admin > system maintenance and hit all the buttons there, I usually do Optimize tables: then Repair tables: then Update page hierarchy positions: then Update Routes: and finally Clear Cache:...

I had a similar problem with "ploads" the other day and this fixed it...

Re: Working Directory and Image Drop Zone Error

Posted: Mon May 05, 2014 3:15 am
by catchlight
Config seemed to be right, but I took your advice and simplified it greatly. I did all the Maintenance area tasks and Presto!

All CMSMS upload functions working as expected. Thanks for that! Awesome. O0