Page 1 of 1

Uploads module doesn't allow files to be renamed

Posted: Tue Sep 03, 2013 5:53 pm
by tophers
Not sure if this is a bug or just something I'm missing, but I can't seem to rename a file via the Uploads module. It doesn't seem to be a permissions issue, since I can rename them via the File Manager. I get the following when I try:

Code: Select all

- Missing Languagestring - module:Uploads string:error_cannotrename--
The logs are showing:

Code: Select all

[Tue Sep 03 10:24:02 2013] [warn] [client 184.71.50.xxx] mod_fcgid: stderr: PHP Notice:: Undefined variable: cat2row in /var/www/vhosts/clientsite.com/httpdocs/client/modules/Uploads/action.editupload.php on line 190, referer: http://clientsite.com/client/admin/moduleinterface.php?mact=Uploads,m1_,editupload,0&_sx_=818b2e33&m1_upload_id=1&m1_category_id=1 
[Tue Sep 03 10:24:02 2013] [warn] [client 184.71.50.xxx] mod_fcgid: stderr: PHP Warning: rename(/var/www/vhosts/clientsite.com/httpdocs/client/uploads//ABC_2011_CS_Document_1.docx,/var/www/vhosts/clientsite.com/httpdocs/client/uploads/documents/abccorp/ABC_2011_CS_Document_1x.docx): No such file or directory in /var/www/vhosts/clientsite.com/httpdocs/client/modules/Uploads/action.editupload.php on line 199, referer: http://clientsite.com/client/admin/moduleinterface.php?mact=Uploads,m1_,editupload,0&_sx_=818b2e33&m1_upload_id=1&m1_category_id=1 
I notice that there is a double forward-slash after uploads in the 'rename' line, and I'm not sure how it got there.

System info: I've updated the Uploads module to 1.16.11, and the rest of my install is up-to-date.

Re: Uploads module doesn't allow files to be renamed

Posted: Wed Sep 25, 2013 5:11 pm
by Dr.CSS
I would look at your config.php file to make sure all the paths are correct, or with these newer version you can/should be able to remove the paths from the config altogether...

Default new config needs very little...

$config['dbms'] = 'mysqli';
$config['db_hostname'] = 'localhost';
$config['db_username'] = 'root';
$config['db_password'] = '';
$config['db_name'] = '1102';
$config['db_prefix'] = 'cms_';
$config['db_port'] = 0;
$config['root_url'] = 'http://localhost/1.11';
$config['timezone'] = 'America/Denver';
$config['default_encoding'] = 'utf-8';

Re: Uploads module doesn't allow files to be renamed

Posted: Wed Sep 25, 2013 7:59 pm
by hgpdesign
We have the same issue over here - when we want to change the category we get the same error. We have removed the paths from the config altogether like suggested but still get the mentioned error. It also slows down our site quite a bit...

Hopefully someone can help...

Regards,
Ron Hoenson

Re: Uploads module doesn't allow files to be renamed

Posted: Tue Oct 15, 2013 6:58 pm
by Dr.CSS
If you had incorrect calls in config.php or just changed them for some reason you may need to clear admin side cache, sometimes a few times, to get it to remove old settings, also clear browser cache...