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.


Upgrading to 4.2 RC1

Login / Search

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

4.2 RC1 (due very soon) should support upgrading from either v4.1 releases, as well as earlier v4.2 beta releases. Upgrading from older releases (such as v3) may also work but have not been actively tested.

Be aware this is not a final release and we expect it to be considered 'bleeding edge' for some time. However, the code has now been through our quality processes (with one exception, shopping carts), we will now be supporting the release with bug fixes, and avoid adding new features.

Be aware that the announced shopping cart functionality isn't yet working in this release. This is still being finalised, so please wait for a future release before trying this functionality.

Before upgrading it is crucial you take a full backup of your files and database.

The following known issues exist…

All upgrades

Go through the upgrade process as you would for a major release. Performing the database upgrade is crucial, after putting in the upgrade TAR link the site will not function until you run the database upgrade.

Themes

All menu themeing will need completely redoing. If you have made changes:
  1. Backup your menu templates and your CSS
  2. Delete your menu templates via FTP from within your theme's templates_custom directory.
  3. Compare your backed up files to the 4.1 CSS to see what changes you made, to see what you did (using a good 'diff' tool such as WinMerge, DiffMerge, or Kompare).
  4. Apply equivalent changes to 4.2. This is a manual job and be advised the associated template structure, tag structure, and CSS code has been completely rewritten.

Those with CSS changes will probably want to rebuild their themes manually, rather than letting the ocPortal upgrader try to. If the upgrader has changed your CSS files and want to do it manually instead, reupload the CSS files from your backup, then you can use a diff tool (e.g. WinMerge, DiffMerge, Kompare) to go manually through the full set of changes between 4.1/4.2-beta and 4.2 (compare the CSS files in 4.2 against those in your 4.1/4.2-beta custom theme). The below are the key changes that you should carry over.

In global.css the following needs attention:
  • .site_special_message (changed CSS class, prettier error messages)
  • .ssm_warn (new CSS class, prettier error messages)
  • .expanded_advice (new CSS class, expanded error message explanations)
  • .ssm_inform (new CSS class, prettier error messages)
  • .float_surrounder_table_protect (new CSS class, cross-browser compatibility fixer)
  • .sliverised_page table (new CSS class, prettier OCF view-group screen)
  • .nothing_here, .more_here (.more_here is a new class we now have, using the same styles as .nothing_here)
  • .highlighted_table_cell (new CSS class, used by top-sites functionality)
  • .inline (new CSS class, to remove inline styles)
  • .left (new CSS class, to remove inline styles)
  • .right (new CSS class, to remove inline styles)
  • .br_space (new CSS class, to remove some semantically-incorrect br tags)
  • .question_ui_buttons (new CSS class, to remove inline styles)
  • .alpha_jumper (new CSS class, used by new OCF member directory feature)
  • .alpha_browser_cont (new CSS classes, used by new OCF member directory feature)
  • all the carousel stuff (new CSS classes, for new Comcode tags)
  • all the tabs stuff (new CSS class, for new easier support for tabs when themeing)
  • as mentioned above, all the menus stuff has changed too

In ocf.css just add these two new CSS classes designed to improve the profile screen's compatibility:
  • .ocf_profile_refpoint
  • .ocf_member_profile_photo

galleries.css (very small file) should be rebuilt as this has changed substantially.

Also take a look at the compatibility improvements put into nocache.css.

There are other changes, but they are visual improvements rather than compatibility issues and thus do not need attention.

.htaccess file

If you use SEO URLs, you will need to recreate your .htaccess file, using the recommended.htaccess file as a base. This is due to the new SEF URLs, which are a bit more sophisticated.

Other changes

The side_search block no longer exists. Either change your use to main_search (which will now look fine in a panel) or place the attached temporary file (all this file does is make side_search use main_search, like making a link).
Attachment
» Download: side_search.php (69 Bytes, 595 downloads so far)


4.2 beta upgrades

For OCF to upgrade it must think it is upgrading from version 4.1, not version 4.2. Therefore before starting the upgrade please run this query (substitute your correct table prefix if it is not the default):
UPDATE `ocp4_values` SET `the_value` = '4.1' WHERE `the_name` = 'ocf_version'
Alternatively run this from OcCLE:
:set_value('ocf_version','4.1');

4.2 RC1 upgrades and 4.2 beta upgrades

We fixed the forum search to cover topic descriptions. For this to work you will need to enter this command into OcCLE (accessed from the Tools section of the Admin Zone):

Code

:$GLOBALS['FORUM_DB']->create_index('f_topics','#t_description',array('t_description'));
             

4.2 RC1 upgrades, 4.2 RC2 upgrades and 4.2 beta upgrades

Enter these commands into OcCLE (accessed from the Tools section of the Admin Zone):

Code

