I have a functionally running OJS 3.1.01 website. I want to move whole website to new address. So I have backed up and restores all codes and database to new host.
Website run completely and interface and users and other parts work but when I want to upload any file in any section, such as mew submission or changing logo, an error is shown and cannot upload anything by admin.
Should I do anything more?
Edited: In the local all the features work correctly.
The error is shown in the error log in the server is: PHP Fatal error: Call to a member function getFileId() on null in /lib/pkp/classes/submission/PKPSubmissionFileDAO.inc.php on line 1032
Double-check your files_dir in config.inc.php to make sure it’s correct for the new host. (If you can download any previously uploaded files, then this should be fine.)
Using the same permissions on the new server isn’t a guarantee that permissions are correct – depending on your server’s SAPI, it might have different requirements of file permissions. Check the FAQ entry on file permissions in this forum for details.
Regards,
Alec Smecher
Public Knowledge Project Team
Thank a lot. That was a great help. I have moved the files folder but I did not know I should have also change the directory in config file because in local this step was not needed.