OJS OCS OMP OHS

You are viewing the PKP Support Forum | PKP Home Wiki



Upgrading from 2.3.0 to the latest version: styles

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.

Upgrading from 2.3.0 to the latest version: styles

Postby jiomics » Sun Apr 28, 2013 11:57 am

Dear coleagues,

I am upgrading from 2.3.0 to the latest version (2.4.2).

I am following the steps that are explained here http://pkp.sfu.ca/ojs/UPGRADE.

Since I get no success with php tools/upgrade.php patch, I have downloaded the code of the latest version and then copied the folders. Finally, I have upgraded the database.

The new version is working (apparently fine), however, as it is obviously, I have lost all my (css) stiles and some changes in templates (tpl files).

What is the best way to restore the styles? Copying the entire styles folder to the new location? And what about the tpl files?

I hope you can help me.

Best regards,

JIOMICS.
jiomics
 
Posts: 7
Joined: Thu May 31, 2012 1:31 am

Re: Upgrading from 2.3.0 to the latest version: styles

Postby JasonNugent » Mon Apr 29, 2013 5:54 am

Hi there,

Simply copying the styles and templates from 2.3.0 to your new install will probably cause problems, since that is quite a large change in version number and there have been many changes to the templates since 2.3.0.

What was the problem you had with the 'php tools/upgrade.php patch' command? The patch command would have applied those changes that it could cleanly apply, and would have left you with .rej files afterward that you could have merged in by hand. That would be the safest approach for making sure that you do not lose any customizations that you have made.

Regards,
Jason
JasonNugent
Site Admin
 
Posts: 895
Joined: Tue Jan 10, 2006 6:20 am

Re: Upgrading from 2.3.0 to the latest version: styles

Postby jiomics » Mon Apr 29, 2013 9:27 am

Hi Jason,

the problem with php tools/upgrade.php patch is that it suddenly stops with the following messages:

Code: Select all
patching file tools/rebuildSearchIndex.php
patching file tools/runAllTests.sh
patching file tools/runScheduledTasks.php
patching file tools/upgrade.php
ERROR: Failed to apply patch


I have the following .rej files:

Code: Select all
 ls -lhR | grep .rej
 2.3K 2013-04-29 18:17 config.inc.php.rej
3.0K 2013-04-29 18:17 %%04^04F^04F6FBD0%%editorialTeamBoard.tpl.php.rej
1.9K 2013-04-29 18:17 %%19^19D^19DCFE45%%aboutThisPublishingSystem.tpl.php.rej
 11K 2013-04-29 18:17 %%42^42F^42FD737A%%editorialTeam.tpl.php.rej
4.8K 2013-04-29 18:17 %%5A^5A5^5A5A0067%%index.tpl.php.rej
2.8K 2013-04-29 18:17 %%5C^5C2^5C21797E%%site.tpl.php.rej
6.5K 2013-04-29 18:17 %%69^696^696396EF%%contact.tpl.php.rej
6.9K 2013-04-29 18:17 %%79^790^7909A37A%%editorialTeamBio.tpl.php.rej
 16K 2013-04-29 18:17 %%7E^7E1^7E1EBAAB%%editorialPolicies.tpl.php.rej
 14K 2013-04-29 18:17 %%87^878^878FC2A8%%index.tpl.php.rej
 11K 2013-04-29 18:17 %%CB^CB5^CB5B9D9E%%submissions.tpl.php.rej
5.0K 2013-04-29 18:17 %%DE^DE8^DE8BD81D%%journalSponsorship.tpl.php.rej
7.0K 2013-04-29 18:17 %%EE^EE6^EE6F4E36%%sources.tpl.php.rej
 11K 2013-04-29 18:17 %%F3^F32^F3218F1A%%siteMap.tpl.php.rej
2.7K 2013-04-29 18:17 %%F3^F34^F34568E5%%displayMembership.tpl.php.rej
2.9K 2013-04-29 18:17 IssueAction.inc.php.rej
6.0K 2013-04-29 18:17 locale.xml.rej
 14K 2013-04-29 18:18 LoginHandler.inc.php.rej
  650 2013-04-29 18:18 block.tpl.rej
 324 2013-04-29 18:18 bothSidebars.css.rej
9.4K 2013-04-29 18:18 common.css.rej
 452 2013-04-29 18:18 fontLarge.css.rej
 463 2013-04-29 18:18 fontMedium.css.rej
 452 2013-04-29 18:18 fontSmall.css.rej
 317 2013-04-29 18:18 leftSidebar.css.rej
 353 2013-04-29 18:18 rightSidebar.css.rej
1.7K 2013-04-29 18:18 displayMembership.tpl.rej
2.1K 2013-04-29 18:18 editorialTeamBoard.tpl.rej
4.2K 2013-04-29 18:18 submissions.tpl.rej
9.3K 2013-04-29 18:18 article.tpl.rej
2.4K 2013-04-29 18:18 footer.tpl.rej
5.9K 2013-04-29 18:18 header.tpl.rej
1.9K 2013-04-29 18:18 journal.tpl.rej
4.3K 2013-04-29 18:18 issue.tpl.rej


I hope you can help me.

Regards,

Hugo.

JasonNugent wrote:Hi there,

Simply copying the styles and templates from 2.3.0 to your new install will probably cause problems, since that is quite a large change in version number and there have been many changes to the templates since 2.3.0.

What was the problem you had with the 'php tools/upgrade.php patch' command? The patch command would have applied those changes that it could cleanly apply, and would have left you with .rej files afterward that you could have merged in by hand. That would be the safest approach for making sure that you do not lose any customizations that you have made.

Regards,
Jason
jiomics
 
Posts: 7
Joined: Thu May 31, 2012 1:31 am


Return to OJS Technical Support

Who is online

Users browsing this forum: Exabot [Bot], Yahoo [Bot] and 3 guests