Hello everyoneI have a little issue and I hope that someone can help me.I recently upgrade my osticket from 1.8.0.2 to 1.9.12 and activate attachments on file system plugin. I read that is posible to export attach from database to filesystem from CLI with this command:php setup/cli/manage.php file migrate --backend D --to F --limit=20Unfortunately I work with third part server and SSH access is under an old version oh php so command CLI not working and I get error:Parse error:  syntax error, unexpected T_NEW in setup/cli/modules/class.module.php on line Is possible to export all attachments from not CLI option.Thanks in advanced

I am not aware of any way to migrate attachments except for running that command.But it sounds like you need to point to the current version of php.../path/to/php5/php setup/cli/manage.php file migrate --backend D --to F --limit=20

ntozier:Thks a lot, I try and now run under php 5.5 but I get the next message:Management only supported from command-line, if I see the code of manage.php there is and if to the end: if (php_sapi_name() != "cli")My php_sapi_name() return cgi-cgi so I changed the if to: if (php_sapi_name() != "cli" and php_sapi_name() != "cgi-fcgi")And I run the command, but nothing happens. The path of attachment don't have new files, and the Attach plugin works ok because new files are attached to the folder.Any idea of whats going on?

No idea.  It's made to be run at command line... so your in murky waters that I haven't played in.

HiI finally found the correct way to run this command in 1and1 server. The details are two thingsYou need to specify the version of phpYou need to run with the php cli commandSo, the correct way to run this in 1and1 is:php5.5-cli setup/cli/manage.php file migrate --backend D --to FI hope that this can help to some else.ntoizer, thks a lot for your time

Very welcome, and I'm very glad to hear that you got this figured out. :)Should I close this thread and mark it as resolved?

Write a Reply...