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.


ocPortal 8 RC1 released! - Comments

Login / Search

 [ Join | More ]
 

ocPortal 8 RC1 released!

Posted 27 March 2012, 5:43 PM

8 RC1 released. Read the full article for a list of changes, and upgrade information.

Read more


Avatar
Ooooerrrr!



bummer
Avatar
Did it do this right away, or at some point after extracting some files?
Avatar
And I thought I'd tested it from every angle. What happened here is that the upgrader script security got redesigned, but I completely forgot to test it still interfaces with the v7 script which is necessary during the file extraction bit.

I've just reuploaded the RC1 files, I'm hoping it will now work and that the partial extraction didn't cause any issue, although the below file will need uploading manually first to reset the upgrader interface back again:
Attachment
data/upgrader2.php
» Download: upgrader2.php (7 Kb, 274 downloads so far)
Avatar
Awesome! That worked Chris up until the step to upgrade ocforum. Nothing happens, it just shows a blank screen.
Avatar
Ah, rats. I upgraded a number of sites to test this but there's always something ;). The last thing the OCF upgrader does is convert tracking to notifications, which can be time consuming if there are a lot. But it's not really very important really.

Does your f_posts table have a p_parent_id field? If so you've got the important changes there.
Avatar
Right on, yes I do have that field :) Thank you.






Avatar
After upgrading and running the theme upgrader (the changes to that are awesome!) the only css file that shows in the page rendering tools is no_cache.css
Avatar
Not as bad as it sounds, it's a bug due to our implementation of Javascript code and no issue in the theme itself. Looking at now.
Avatar
Fixed:
Attachment
themes/default/templates/JAVASCRIPT_STAFF.tpl
» Download: JAVASCRIPT_STAFF.tpl (19 Kb, 272 downloads so far)
Avatar
That fixed it, thanks!

Avatar
Is this patched in the Upgrader and manual installs?

Bob
Avatar
No, updating a release already put out is something for last resorts, only in the case for spectacular failures that can't be worked around ;).





Avatar
Upgrade went fine until upgrading database for OCF where I got the following error:

Code

Critical error - bailing out

This is an error that has been elevated to critical error status because it occurred during the primary error mechanism reporting system itself (possibly due to it occuring within the standard output framework). It may be masking a secondary error that occurred before this, but was never output - if so, it is likely strongly related to this one, thus fixing this will fix the other.
PHP ERROR [1] Call to a member function get_default_auto_setting() on a non-object in sources/global.php(289) : eval()'d code on line 480 (version: 8-RC1, PHP version: 5.2.17, URL: /upgrader.php?type=ocf)
Stack trace...

File -> '/home/XXXXXXXXXX/public_html/XXXXXXXXXX/sources/global.php(289) : eval()\'d code'
Line -> 674
Function -> 'die_html_trace'
Args -> array ( 0 => 'PHP ERROR [1] Call to a member function get_default_auto_setting() on a non-object in sources/global.php(289) : eval()\'d code on line 480 (version: 8-RC1, PHP version: 5.2.17, URL: /upgrader.php?type=ocf)', )
File -> '/home/XXXXXXXXXX/public_html/XXXXXXXXXX/sources/global.php(289) : eval()\'d code'
Line -> 979
Function -> '_fatal_exit'
Args -> array ( 0 => 'PHP ERROR [1] Call to a member function get_default_auto_setting() on a non-object in sources/global.php(289) : eval()\'d code on line 480', )
File -> '/home/XXXXXXXXXX/public_html/XXXXXXXXXX/sources/global.php(289) : eval()\'d code'
Line -> 217
Function -> 'fatal_exit'
Args -> array ( 0 => 'PHP ERROR [1] Call to a member function get_default_auto_setting() on a non-object in sources/global.php(289) : eval()\'d code on line 480', )
File -> '/home/XXXXXXXXXX/public_html/XXXXXXXXXX/sources/global.php(289) : eval()\'d code'
Line -> 853
Function -> '_ocportal_error_handler'
Args -> array ( 0 => 'error', 1 => 1, 2 => 'Call to a member function get_default_auto_setting() on a non-object', 3 => 'sources/global.php(289) : eval()\'d code', 4 => 480, )
File -> '/home/XXXXXXXXXX/public_html/XXXXXXXXXX/sources/global.php(289) : eval()\'d code'
Line -> 789
Function -> 'ocportal_error_handler'
Args -> array ( 0 => 1, 1 => 'Call to a member function get_default_auto_setting() on a non-object', 2 => '/home/XXXXXXXXXX/public_html/XXXXXXXXXX/sources/global.php(289) : eval()\'d code', 3 => 480, )
Function -> 'catch_fatal_errors'
Args -> array ( )

