OJS OCS OMP OHS

You are viewing the PKP Support Forum | PKP Home Wiki



upgrade 2.1.0.1 -> 2.4.3

Are you responsible for making OJS work -- installing, upgrading, migrating or troubleshooting? Do you think you've found a bug? Post in this forum.

Moderators: jmacgreg, btbell, michael, bdgregg, barbarah, asmecher

Forum rules
What to do if you have a technical problem with OJS:

1. Search the forum. You can do this from the Advanced Search Page or from our Google Custom Search, which will search the entire PKP site. If you are encountering an error, we especially recommend searching the forum for said error.

2. Check the FAQ to see if your question or error has already been resolved.

3. Post a question, but please, only after trying the above two solutions. If it's a workflow or usability question you should probably post to the OJS Editorial Support and Discussion subforum; if you have a development question, try the OJS Development subforum.

upgrade 2.1.0.1 -> 2.4.3

Postby gustavotonini » Thu Feb 13, 2014 10:27 am

I know 2.1.0.1 is a very old version, but when I try to upgrade I'm getting:


patching file classes/admin/form/ImportOJS1Form.inc.php
patching file classes/admin/form/JournalSiteSettingsForm.inc.php
Hunk #2 FAILED at 74.
1 out of 2 hunks FAILED -- saving rejects to file classes/admin/form/JournalSiteSettingsForm.inc.php.rej
patching file classes/admin/form/SiteSettingsForm.inc.php
Hunk #1 FAILED at 1.
1 out of 1 hunk FAILED -- saving rejects to file classes/admin/form/SiteSettingsForm.inc.php.rej
patching file classes/announcement/AnnouncementDAO.inc.php
patching file classes/announcement/Announcement.inc.php
patching file classes/announcement/AnnouncementTypeDAO.inc.php
patching file classes/announcement/AnnouncementType.inc.php

patching file classes/article/ArticleCommentDAO.inc.php
patching file classes/article/ArticleComment.inc.php
patching file classes/article/ArticleDAO.inc.php
Hunk #2 FAILED at 132.
1 out of 12 hunks FAILED -- saving rejects to file classes/article/ArticleDAO.inc.php.rej
patching file classes/article/ArticleFileDAO.inc.php
patching file classes/article/ArticleFile.inc.php
patching file classes/article/ArticleGalleyDAO.inc.php
patching file classes/article/ArticleGalley.inc.php
patching file classes/article/ArticleHTMLGalley.inc.php
patching file classes/article/Article.inc.php
Hunk #2 FAILED at 32.
1 out of 13 hunks FAILED -- saving rejects to file classes/article/Article.inc.php.rej
patching file classes/article/ArticleNoteDAO.inc.php
patching file classes/article/ArticleNote.inc.php
patching file classes/article/ArticleTombstoneManager.inc.php
patching file classes/article/AuthorDAO.inc.php

patching file classes/article/Author.inc.php
patching file classes/article/log/ArticleEmailLogDAO.inc.php
patching file classes/article/log/ArticleEmailLogEntry.inc.php
patching file classes/article/log/ArticleEventLogDAO.inc.php
patching file classes/article/log/ArticleEventLogEntry.inc.php
Hunk #2 FAILED at 29.
1 out of 9 hunks FAILED -- saving rejects to file classes/article/log/ArticleEventLogEntry.inc.php.rej
patching file classes/article/log/ArticleLog.inc.php
patching file classes/article/PublishedArticleDAO.inc.php
patching file classes/article/PublishedArticle.inc.php
patching file classes/article/SuppFileDAO.inc.php
patching file classes/article/SuppFile.inc.php
patching file classes/author/form/submit/AuthorSubmitForm.inc.php
patching file classes/author/form/submit/AuthorSubmitStep1Form.inc.php
Hunk #1 FAILED at 1.
1 out of 2 hunks FAILED -- saving rejects to file classes/author/form/submit/AuthorSubmitStep1Form.inc.php.rej
patching file classes/author/form/submit/AuthorSubmitStep2Form.inc.php

patching file classes/author/form/submit/AuthorSubmitStep3Form.inc.php
patching file classes/author/form/submit/AuthorSubmitStep4Form.inc.php
patching file classes/author/form/submit/AuthorSubmitStep5Form.inc.php
patching file classes/author/form/submit/AuthorSubmitSuppFileForm.inc.php
patching file classes/cache/CacheManager.inc.php
patching file classes/cache/FileCache.inc.php
patching file classes/cache/GenericCache.inc.php
patching file classes/cache/MemcacheCache.inc.php
patching file classes/comment/CommentDAO.inc.php
patching file classes/comment/Comment.inc.php
patching file classes/comment/form/CommentForm.inc.php
patching file classes/config/Config.inc.php
patching file classes/config/ConfigParser.inc.php
patching file classes/controllers/grid/filter/FilterGridHandler.inc.php
patching file classes/core/Application.inc.php