:$GLOBALS['SITE_DB']->create_table('shopping_order_addresses',array('id'         =>   '*AUTO','order_id'      =>   '?AUTO_LINK','address_name'      =>   'SHORT_TEXT','address_street'   =>   'LONG_TEXT','address_city'      =>   'SHORT_TEXT','address_zip'      =>   'SHORT_TEXT','address_country'   =>   'SHORT_TEXT','receiver_email'   =>   'SHORT_TEXT',));

Code

:$GLOBALS['SITE_DB']->add_table_field('shopping_order_details','included_tax','REAL');

Code

:$GLOBALS['SITE_DB']->add_table_field('shopping_order','tax_opted_out','BINARY');


Last edit: by Chris Graham


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#53515
Avatar

Quite a few bug fixes have now been made, based on little problems noticed on this site, and error mails.
Major issues fixed so far:
  • Big problems on Internet Explorer (various versions)
  • PHP compatibility problems on some servers
  • Catalogues broken
  • Calendar week view crash
  • Setup Wizard and Theme Wizard problems

Attachment
» Download: Fixesto14thAugust.zip (613 Kb, 412 downloads so far)


Last edit: by Chris Graham


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#53516
Avatar

Well-settled

2 Thanks for the update

I am trying to follow the steps and I am getting confused, as to the easiest way to do this.

Now we are running 4.2 Beta 2 ….

I have modified in the databse the version to show it as vesrsion 4.1 , so all that is cool… But I do not undestand which one I need to grab for the upgrade. When I go through the upgrade process I am stuck here. As I am not sure what to enter the required file name for step 3.
Back to the top
 
Posted
Rating:
#53526
Avatar

Community saint

(Wishes there was a non-upgrade option to install 4.2 RC1 through an instant transfer like 4.1  :whistle: )

Eric DeMars . com
My electronic portfolio and personal site. Uses ocPortal!
Back to the top
 
Posted
Rating:
#53557
Avatar

re Golab…

Enter…
4
2
0
beta2


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#53561
Avatar

Well-settled

Thanks will do that. I just noticed that all the icons and everything is messed up on this forum now. Was ok yesterday for me.



Thanks will do that .

Slav
Back to the top
 
Posted
Rating:
#53562
Avatar

Well-settled

Oh also that this is with IE8 at a high resolution. Thanks
Slav
Back to the top
 
Posted
Rating:
#53563
Avatar

That's not happening any more is it? I had some Internet connection problems when uploading the new CSS so for a short time it was corrupt.


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#53570
Avatar

I have posted an additional set of fixes made today in my second post in this topic. The biggest issues were with the setup/theme wizards, and with IE6 compatibility.


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#53575
Avatar

Honoured member

Fantastic @chris and the entire ocP Team!

U all :rockon:
Back to the top
 
Posted
Rating:
#53597
Avatar

Well-settled

Chris Graham said

That's not happening any more is it? I had some Internet connection problems when uploading the new CSS so for a short time it was corrupt.
If that is refering to me then yes it is still happening , even right now.
Slav
Back to the top
 
Posted
Rating:
#53599
Avatar

Well-settled

Chris Graham said

Quite a few bug fixes have now been made, based on little problems noticed on this site, and error mails. Most were relatively minor issues, but there has been one major issue so far - on Internet Explorer many forms wouldn't submit, due to a change made earlier this week.
All the fixes so far are in the attached file.



Additional fixes:


I assume these 2 patches we can just ftp them by over writting the files manually?

Slav
Back to the top
 
Posted
Rating:
#53603
Avatar

Yes


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#53639
Avatar

Well-settled

I'm afraid these forums still look crazy on IE6! (Don't have a go at me for using it, blame my work!)

Smiley faces and sig pictures are absolutely HUGE!
Back to the top
 
Posted
Rating:
#53640
Avatar

Well-settled

And I can;t attach a screen shot, I'm afraid, as the button beside 'Upload' on attachments part of the full editor isn't there -  there's just a blank box.  Stupid IE6.
Back to the top
 
Posted
Rating:
#53641
Avatar

Could you email the screenshot to someone else for them to upload?


Like ocPortal on Facebook:
Back to the top
 
Posted
Rating:
#53642
Avatar

Well-settled

Anyone got an email I can use?  Feel free to whisper it to me.
Back to the top
 
Posted
Rating:
#53647
Avatar

chris@ocportal.com

Booting up Windows to look at IE6 problems again now…


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#53651
Avatar

That seems to have fixed it. The forum had some CSS that was interacting with some Javascript making PNG images huge on the forum. Also there was a Javascript error with tooltips.


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#53652
Avatar

Well-settled

Nicely done!  All sorted!
Back to the top
 
1 guests and 0 members have just viewed this: None
Control functions:

Quick reply   Expand