The p_parent_id field was created in the f_posts table.

Bob
Avatar
Thanks. I can see this is what must have happened for Brian Hay also. It happens if someone has set tracking on a forum. You can ignore it, it just means the tracking won't transfer to notification settings, but it's trivial for people to re-set this.
Avatar
So this was the last step of the DB upgrade and I can safely move on to dealing with my modded TPLs?

Bob
Avatar
yes




Avatar
I'm getting tons of 'Not Found', and almost all of them have cited …

undefined constant CRYPT_SHA512 - assumed 'CRYPT_SHA512' in sources/support.php on line 1996 (version: 8-RC1 …

This is happening when following links in Calendar, Catalogues, Forum posts, News links, etc. etc. At the moment it looks like upgrading my live site to v8.0, RC or otherwise, is way over the horizon.

I am itching to compose another vid. Let me know if it is necessary.

 :thumbs:

Show 3 replies


Avatar
When doing the test run of the Theme Upgrader, I got quite a number of "Could not recognise the CSS file XXXXXX.css as being from version 7, although we'll try and process it anyway." Is this just indicative of the fact that these files have changes from the standard v7? I don't recall making any changes to ._colour_picker.css.

Other than that, I am quite impressed with the improvements in the theme upgrader. and I am pleasantly surprised (although somewhat incredulous) that only a single TPL requires attention.

Bob

Show 1 reply


Avatar
main_contact_catalogues block.

This is a really cool block but I can't seem to get it working. I set up a catalogue for it but it does not show as an option when adding the block. The only one displayed is faq. So I added the correct one into the source on the page and it works…..or at least appears to work, it displays properly.

Original code:

Code

<input class="ocp_keep_ui_controlled" readonly="readonly" size="45" title="" type="text" value="main_contact_catalogues block (double-click to edit)" />


Modified to point to the proper catalogue:

Code

<input class="ocp_keep_ui_controlled" readonly="readonly" size="45" style="cursor: pointer; " title="" type="text" value="main_contact_catalogues block (double-click to edit)" /


Also when adding the block if I try to add the email I would like it sent to I get this error. Blanking it out gives no error but it does not seem to use the default staff address as it should.

Expand: error error



It displays perfectly and seams to work great. But after filling it out I get the message that the action was successful but it does not send out the email or save any of the info. 

Avatar
Woo hoo. v8 gets closer to a released product. Now I just need to find some time to help with testing.

Bob

Avatar

Fletch said

Fletch posted Yesterday, 7:31 PM   ()   
Marker #82207
Ooooerrrr!

Chris Graham said

Chris Graham posted Yesterday, 8:47 PM Rating:  
Marker #82215
… I've just reuploaded the RC1 files, I'm hoping it will now work and that the partial extraction didn't cause any issue, although the below file will need uploading manually first to reset the upgrader interface back again:
Attachment
data/upgrader2.php
Download: upgrader2.php (7 Kb, 2 downloads so far)

This is a clone site of my main one that I am trying to 'upgrade' to avoid a disaster later. However, I don't seem to be getting very far, with upgrader.php or upgrader2.php (see attachment). All permissions have been checked, and they are as they should be.

Any suggestions?



Avatar
upgrader2 is called by upgrader, so shouldn't be called directly. The 'Access Denied' error relates to the interface between those two scripts.

It should just be the case of uploading the data/upgrader2.php file, then calling up the upgrader again and it working.


Avatar
I'm not sure if this is the same issue that Bob had (above), but I am reporting it just in case it isn't …
ocPortal upgrader

This is the ocPortal upgrade tool. This tool is a part of ocPortal, but it is intentionally kept lightweight to keep it working even if ocPortal is partly broken.

Database query failed: ALTER IGNORE TABLE ocp5_f_members CHANGE m_track_contributed_topics m_auto_monitor_contrib_content tinyint(1) NOT NULL [Unknown column 'm_track_contributed_topics' in 'ocp5_f_members']<br /> Database query failed: ALTER TABLE ocp5_f_members ADD m_allow_emails_from_staff tinyint(1) DEFAULT 1 NOT NULL [Duplicate column name 'm_allow_emails_from_staff']<br /> Database query failed: INSERT INTO ocp5_db_meta (m_table, m_name, m_type) VALUES ('f_members', 'm_allow_emails_from_staff', 'BINARY') [Duplicate entry 'f_members-m_allow_emails_from_staff' for key 'PRIMARY']<br /> Database query failed: ALTER TABLE ocp5_f_custom_fields ADD cf_show_on_join_form tinyint(1) DEFAULT 1 NOT NULL [Duplicate column name 'cf_show_on_join_form']<br /> Database query failed: INSERT INTO ocp5_db_meta (m_table, m_name, m_type) VALUES ('f_custom_fields', 'cf_show_on_join_form', 'BINARY') [Duplicate entry 'f_custom_fields-cf_show_on_join_form' for key 'PRIMARY']<br /> Database query failed: ALTER TABLE ocp5_f_forums ADD f_is_threaded tinyint(1) DEFAULT 0 NOT NULL [Duplicate column name 'f_is_threaded']<br /> Database query failed: INSERT INTO ocp5_db_meta (m_table, m_name, m_type) VALUES ('f_forums', 'f_is_threaded', 'BINARY') [Duplicate entry 'f_forums-f_is_threaded' for key 'PRIMARY']<br /> Database query failed: ALTER TABLE ocp5_f_posts ADD p_parent_id integer DEFAULT NULL NULL [Duplicate column name 'p_parent_id']<br /> Database query failed: INSERT INTO ocp5_db_meta (m_table, m_name, m_type) VALUES ('f_posts', 'p_parent_id', '?AUTO_LINK') [Duplicate entry 'f_posts-p_parent_id' for key 'PRIMARY']<br />
Critical error - bailing out

This is an error that has been elevated to critical error status because it occurred during the primary error mechanism reporting system itself (possibly due to it occuring within the standard output framework). It may be masking a secondary error that occurred before this, but was never output - if so, it is likely strongly related to this one, thus fixing this will fix the other.
PHP ERROR [1] Call to a member function get_default_auto_setting() on a non-object in sources/global.php(289) : eval()'d code on line 480 (version: 8-RC1, PHP version: 5.2.17, URL: /anglo_clone/upgrader.php?type=ocf)

Expand: Stack trace Stack trace


Suggestions, pleae!

Avatar
Yes, it is. Just you ran it twice (or your browser did for you, that sometimes happens nowadays on errors) which caused some erroring on the repetition :).
Avatar
Thanks for the response, Chris.

What's the solution? 'Ignore it' as you advised Bob?

And if I ignore, can I continue with the themes upgrade?

Thank goodness for temp and his cloned site instructions.


Note to self: send some 'gifties' temp's way … !!

 :lol:
Avatar
I anticipated running into some issues so I made a backup of my cloned site prior to upgrade. Now I can get back to square 1 quickly if I need or want to (e.g, when RC2 is released, I can go through the whole upgrade again with little effort).

Bob
Avatar
Good advice Bob, but too late for me now.

HOWEVER, being the optimist I am, I will incorporate the RC1 change to my live site as soon as I've ironed out any display gremlins in the clone.

THEN, if all is well, RC2 will be applied to the RC1 clone, allowing me to tiptoe through the mire (to paraphrase Tiny Tim) and eventually breathe a sigh of relief!

A possibly 'absurd' desire on my part is that I wish I could change the prefix of the DB tables to reflect the latest release. Currently my DB says it is 'ocp5_', and I am sure that the latest releases don't actually append the 'number' to the prefix. Oh, well, I will just have to live with it!

Show 8 replies



Avatar
Yes, ignore :).




Avatar
Got an error 404 when clicking the "My Account" link in the top menu.
2012-03-28_1138 - BobS702's library

When investigating, I found that the entire personalzone folder was missing from my upgrade and also from the manual extraction download.

Bob

Show 4 replies


Show 24 more replies

There are too many online users to list.
Control functions:

Quick reply   Expand