HTML Logo by World Wide Web Consortium (www.w3.org). Click to learn more about our commitment to accessibility and standards.

Moving forward with Composr

ocPortal has been relaunched as Composr CMS, which is now in beta. ocPortal 9 will be superseded by Composr 10.

Head over to compo.sr for our new site, and to our migration roadmap. Existing ocPortal member accounts have been mirrored.


Alternative Upgrade Method?

Login / Search

 [ Join | More ]
 Add topic 
Posted
Rating:
#90435 (In Topic #18277)
Avatar

Fan in action

Is there an alternate method/way to upgrade ocPortal?

Currently running 8.1.3, and tried running the upgrader to go to Version 9.

Lost ALL site formatting to the point where the site was un-viewable and
an-unusable. I realize that there are old themes that aren't supported, but
I had set up all pages in the theme generator, so everything was 'within'
the OCPortal platform.

I would like to upgrade the site - because at this point it seems this is the
LAST version of OCP that I'll be able to use without starting completely over.

Would a 'clone site' be the only way to upgrade and troubleshoot?

Thanks for ANY assistance,
Erich

"Be true to yourself. Be who you are in your heart. Don't hang out with idiots. If you surround yourself with good people, you'll go far. If you start hanging out with knuckleheads, you'll be right in the knucklehead section the rest of your life." — Kid Rock
Back to the top
 
Posted
Rating:
#90437
Avatar

Community saint

You've hit the nail on the head, Erich.

I've mentioned this in earlier threads, so it hasn't come as a surprise to read your post.

sholzy offered an interesting perspective on this, also in an earlier thread, but I have yet to try it out. In fact, I am so convinced that he has the answer, that I haven't even rushed ahead with another attempt, and am experimenting with theme alterations at the moment.

Any advice I offer is based on my 'trial', sholzy's suggestion, several other users failed attempts, and now your experience:
  • Clone your site ←(use temp1024's tute which you can now find in Community Docs)
  • Switch back to the default theme and remove the custom theme  ←(sholzy)
  • Run the upgrade from the Admin Zone
  • RTFN
The last is absolutely essential, and it is probably best to print it out (I've got 11 A4 pages!). You will trip over some gems, and some very pertinent information as to which blocks have been discontinued, which templates have been replaced, and which CSS has been completely rewritten, etc. etc. etc.

I intend to follow my own advice and do the upgrade in the next day or two, probably this weekend, and I will report back if my Baldrick-like cunning plan works.

There is another alternative which I shall employ if that doesn't work, and it has a better than 50-50 chance of succeeding, although I screwed up my first try :'( :
  • Install a brand new version 9.0
  • Make a 'dummy' custom theme (a copy of the default will suffice) which will give you custom directories into which to save any template or language changes that you attempt on the fly
  • Import your previous installation and DB
  • Have a look at what 'broke' during the import and 'fix' it
  • Build a new theme, either based on your previous one (don't bother importing as an add-on - there are too many changes!), or a completely fresh idea

How about that for a verbose answer?

 :thumbs:

Take my advice. I'm not using it!

View my working ocPortal site (version 9.x.x) at Anglo-Indian Portal
Back to the top
 
Posted
Rating:
#90439
Avatar

Fan in action

Hi Fletch,
Great to see you again, my friend. Let me know as soon as you put out some
Version 9 templates!

Not exactly the answer I was hoping for. I think I'm going to just go with a new
V9 install and tweak it in.

If I was to run the new V9 in a sub-directory (i.e. home.com/test/ocpV9), would
there be any problems in:

1) Renaming/moving that directory to the home directory?
2) Downloading the ocpV9 folder & re-uploading it to the home directory via FTP?

I think I can handle that. Otherwise, it's a big roll of the dice!

In friendship & success,
Erich

PS. You know how current I am with that stuff....what is RTFN?

"Be true to yourself. Be who you are in your heart. Don't hang out with idiots. If you surround yourself with good people, you'll go far. If you start hanging out with knuckleheads, you'll be right in the knucklehead section the rest of your life." — Kid Rock
Back to the top
 
Posted
Rating:
#90442
Avatar

Community saint

RTFN = Read the notes  :lol:

I can't see any major problems in your 1) and 2), but it matters whether you've used 'absolute' or 'relative' paths. Using 'absolutes' in your scripting and templateing will certainly throw up 404's if you  rename the 'site' you're working on. That's about the only weakness I can see!

More competent coders/site builders might wish to comment on this, too!

 :thumbs:

Take my advice. I'm not using it!

View my working ocPortal site (version 9.x.x) at Anglo-Indian Portal
Back to the top
 
Posted
Item has a rating of 5 (Liked by Jean)  
Rating:
#90443
Avatar

Community saint

WebBasser said

If I was to run the new V9 in a sub-directory (i.e. home.com/test/ocpV9), would
there be any problems in:

1) Renaming/moving that directory to the home directory?
2) Downloading the ocpV9 folder & re-uploading it to the home directory via FTP?
v9 is a big compatibility breaker so the short answer is no.

The way I would approach it would be the same as this:  View topic: I'm miles behind on updating - ocPortal.com . Although that was written for upgrading to v8, its probably even more relevant when upgrading to v9 given the extensive changes to templates.

Do you have a Samsung Galaxy S / Galaxy S II ? If so, why not check out my ScreenFree FM Radio .
Back to the top
 
Posted
Rating:
#90444
Avatar

Community saint

Fletch said

I can't see any major problems in your 1) and 2)
The reason that you can't really do that is because template names and parameters have changes which means that the underlying php code that drives those templates has also changed.Ooopps. Just re-read 1) & 2). My previous comment is not valid because you will be copying code across as well. But there are still problems. For example:
*) there have been some database changes in v9. I don't know what or significant they are, but you would end up using v9 code on a v8 database that hasn't 't gone through the upgrade process. So there may be unexpected problems.

*) The info.php and .htaccess files in the home directory have references to the install path and/or database so they would need to be modified.

*) Uploaded files/images etc. are stored in directories and not in the database so they could get "lost".

That's all I can think of off the top of my head.


Last edit: by temp1024

Do you have a Samsung Galaxy S / Galaxy S II ? If so, why not check out my ScreenFree FM Radio .
Back to the top
 
There are too many online users to list.
Control functions:

Quick reply   Contract

Your name:
Your message: