Home arrow Forum

Remository Forum

 


quads

Karma: 0  
Add files on server (not) working - 2008/03/01 12:00 For the *LIFE* of my can't get this to work. Single file add works fine. Bulk add, or "Add files on server" doesn't work for me.

Love everything else about the module. Works just as it should, however I follow the instructions as shown here: http://www.remository.com/rem/view/FAQ/Remository-general/Add-files-already-on-the-server/
Add files already on the server and it doesn't work.
When you click "Save" it reports back "Files added" but they are not in the container and they don't show up in the page / folder.

I've tried database mode, file system mode, new containers, etc. etc. etc. I've also tried it on three different 1.5.x J! installations on two different servers.

Double and triple checked the path, etc.

Any ideas?
I feel like I've exhausted everything I can on my end, and am still coming up short.

I would really love to get this working.

Post edited by: counterpoint, at: 2008/03/04 14:43
  | | Sorry, you do not currently have permission to write here.
admin

Karma: 98  
Re:Add files on server not working - 2008/03/03 18:13 Are you sure the extensions of the files you want to add are in the list of permitted extensions in the Remository config?

It's possible the FAQ should say a little more - the list of extensions you submit when adding a bunch of files is intended to be a subset of the list in the config. Any that are not in the config will be ignored.

If it's not that, we'll need to put in some diagnostics to figure out what is happening. The loop that adds the files is in c-admin-classes/remositoryAdminAddstructure.php between (approx) lines 65 and 77:
Code:

          foreach ($files as $file) {             @set_time_limit(25);             $ext remositoryAbstract::lastPart($file,'.');             if ($extensions != '*' AND !in_array($ext$extensions)) continue;             if (in_array($file$existingfiles)) continue;             $filepath $path.$file;             $physical =& new remositoryPhysicalFile ();             $physical->setData($filepath000false);             $newfile->id 0;             $newfile->filetitle '';             $newfile->storePhysicalFile ($physical$extensiontitlefalse);             if ($delete) @unlink($filepath);         }



I'd suggest putting a "var_dump($file);" just after the first of these lines and a "echo 'About to store physical';" just before the line that includes "storePhysicalFile" near the end.

Also, towards the end and just before a line that starts off "$this->interface->redirect..." insert a statement that just says "die;" because otherwise the redirect throws up a new screen.
Martin Brampton aka Counterpoint
http://aliro.org
http://black-sheep-research.com
  | | Sorry, you do not currently have permission to write here.
quads

Karma: 0  
Re:Add files on server not working - 2008/03/03 18:27 I have made no changes to the config file that came with the distro and installation. I never read anywhere that there were changes possible to make in the config. file.

I'll look in there, test and report back.
  | | Sorry, you do not currently have permission to write here.
quads

Karma: 0  
Re:Add files on server not working - 2008/03/03 18:32 Could you be so kind as to point me to the correct config file?

Are you talking making these changes in com_remository_settings.php ?

If so, the file extension I'm trying to add is in the list of:

$ExtsOk = 'txt,exe,tar,gz,rar,zip,png,gif,jpg,pdf,doc,rtf';

However I see no other config file. Is there another I should be looking at?
  | | Sorry, you do not currently have permission to write here.
admin

Karma: 98  
Re:Add files on server not working - 2008/03/03 18:35 No, look at the actual configuration interface within the admin functions. The PHP file is only used to create the initial default configuration. If the files you are adding are within the configured extensions (both for the Remository config and what is entered on the add file screen) then it must be something else. It works well in my testing Martin Brampton aka Counterpoint
http://aliro.org
http://black-sheep-research.com
  | | Sorry, you do not currently have permission to write here.
quads

Karma: 0  
Re:Add files on server not working - 2008/03/03 18:55 Under Remosity>config>choices in my browser:
txt,exe,tar,gz,rar,zip,png,gif,jpg,pdf,doc,rtf

I'm trying to add zip files.
  | | Sorry, you do not currently have permission to write here.
quads

Karma: 0  
Re:Add files on server not working - 2008/03/03 18:58 OK, follow up.....
I kind of feel like an idiot.

I was not aware that on the bulk add screen that the line for "Acceptable extensions (comma separated):" had to include the file extensions once again in that parameter.

Is it possible to use a wildcard in there? "*"
  | | Sorry, you do not currently have permission to write here.
admin

Karma: 98  
Re:Add files on server not working - 2008/03/03 19:40 Computers sometimes make you feel that way

Yes, you can enter * as the extension and then all extensions that are set in the config screen will be picked up.

The reason for having an option for extension in the add files screen is so that you can be more selective and pick particular types of files.
Martin Brampton aka Counterpoint
http://aliro.org
http://black-sheep-research.com
  | | Sorry, you do not currently have permission to write here.
quads

Karma: 0  
Re:Add files on server not working - 2008/03/03 20:25 Gotcha.
I've tested with that. Thank you very much.

/problem.
  | | Sorry, you do not currently have permission to write here.

Save FM Radio

Login

Subscribe to Premium Support

Get priority support for Remository and Glossary, sign up now for a Premium Support monthly subscription:

Your Remository user name

Or purchase a year's support:

Your Remository user name

Recommended SEF

SEF Advance

Who is Online

Remository welcomes guests and visitors

We have 11 guest online