patching file classes/core/ArrayItemIterator.inc.php
patching file classes/core/Core.inc.php
patching file classes/core/DataObject.inc.php
patching file classes/core/Handler.inc.php
patching file classes/core/ItemIterator.inc.php
patching file classes/core/PageRouter.inc.php
patching file classes/core/Registry.inc.php
patching file classes/core/Request.inc.php
patching file classes/core/String.inc.php
patching file classes/core/Transcoder.inc.php
patching file classes/core/VirtualArrayIterator.inc.php
patching file classes/db/DAO.inc.php

patching file classes/db/DAORegistry.inc.php
patching file classes/db/DAOResultFactory.inc.php
patching file classes/db/DBConnection.inc.php
patching file classes/db/DBDataXMLParser.inc.php
patching file classes/db/DBResultRange.inc.php
patching file classes/db/DBRowIterator.inc.php
patching file classes/db/SQLParser.inc.php
patching file classes/db/XMLDAO.inc.php
patching file classes/file/ArticleFileManager.inc.php
patching file classes/file/FileManager.inc.php
patching file classes/file/FileWrapper.inc.php
patching file classes/file/IssueFileManager.inc.php
patching file classes/file/JournalFileManager.inc.php

patching file classes/file/PublicFileManager.inc.php
patching file classes/file/TemporaryFileDAO.inc.php
patching file classes/file/TemporaryFile.inc.php
patching file classes/file/TemporaryFileManager.inc.php
patching file classes/form/FormError.inc.php
patching file classes/form/Form.inc.php
Reversed (or previously applied) patch detected! Assume -R? [n] Apply anyway? [n] Skipping patch.
1 out of 1 hunk ignored -- saving rejects to file classes/form/Form.inc.php.rej
patching file classes/form/validation/FormValidatorAlphaNum.inc.php
patching file classes/form/validation/FormValidatorArray.inc.php
patching file classes/form/validation/FormValidatorCustom.inc.php
patching file classes/form/validation/FormValidatorEmail.inc.php
patching file classes/form/validation/FormValidator.inc.php
patching file classes/form/validation/FormValidatorInSet.inc.php
patching file classes/form/validation/FormValidatorLength.inc.php
patching file classes/form/validation/FormValidatorRegExp.inc.php
patching file classes/gift/GiftDAO.inc.php
patching file classes/gift/Gift.inc.php
patching file classes/group/GroupDAO.inc.php
patching file classes/group/Group.inc.php
Reversed (or previously applied) patch detected! Assume -R? [n] Apply anyway? [n] Skipping patch.
1 out of 1 hunk ignored -- saving rejects to file classes/group/Group.inc.php.rej
patching file classes/group/GroupMembershipDAO.inc.php
patching file classes/group/GroupMembership.inc.php
patching file classes/handler/Handler.inc.php
patching file classes/handler/validation/HandlerValidatorJournal.inc.php
patching file classes/handler/validation/HandlerValidatorSubmissionComment.inc.php
patching file classes/help/Help.inc.php
Hunk #1 FAILED at 1.
1 out of 1 hunk FAILED -- saving rejects to file classes/help/Help.inc.php.rej
patching file classes/help/HelpTocDAO.inc.php

patching file classes/help/HelpToc.inc.php
patching file classes/help/HelpTopicDAO.inc.php
patching file classes/help/HelpTopic.inc.php
patching file classes/help/HelpTopicSection.inc.php
patching file classes/help/OJSHelpMappingFile.inc.php
patching file classes/i18n/AppLocale.inc.php
patching file classes/i18n/LanguageAction.inc.php
patching file classes/i18n/Locale.inc.php
Reversed (or previously applied) patch detected! Assume -R? [n] Apply anyway? [n] Skipping patch.
1 out of 1 hunk ignored -- saving rejects to file classes/i18n/Locale.inc.php.rej
patching file classes/install/form/InstallForm.inc.php
Hunk #2 FAILED at 41.
Hunk #4 FAILED at 100.
Hunk #8 FAILED at 223.
3 out of 8 hunks FAILED -- saving rejects to file classes/install/form/InstallForm.inc.php.rej
patching file classes/install/form/UpgradeForm.inc.php
Hunk #2 FAILED at 67.
1 out of 2 hunks FAILED -- saving rejects to file classes/install/form/UpgradeForm.inc.php.rej
patching file classes/install/Installer.inc.php
Reversed (or previously applied) patch detected! Assume -R? [n] Apply anyway? [n] Skipping patch.
1 out of 1 hunk ignored -- saving rejects to file classes/install/Installer.inc.php.rej
patching file classes/install/Install.inc.php
Hunk #1 FAILED at 1.
1 out of 1 hunk FAILED -- saving rejects to file classes/install/Install.inc.php.rej
patching file classes/install/Upgrade.inc.php
patching file classes/issue/form/IssueForm.inc.php
Hunk #1 FAILED at 1.
1 out of 4 hunks FAILED -- saving rejects to file classes/issue/form/IssueForm.inc.php.rej
patching file classes/issue/form/IssueGalleyForm.inc.php
patching file classes/issue/IssueAction.inc.php
patching file classes/issue/IssueDAO.inc.php
patching file classes/issue/IssueFileDAO.inc.php
patching file classes/issue/IssueFile.inc.php
patching file classes/issue/IssueGalleyDAO.inc.php
patching file classes/issue/IssueGalley.inc.php
patching file classes/issue/Issue.inc.php
Hunk #10 FAILED at 709.
1 out of 12 hunks FAILED -- saving rejects to file classes/issue/Issue.inc.php.rej
patching file classes/journal/categories/CategoryDAO.inc.php
patching file classes/journal/categories/CategoryForm.inc.php

