Cant upgrade my ojs 3.0.2.0 to 3.2.1.1

Thanks, That problem ha been solved. But I faced new problems. I see thousands of errors of unable to move files from a folder to another (in files directory) as you can see below:

[19-Nov-2020 20:58:19 UTC] ERROR: Unable to move “/home/mydirectory/files/journals/1//articles/808/submission/review/808-1-7183-1-4-20160120.docx” to “/home/mydirectory/files/journals/1//articles/808/submission/review/attachment/808-1-7183-1-5-20160120.docx”.

[19-Nov-2020 20:58:19 UTC] PHP Warning: rename(/home/mydirectory/files/journals/1//articles/794/submission/review/794-1-7273-1-4-20160315.docx,/home/mydirectory/files/journals/1//articles/794/submission/review/attachment/794-1-7273-1-5-20160315.docx): No such file or directory in /home/mydirectory/public_html/myabbriviation/classes/install/Upgrade.inc.php on line 2023

[19-Nov-2020 20:58:19 UTC] ERROR: Unable to move “/home/mydirectory/files/journals/1//articles/794/submission/review/794-1-7273-1-4-20160315.docx” to “/home/mydirectory/files/journals/1//articles/794/submission/review/attachment/794-1-7273-1-5-20160315.docx”.

[19-Nov-2020 20:58:20 UTC] PHP Warning: rename(/home/mydirectory/files/journals/1//articles/852/submission/review/852-1-7425-1-4-20160729.pdf,/home/mydirectory/files/journals/1//articles/852/submission/review/attachment/852-1-7425-1-5-20160729.pdf): No such file or directory in /home/mydirectory/public_html/myabbriviation/classes/install/Upgrade.inc.php on line 2023

[19-Nov-2020 20:58:20 UTC] ERROR: Unable to move “/home/mydirectory/files/journals/1//articles/852/submission/review/852-1-7425-1-4-20160729.pdf” to “/home/mydirectory/files/journals/1//articles/852/submission/review/attachment/852-1-7425-1-5-20160729.pdf”.

[19-Nov-2020 20:58:20 UTC] PHP Warning: rename(/home/mydirectory/files/journals/1//articles/794/submission/review/794-1-7460-1-4-20160825.docx,/home/mydirectory/files/journals/1//articles/794/submission/review/attachment/794-1-7460-1-5-20160825.docx): No such file or directory in /home/mydirectory/public_html/myabbriviation/classes/install/Upgrade.inc.php on line 2023

[19-Nov-2020 20:58:20 UTC] ERROR: Unable to move “/home/mydirectory/files/journals/1//articles/794/submission/review/794-1-7460-1-4-20160825.docx” to “/home/mydirectory/files/journals/1//articles/794/submission/review/attachment/794-1-7460-1-5-20160825.docx”.

[19-Nov-2020 20:58:20 UTC] PHP Warning: rename(/home/mydirectory/files/journals/1//articles/908/submission/review/908-1-7553-1-4-20161107.docx,/home/mydirectory/files/journals/1//articles/908/submission/review/attachment/908-1-7553-1-5-20161107.docx): No such file or directory in /home/mydirectory/public_html/myabbriviation/classes/install/Upgrade.inc.php on line 2023

[19-Nov-2020 20:58:20 UTC] ERROR: Unable to move “/home/mydirectory/files/journals/1//articles/908/submission/review/908-1-7553-1-4-20161107.docx” to “/home/mydirectory/files/journals/1//articles/908/submission/review/attachment/908-1-7553-1-5-20161107.docx”.

[19-Nov-2020 20:58:31 UTC] PHP Fatal error: Uncaught Error: Call to a member function getId() on null in /home/mydirectory/public_html/myabbriviation/classes/install/Upgrade.inc.php:2353
regards,

Hi @masoume_tm,

For the error message:

[19-Nov-2020 20:58:31 UTC] PHP Fatal error: Uncaught Error: Call to a member function getId() on null in /home/mydirectory/public_html/myabbriviation/classes/install/Upgrade.inc.php:2353

This is the same issue as above, except this time with the component called “Image”, having a key of IMAGE.

Regards,
Alec Smecher
Public Knowledge Project Team

Thanks, My new errors are:

  1. thousands of this unable to moves:
    [20-Nov-2020 07:18:57 UTC] ERROR: Unable to move “/home/myDirectory/files/journals/1//articles/794/submission/review/794-1-7460-1-4-20160825.docx” to “/home/myDirectory/files/journals/1//articles/794/submission/review/attachment/794-1-7460-1-5-20160825.docx”.
    [20-Nov-2020 07:18:57 UTC] PHP Warning: rename(/home/myDirectory/files/journals/1//articles/908/submission/review/908-1-7553-1-4-20161107.docx,/home/myDirectory/files/journals/1//articles/908/submission/review/attachment/908-1-7553-1-5-20161107.docx): No such file or directory in /home/myDirectory/public_html/myAbriviation/classes/install/Upgrade.inc.php on line 2023
    [20-Nov-2020 07:18:57 UTC] ERROR: Unable to move “/home/myDirectory/files/journals/1//articles/908/submission/review/908-1-7553-1-4-20161107.docx” to “/home/myDirectory/files/journals/1//articles/908/submission/review/attachment/908-1-7553-1-5-20161107.docx”.

  2. and this one:
    [20-Nov-2020 07:19:05 UTC] PHP Fatal error: Uncaught Error: Call to a member function getUsername() on null in /home/myDirectory/public_html/myAbriviation/lib/pkp/classes/submission/SubmissionFile.inc.php:638

Regards,

Hi @masoume_tm,

Regarding the Unable to move messages, these are not preventing the upgrade from continuing, but indicate that an upload is not present where it’s expected to be in your files_dir. The most common cause for this is a files_dir that doesn’t correspond with the right version of OMP, i.e. it’s already been run through an upgrade and so the files are not where they’re expected to be.

[20-Nov-2020 07:19:05 UTC] PHP Fatal error: Uncaught Error: Call to a member function getUsername() on null in /home/myDirectory/public_html/myAbriviation/lib/pkp/classes/submission/SubmissionFile.inc.php:638

See: PKP PLN local status “Packaging Failure” in most of the issues just one of the issues packed - #8 by asmecher

Regards,
Alec Smecher
Public Knowledge Project Team

Dear asmecher
Thank you for your sincere and helpful cooperation :pray:
I finally upgraded the website successfully,
but I have lots of ojs2: 404 Not Found error on my error log.
Does it cause a problem?

Hi @masoume_tm,

Congratulations, that’s a big step! I’d suggest checking your access log to see what URLs the 404 errors are coming from.

Regards,
Alec Smecher
Public Knowledge Project Team

1 Like

Thanks, here are some of recent entries on my access log, any suggestion please?

77.88.5.56 - - [20/Nov/2020:11:52:09 -0700] “GET /mySite/index.php/mySite/article/view/1475 HTTP/1.1” 301 273 “-” “Mozilla/5.0 (compatible; YandexBot/3.0; +http://yandex.com/bots)”

77.88.5.214 - - [20/Nov/2020:11:52:12 -0700] “GET /mySite/index.php/mySite/article/view/1341 HTTP/1.1” 301 273 “-” “Mozilla/5.0 (compatible; YandexBot/3.0; +http://yandex.com/bots)”

77.88.5.148 - - [20/Nov/2020:11:52:28 -0700] “GET /mySite/index.php/mySite/article/view/1492 HTTP/1.1” 301 273 “-” “Mozilla/5.0 (compatible; YandexBot/3.0; +http://yandex.com/bots)”

77.88.5.152 - - [20/Nov/2020:11:52:35 -0700] “GET /mySite/index.php/mySite/article/view/1311 HTTP/1.1” 301 273 “-” “Mozilla/5.0 (compatible; YandexBot/3.0; +http://yandex.com/bots)”

77.88.5.19 - - [20/Nov/2020:11:52:47 -0700] “GET /mySite/index.php/mySite/article/view/1491 HTTP/1.1” 301 273 “-” “Mozilla/5.0 (compatible; YandexBot/3.0; +http://yandex.com/bots)”

77.88.5.242 - - [20/Nov/2020:11:53:18 -0700] “GET /mySite/index.php/mySite/article/view/858 HTTP/1.1” 301 272 “-” “Mozilla/5.0 (compatible; YandexBot/3.0; +http://yandex.com/bots)”

66.249.75.215 - - [20/Nov/2020:11:53:39 -0700] “GET /mySite/index.php/mySite/article/view/858/569 HTTP/1.1” 301 276 “-” “Googlebot/2.1 (+http://www.google.com/bot.html)”

66.249.75.215 - - [20/Nov/2020:11:53:55 -0700] “GET /mySite/index.php/mySite/article/view/36 HTTP/1.1” 301 271 “-” “Googlebot/2.1 (+http://www.google.com/bot.html)”

66.249.69.187 - - [20/Nov/2020:11:54:07 -0700] “GET /mySite/index.php/mySite/article/download/1146/648 HTTP/1.1” 301 277 “-” “Googlebot/2.1 (+http://www.google.com/bot.html)”

66.249.75.217 - - [20/Nov/2020:11:54:10 -0700] “GET /mySite/index.php/mySite/article/view/128/161 HTTP/1.1” 301 276 “-” “Googlebot/2.1 (+http://www.google.com/bot.html)”

66.249.69.216 - - [20/Nov/2020:11:54:11 -0700] “GET /mySite/index.php/mySite/article/view/445/313 HTTP/1.1” 301 277 “-” “Googlebot/2.1 (+http://www.google.com/bot.html)”

157.55.39.188 - - [20/Nov/2020:11:54:18 -0700] “GET /mySite/index.php/mySite/article/cite/1330/EndNoteCitationPlugin HTTP/1.1” 301 291 “-” “Mozilla/5.0 (compatible; bingbot/2.0; +http://www.bing.com/bingbot.htm)”

66.249.69.162 - - [20/Nov/2020:11:54:22 -0700] “GET /mySite/index.php/mySite/article/view/1298 HTTP/1.1” 301 274 “-” “Googlebot/2.1 (+http://www.google.com/bot.html)”

66.249.69.214 - - [20/Nov/2020:11:54:23 -0700] “GET /mySite/index.php/mySite/article/download/348/218 HTTP/1.1” 301 281 “-” “Googlebot/2.1 (+http://www.google.com/bot.html)”

66.249.69.183 - - [20/Nov/2020:11:54:37 -0700] “GET /mySite/index.php/mySite/article/view/561Thomas/0 HTTP/1.1” 301 276 “-” “Googlebot/2.1 (+http://www.google.com/bot.html)”

185.191.171.40 - - [20/Nov/2020:11:54:38 -0700] “GET /mySite/index.php/mySite/article/cite/993/AbntCitationPlugin HTTP/1.1” 301 292 “-” “Mozilla/5.0 (compatible; SemrushBot/7~bl; +http://www.semrush.com/bot.html)”

77.88.5.167 - - [20/Nov/2020:11:54:38 -0700] “GET /mySite/index.php/mySite/article/view/936 HTTP/1.1” 301 272 “-” “Mozilla/5.0 (compatible; YandexBot/3.0; +http://yandex.com/bots)”

77.88.5.23 - - [20/Nov/2020:11:55:29 -0700] “GET /mySite/index.php/mySite/article/view/28 HTTP/1.1” 301 271 “-” “Mozilla/5.0 (compatible; YandexBot/3.0; +http://yandex.com/bots)”

185.191.171.44 - - [20/Nov/2020:11:55:38 -0700] “GET /mySite/index.php/mySite/article/cite/1061/AbntCitationPlugin HTTP/1.1” 301 293 “-” “Mozilla/5.0 (compatible; SemrushBot/7~bl; +http://www.semrush.com/bot.html)”

5.144.131.91 - - [20/Nov/2020:11:57:26 -0700] “GET /mySite/index.php/mySite/index HTTP/1.1” 301 257 “-” “Mozilla/5.0 (Windows NT 5.1; rv:8.0) Gecko/20100101 Firefox/8.0”

5.144.131.80 - - [20/Nov/2020:11:57:49 -0700] “GET /mySite/index.php/mySite/index HTTP/1.1” 301 257 “-” “[anything]”

207.46.13.45 - - [20/Nov/2020:11:58:41 -0700] “GET /mySite/index.php/mySite/article/download/395/267 HTTP/1.1” 301 276 “-” “Mozilla/5.0 (compatible; bingbot/2.0; +http://www.bing.com/bingbot.htm)”

207.46.13.204 - - [20/Nov/2020:11:59:15 -0700] “GET /robots.txt HTTP/1.1” 301 242 “-” “Mozilla/5.0 (compatible; bingbot/2.0; +http://www.bing.com/bingbot.htm)”

157.55.39.115 - - [20/Nov/2020:11:59:27 -0700] “GET / HTTP/1.1” 301 232 “-” “Mozilla/5.0 (compatible; bingbot/2.0; +http://www.bing.com/bingbot.htm)”

77.88.5.171 - - [20/Nov/2020:12:00:01 -0700] “GET /mySite/index.php/mySite/article/view/1492 HTTP/1.1” 301 273 “-” “Mozilla/5.0 (compatible; YandexBot/3.0; +http://yandex.com/bots)”

93.158.161.13 - - [20/Nov/2020:12:00:05 -0700] “GET /mySite/index.php/mySite/article/view/1098 HTTP/1.1” 301 273 “-” “Mozilla/5.0 (compatible; YandexBot/3.0; +http://yandex.com/bots)”

Hi @masoume_tm,

Those all appear to be 301 responses (redirects). Watch the log for 404 responses.

Regards,
Alec Smecher
Public Knowledge Project Team

sorry, here are some 404 entries:

54.36.148.76 - - [20/Nov/2020:11:54:27 -0700] “GET /mySite/index.php/mySite/article/cite/28/AbntCitationPlugin HTTP/2.0” 404 22 “-” “Mozilla/5.0 (compatible; AhrefsBot/7.0; +http://ahrefs.com/robot/)”

77.88.5.48 - - [20/Nov/2020:11:54:30 -0700] “GET /mySite/index.php/mySite/article/view/1467/823 HTTP/1.1” 200 4754 “-” “Mozilla/5.0 (compatible; YandexBot/3.0; +http://yandex.com/bots)”

157.55.39.255 - - [20/Nov/2020:11:54:39 -0700] “GET /mySite/index.php/mySite/article/cite/418/CbeCitationPlugin HTTP/1.1” 404 22 “-” “Mozilla/5.0 (compatible; bingbot/2.0; +http://www.bing.com/bingbot.htm)”

54.36.149.50 - - [20/Nov/2020:11:54:39 -0700] “GET /mySite/index.php/mySite/article/cite/28/ApaCitationPlugin HTTP/2.0” 404 22 “-” “Mozilla/5.0 (compatible; AhrefsBot/7.0; +http://ahrefs.com/robot/)”

77.88.5.48 - - [20/Nov/2020:11:54:33 -0700] “GET /mySite/index.php/mySite/article/view/1461?articlesBySameAuthorPage=2 HTTP/1.1” 200 32604 “-” “Mozilla/5.0 (compatible; YandexBot/3.0; +http://yandex.com/bots)”

185.191.171.11 - - [20/Nov/2020:11:54:40 -0700] “GET /mySite/index.php/mySite/article/cite/993/AbntCitationPlugin HTTP/1.1” 404 22 “-” “Mozilla/5.0 (compatible; SemrushBot/7~bl; +http://www.semrush.com/bot.html)”

77.88.5.48 - - [20/Nov/2020:11:54:42 -0700] “GET /mySite/index.php/mySite/article/download/28/70/2932 HTTP/1.1” 200 710930 “-” “Mozilla/5.0 (compatible; YandexBot/3.0; +http://yandex.com/bots)”

77.88.5.48 - - [20/Nov/2020:11:54:39 -0700] “GET /mySite/index.php/mySite/article/view/936 HTTP/1.1” 200 30882 “-” “Mozilla/5.0 (compatible; YandexBot/3.0; +http://yandex.com/bots)”

77.88.5.48 - - [20/Nov/2020:11:54:47 -0700] “GET /mySite/index.php/mySite/article/view/1467?articlesBySameAuthorPage=3 HTTP/1.1” 200 24335 “-” “Mozilla/5.0 (compatible; YandexBot/3.0; +http://yandex.com/bots)”

77.88.5.48 - - [20/Nov/2020:11:54:55 -0700] “GET /mySite/index.php/mySite/article/view/501/381 HTTP/1.1” 200 4652 “-” “Mozilla/5.0 (compatible; YandexBot/3.0; +http://yandex.com/bots)”

54.36.148.6 - - [20/Nov/2020:11:54:59 -0700] “GET /mySite/index.php/mySite/article/cite/341/AbntCitationPlugin HTTP/2.0” 404 22 “-” “Mozilla/5.0 (compatible; AhrefsBot/7.0; +http://ahrefs.com/robot/)”

77.88.5.86 - - [20/Nov/2020:11:54:57 -0700] “GET /mySite/index.php/mySite/article/view/525 HTTP/1.1” 200 28174 “-” “Mozilla/5.0 (compatible; YandexBot/3.0; +http://yandex.com/bots)”

185.191.171.22 - - [20/Nov/2020:11:55:19 -0700] “GET /mySite/index.php/mySite/article/cite/1354/ProCiteCitationPlugin HTTP/1.1” 404 22 “-” “Mozilla/5.0 (compatible; SemrushBot/7~bl; +http://www.semrush.com/bot.html)”

54.36.148.6 - - [20/Nov/2020:11:55:21 -0700] “GET /mySite/index.php/mySite/article/cite/341/ApaCitationPlugin HTTP/2.0” 404 22 “-” “Mozilla/5.0 (compatible; AhrefsBot/7.0; +http://ahrefs.com/robot/)”

77.88.5.48 - - [20/Nov/2020:11:55:05 -0700] “GET /mySite/index.php/mySite/article/view/550 HTTP/1.1” 200 28474 “-” “Mozilla/5.0 (compatible; YandexBot/3.0; +http://yandex.com/bots)”

77.88.5.48 - - [20/Nov/2020:11:55:27 -0700] “GET /mySite/index.php/mySite/article/view/479 HTTP/1.1” 200 24311 “-” “Mozilla/5.0 (compatible; YandexBot/3.0; +http://yandex.com/bots)”

185.191.171.40 - - [20/Nov/2020:11:55:40 -0700] “GET /mySite/index.php/mySite/article/cite/1061/AbntCitationPlugin HTTP/1.1” 404 22 “-” “Mozilla/5.0 (compatible; SemrushBot/7~bl; +http://www.semrush.com/bot.html)”

213.180.203.249 - - [20/Nov/2020:11:55:43 -0700] “GET /robots.txt HTTP/1.1” 404 - “-” “Mozilla/5.0 (compatible; YandexBot/3.0; +http://yandex.com/bots)”

77.88.5.86 - - [20/Nov/2020:11:55:30 -0700] “GET /mySite/index.php/mySite/article/view/28 HTTP/1.1” 200 30370 “-” “Mozilla/5.0 (compatible; YandexBot/3.0; +http://yandex.com/bots)”

54.36.148.6 - - [20/Nov/2020:11:55:44 -0700] “GET /mySite/index.php/mySite/article/cite/341/RefWorksCitationPlugin HTTP/2.0” 404 22 “-” “Mozilla/5.0 (compatible; AhrefsBot/7.0; +http://ahrefs.com/robot/)”

213.180.203.249 - - [20/Nov/2020:11:55:46 -0700] “GET /mySite/index.php/mySite/article/view/341/368 HTTP/1.1” 200 4592 “-” “Mozilla/5.0 (compatible; YandexBot/3.0; +http://yandex.com/bots)”

77.88.5.48 - - [20/Nov/2020:11:55:44 -0700] “GET /mySite/index.php/mySite/issue/view/14 HTTP/1.1” 200 23980 “-” “Mozilla/5.0 (compatible; YandexBot/3.0; +http://yandex.com/bots)”

77.88.5.48 - - [20/Nov/2020:11:55:50 -0700] “GET /mySite/index.php/mySite/article/view/501?articlesBySameAuthorPage=4 HTTP/1.1” 200 23858 “-” “Mozilla/5.0 (compatible; YandexBot/3.0; +http://yandex.com/bots)”

54.36.149.50 - - [20/Nov/2020:11:56:00 -0700] “GET /mySite/index.php/mySite/article/cite/40/AbntCitationPlugin HTTP/2.0” 404 22 “-” “Mozilla/5.0 (compatible; AhrefsBot/7.0; +http://ahrefs.com/robot/)”

13.66.139.102 - - [20/Nov/2020:11:56:08 -0700] “GET /mySite/index.php/mySite/article/view/610 HTTP/1.1” 200 20583 “-” “Mozilla/5.0 (compatible; bingbot/2.0; +http://www.bing.com/bingbot.htm)”

77.88.5.48 - - [20/Nov/2020:11:56:03 -0700] “GET /mySite/index.php/mySite/article/view/501?articlesBySameAuthorPage=3 HTTP/1.1” 200 29245 “-” “Mozilla/5.0 (compatible; YandexBot/3.0; +http://yandex.com/bots)”

54.36.149.50 - - [20/Nov/2020:11:56:21 -0700] “GET /mySite/index.php/mySite/article/cite/40/ApaCitationPlugin HTTP/2.0” 404 22 “-” “Mozilla/5.0 (compatible; AhrefsBot/7.0; +http://ahrefs.com/robot/)”

77.88.5.48 - - [20/Nov/2020:11:56:19 -0700] “GET /mySite/index.php/mySite/article/view/458 HTTP/1.1” 200 28506 “-” “Mozilla/5.0 (compatible; YandexBot/3.0; +http://yandex.com/bots)”

54.36.149.50 - - [20/Nov/2020:11:56:44 -0700] “GET /mySite/index.php/mySite/article/cite/40/RefWorksCitationPlugin HTTP/2.0” 404 22 “-” “Mozilla/5.0 (compatible; AhrefsBot/7.0; +http://ahrefs.com/robot/)”

93.158.161.60 - - [20/Nov/2020:11:56:34 -0700] “GET /mySite/index.php/mySite/article/view/549 HTTP/1.1” 200 27189 “-” “Mozilla/5.0 (compatible; YandexBot/3.0; +http://yandex.com/bots)”

114.119.149.109 - - [20/Nov/2020:11:56:46 -0700] “GET /mySite/index.php/mySite/article/cite/383/TurabianCitationPlugin HTTP/1.1” 404 22 “-” “Mozilla/5.0 (Linux; Android 7.0;) AppleWebKit/537.36 (KHTML, like Gecko) Mobile Safari/537.36 (compatible; PetalBot;+https://aspiegel.com/petalbot)”

77.88.5.48 - - [20/Nov/2020:11:56:47 -0700] “GET /mySite/index.php/mySite/issue/view/21 HTTP/1.1” 200 19327 “-” “Mozilla/5.0 (compatible; YandexBot/3.0; +http://yandex.com/bots)”

77.88.5.48 - - [20/Nov/2020:11:56:51 -0700] “GET /mySite/index.php/mySite/article/view/501?articlesBySameAuthorPage=2 HTTP/1.1” 200 27540 “-” “Mozilla/5.0 (compatible; YandexBot/3.0; +http://yandex.com/bots)”

54.36.148.177 - - [20/Nov/2020:11:57:04 -0700] “GET /mySite/index.php/mySite/article/cite/458/AbntCitationPlugin HTTP/2.0” 404 22 “-” “Mozilla/5.0 (compatible; AhrefsBot/7.0; +http://ahrefs.com/robot/)”

Hi @masoume_tm,

The 404 responses are for URLs of the form .../index.php/mySite/article/cite/xyz/SomeCitationFormat, which is where OJS used to provide “how to cite” information for each article. This has been moved to a new URL format. The requests you’re seeing are for bots; they’ll gradually re-index your site and find URLs of the new form. These are not crucial URLs from an indexing or SEO perspective; those have been either maintained or use 301 redirects to update search engines.

Regards,
Alec Smecher
Public Knowledge Project Team

Thanks for your quick response, This means that I do not need to take action and ignore this messages.
Regards

1 Like

Same here, thousands of these errors in upgrade log. How we fix it because theses are causing a further error: Upgrade from 3.0.2 to 3.3 can fail if submission files are missing · Issue #7643 · pkp/pkp-lib · GitHub

Any help will be appreciated.