Uploads module doesn't allow files to be renamed

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Post Reply
User avatar
tophers
Forum Members
Forum Members
Posts: 218
Joined: Thu Jun 07, 2007 7:25 pm

Uploads module doesn't allow files to be renamed

Post 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.
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

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

Post 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';
User avatar
hgpdesign
Forum Members
Forum Members
Posts: 47
Joined: Wed Jul 09, 2008 7:06 am

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

Post 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
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

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

Post 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...
Post Reply

Return to “Modules/Add-Ons”