patching file classes/journal/JournalDAO.inc.php
Hunk #2 FAILED at 57.
1 out of 7 hunks FAILED -- saving rejects to file classes/journal/JournalDAO.inc.php.rej
patching file classes/journal/Journal.inc.php
Hunk #2 FAILED at 38.
1 out of 6 hunks FAILED -- saving rejects to file classes/journal/Journal.inc.php.rej
patching file classes/journal/JournalReportIterator.inc.php
Reversed (or previously applied) patch detected! Assume -R? [n] Apply anyway? [n]
Skipping patch.
1 out of 1 hunk ignored -- saving rejects to file classes/journal/JournalReportIterator.inc.php.rej
patching file classes/journal/JournalSettingsDAO.inc.php
Hunk #8 FAILED at 221.
1 out of 8 hunks FAILED -- saving rejects to file classes/journal/JournalSettingsDAO.inc.php.rej
patching file classes/journal/JournalStatisticsDAO.inc.php
Hunk #16 FAILED at 362.
1 out of 16 hunks FAILED -- saving rejects to file classes/journal/JournalStatisticsDAO.inc.php.rej
patching file classes/journal/NotificationStatusDAO.inc.php
patching file classes/journal/SectionDAO.inc.php
Hunk #8 FAILED at 347.
1 out of 15 hunks FAILED -- saving rejects to file classes/journal/SectionDAO.inc.php.rej
patching file classes/journal/SectionEditorsDAO.inc.php
patching file classes/journal/Section.inc.php
Hunk #2 FAILED at 25.
1 out of 12 hunks FAILED -- saving rejects to file classes/journal/Section.inc.php.rej
patching file classes/mail/ArticleMailTemplate.inc.php
patching file classes/mail/EmailTemplateDAO.inc.php
patching file classes/mail/EmailTemplate.inc.php
patching file classes/mail/Mail.inc.php
patching file classes/mail/MailTemplate.inc.php
Hunk #1 FAILED at 1.
1 out of 6 hunks FAILED -- saving rejects to file classes/mail/MailTemplate.inc.php.rej
patching file classes/mail/SMTPMailer.inc.php
patching file classes/manager/form/AnnouncementForm.inc.php
patching file classes/manager/form/AnnouncementTypeForm.inc.php
patching file classes/manager/form/EmailTemplateForm.inc.php
Hunk #1 FAILED at 1.
Hunk #5 FAILED at 128.
2 out of 5 hunks FAILED -- saving rejects to file classes/manager/form/EmailTemplateForm.inc.php.rej
patching file classes/manager/form/GroupForm.inc.php
patching file classes/manager/form/LanguageSettingsForm.inc.php
Hunk #1 FAILED at 1.
1 out of 1 hunk FAILED -- saving rejects to file classes/manager/form/LanguageSettingsForm.inc.php.rej
patching file classes/manager/form/ReviewFormElementForm.inc.php
patching file classes/manager/form/ReviewFormForm.inc.php
patching file classes/manager/form/SectionForm.inc.php
patching file classes/manager/form/setup/JournalSetupForm.inc.php
patching file classes/manager/form/setup/JournalSetupStep1Form.inc.php
patching file classes/manager/form/setup/JournalSetupStep2Form.inc.php
patching file classes/manager/form/setup/JournalSetupStep3Form.inc.php
patching file classes/manager/form/setup/JournalSetupStep4Form.inc.php
patching file classes/manager/form/setup/JournalSetupStep5Form.inc.php
patching file classes/manager/form/UserManagementForm.inc.php
Hunk #4 FAILED at 184.
1 out of 5 hunks FAILED -- saving rejects to file classes/manager/form/UserManagementForm.inc.php.rej
patching file classes/note/NoteDAO.inc.php
patching file classes/note/Note.inc.php
patching file classes/notification/form/NotificationSettingsForm.inc.php
patching file classes/notification/Notification.inc.php
patching file classes/notification/NotificationManager.inc.php
patching file classes/oai/format/OAIMetadataFormat_DC.inc.php
patching file classes/oai/format/OAIMetadataFormat_MARC21.inc.php
patching file classes/oai/format/OAIMetadataFormat_MARC.inc.php
patching file classes/oai/format/OAIMetadataFormat_RFC1807.inc.php
patching file classes/oai/OAI.inc.php
patching file classes/oai/OAIStruct.inc.php
patching file classes/oai/ojs/JournalOAI.inc.php
patching file classes/oai/ojs/OAIDAO.inc.php
Hunk #1 FAILED at 1.
1 out of 3 hunks FAILED -- saving rejects to file classes/oai/ojs/OAIDAO.inc.php.rej
patching file classes/payment/ojs/form/PaymentSettingsForm.inc.php
patching file classes/payment/ojs/form/PayMethodSettingsForm.inc.php
patching file classes/payment/ojs/OJSCompletedPaymentDAO.inc.php
patching file classes/payment/ojs/OJSCompletedPayment.inc.php
patching file classes/payment/ojs/OJSPaymentAction.inc.php
patching file classes/payment/ojs/OJSPaymentManager.inc.php
patching file classes/payment/ojs/OJSQueuedPayment.inc.php
patching file classes/plugins/AuthPlugin.inc.php
Hunk #14 FAILED at 237.
1 out of 14 hunks FAILED -- saving rejects to file classes/plugins/AuthPlugin.inc.php.rej
patching file classes/plugins/CitationPlugin.inc.php
patching file classes/plugins/GatewayPlugin.inc.php
Hunk #3 FAILED at 55.
1 out of 7 hunks FAILED -- saving rejects to file classes/plugins/GatewayPlugin.inc.php.rej
patching file classes/plugins/GenericPlugin.inc.php
Reversed (or previously applied) patch detected! Assume -R? [n]



What can I do?
gustavotonini
 
Posts: 24
Joined: Wed Mar 20, 2013 9:44 am

Re: upgrade 2.1.0.1 -> 2.4.3

Postby asmecher » Thu Feb 13, 2014 10:45 am

Hi Gustavo,

Have any modifications or patches been installed to the installation? That would explain the patch failures.

Regards,
Alec Smecher
Public Knowledge Project Team
asmecher
 
Posts: 8823
Joined: Wed Aug 10, 2005 12:56 pm

Re: upgrade 2.1.0.1 -> 2.4.3

Postby gustavotonini » Tue Feb 18, 2014 10:12 am

Yeah. People has renamed the old Locale class because of the new apache. Then the patch failed.
I'll try to unpack the 2.1.0.1 original installation code, apply the patch and then upgrade.

Thanks in advance.
gustavotonini
 
Posts: 24
Joined: Wed Mar 20, 2013 9:44 am

Re: upgrade 2.1.0.1 -> 2.4.3

Postby asmecher » Tue Feb 18, 2014 10:46 am

Hi Gustavo,

If that's the only modification, then I'd suggest using the "Full Package" upgrade process described in docs/UPGRADE -- it'll save you tinkering with patches.

Regards,
Alec Smecher
Public Knowledge Project Team
asmecher
 
Posts: 8823
Joined: Wed Aug 10, 2005 12:56 pm

Re: upgrade 2.1.0.1 -> 2.4.3

Postby solty » Wed Aug 20, 2014 12:20 am

Hi,
Currently we using OJS 2.4.2.0.
I was reecived user message error during the gift subscription.
Previously upgraded from 2.3.7 to 2.4.2.

Fatal error: Call to a member function getJournal() on a non-object in /var/www/vhosts/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx.com/httpdocs/classes/subscription/form/GiftIndividualSubscriptionForm.inc.php on line 40

I was not any solution forum.
Any suggestion?

Solty
solty
 
Posts: 140
Joined: Mon Mar 16, 2009 12:47 am
Location: Turkiye, İzmir

Re: upgrade 2.1.0.1 -> 2.4.3

Postby asmecher » Wed Aug 20, 2014 7:58 am

Hi Solty,

Could you try the patch at http://pkp.sfu.ca/bugzilla/show_bug.cgi?id=8870 and report back?

Thanks,
Alec Smecher
Public Knowledge Project Team
asmecher
 
Posts: 8823
Joined: Wed Aug 10, 2005 12:56 pm


Return to OJS Technical Support

Who is online

Users browsing this forum: Bing [Bot], muqeetsomro and 4 guests