[Issues Solved!] Trials and Tribulations of Upgrading to Composr

Post

Posted
Rating:
#559 (In Topic #120)
Avatar
Standard member
mythus is in the usergroup ‘Community saint’

A diary of successes and lots and lots of failures

Greetings,

I have decided to document here the issues I am experiencing upgrading from ocPortal v9 to Composr. Here's hoping that this will not only help me and others, but also help Composr.

First error, if you will, is a database upgrade error - though the database successfully updated?
composr upgrade database fail.png

Next is after all the upgrading is said and done - missing symbols:
composr upgrade missing symbols.png

That actually turned out to be a theme issue. Using the default theme made those errors go away. But I thought I should point it out anyway, just incase anyone else has that error. Just go to default theme. I know it is a pain to have to redo our custom theme, but we knew this was coming with such a huge upgrade.

All of that aside, the one issue that may prove to be a dealbreaker for now - as in keeping me on ocPortal until it can be resolved, is with the Wiki+ (Wikiversr? lol). As you will see in this pic, there is no listing of wiki child pages, nor a way to do anything about it - can't edit trees, can't make posts. You can only unmonitor. My site makes HEAVY HEAVY use of the Wiki+…
composr missing wiki things.png

As you can see, I am using default theme in that pic, so it is not a theme issue, as far as I can tell.

As I find more, I'll update this thread. Hopefully this will show some of the problems that could happen with an upgrade to Composr, and maybe some fixes for those issues. There are many small things of course that can be fixed by simply using default theme and remaking your theme on it. Hopefully I'll be able to achieve that well enough, admittedly it is not something I look forward to doing but it is a bitter pill that I am willing to swallow.

Neat how this text box expands as you type btw. Not sure yet what I think about that. But as long as the formating bar at the top remains visible it should be cool.

Issues posted in this thread have been solved

Last edit: by mythus



Like ocPortal? Want to thank Chris and gang somehow? Then help out in the chat room! It really needs your help! Just open it in a tab everytime you open your web browser, and when you hear a "ding", check it out!
 
"Those who want help should first be willing to give help."
Online now: No Back to the top

Post

Posted
Rating:
#560
Avatar
Standard member
mythus is in the usergroup ‘Community saint’
Here's a few more issues I've uncovered this morning…

composr wiki errors.png

The above error only happens on the Wiki index page. Of course the only reason  I know this is because of the Random Wiki Page feature. After all, I cannot use the tree to navigate to different parts of the Wiki thanks to the bug mentioned above. Anyway, on every other wiki page, the language string error is not present, the other two are though. And yes, I've added the language string to the correct global.ini.

It seems that the majority of the issues experienced with the upgrade are with the Wiki+…. However, there is a strange error I get when viewing one of my catalogs.

composr catalog error.png

Curisor and curisor, is it not?

BTW - I've also seen what might be a bug, or might simply be fixed by editing the page and putting the block back in. Hard to test though since I have no way to edit the Wiki+ pages now. I am hoping that it is fixable though, missing this feature is really gonna complicate things for me…
composr missing downloads box.png


 


Like ocPortal? Want to thank Chris and gang somehow? Then help out in the chat room! It really needs your help! Just open it in a tab everytime you open your web browser, and when you hear a "ding", check it out!
 
"Those who want help should first be willing to give help."
Online now: No Back to the top

Post

Posted
Rating:
#561
Avatar
Site director
Chris Graham is in the usergroup ‘Administrators’
First error, if you will, is a database upgrade error - though the database successfully updated?

Benign, can ignore, but fixed for next release.

Next is after all the upgrading is said and done - missing symbols:

Okay, something you have is referencing these and they really are gone. Search your custom templates and Comcode pages for those strings.

{!FRONT_PAGE} is probably now best {!HOME}.

(continuing to read through)


Become a fan of Composr on Facebook or add me as a friend. Add me on on Mastodon. Follow me on Minds (where I am most active). Support me on Patreon

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 Composr whenever you see the opportunity or support me on Patreon.
  • 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 Composr 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.
Online now: No Back to the top

Post

Posted
Rating:
Item has a rating of 5 (Liked by mythus)
#562
Avatar
Site director
Chris Graham is in the usergroup ‘Administrators’
The main issue was WIKI_PAGE_SCREEN.tpl was still overridden within the default theme. I made an _old folder under themes/default/templates_custom and moved the override into that. Now it works.

There was one multi-lang-content bug which I've fixed on your server.

On your menu is an error about side_ocf_personal_topics, it's now side_cns_private_topics. The upgrader should have handled that but didn't due to a bug.

The "Unfortunately a query is too long" error relates to the MySQL max_allowed_packet setting. I suggest setting quick_cache="1" on the block, it will improve performance anyway.

main_download_category no longer exists, you'll need to use main_multi_content instead, filtered to a particular download category. The blocks in v10 have been better unified.

Ok, I've caught up with all that you wrote now.


Become a fan of Composr on Facebook or add me as a friend. Add me on on Mastodon. Follow me on Minds (where I am most active). Support me on Patreon

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 Composr whenever you see the opportunity or support me on Patreon.
  • 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 Composr 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.
Online now: No Back to the top

Post

Posted
Rating:
#563
Avatar
Standard member
mythus is in the usergroup ‘Community saint’

Chris Graham said

Next is after all the upgrading is said and done - missing symbols:

Okay, something you have is referencing these and they really are gone. Search your custom templates and Comcode pages for those strings.

Yeah, it was a theme issue. I actually stated that in my post I think? Anyways, the solution seems to be to rebuild the theme using default theme. I might be able to go through and find all of the changes that need to be made to my theme, but that is doubtful - I've slowly modified that theme over time and can't remember all that I've changed lol.

Chris Graham said

The main issue was WIKI_PAGE_SCREEN.tpl was still overridden within the default theme. I made an _old folder under themes/default/templates_custom and moved the override into that. Now it works.

There was one multi-lang-content bug which I've fixed on your server.

Thanks so much! My wiki works again! And, thanks for that other fix as well!

Chris Graham said

On your menu is an error about side_ocf_personal_topics, it's now side_cns_private_topics. The upgrader should have handled that but didn't due to a bug.

Yeah, I didn't even address that "bug" because I knew that was the case, and knew how to fix it. I just hadn't done that yet. Thanks though for noticing it, and glad that seeing it pointed out a bug for you to squash!

Chris Graham said

The "Unfortunately a query is too long" error relates to the MySQL max_allowed_packet setting. I suggest setting quick_cache="1" on the block, it will improve performance anyway.

But, that Bestairy Page is a simple catalog index. It isn't a block. I don't recall putting a block on their either, but I guess I could check that out.

Chris Graham said

main_download_category no longer exists, you'll need to use main_multi_content instead, filtered to a particular download category. The blocks in v10 have been better unified.

I thought/hoped it was something like that. Similar to the side_ocf_personal_topics thing. So, an easy fix.

OK, So I've noticed that the text box expands and you loose sight of the formating buttons. This could prove to be quite a usability issue. Is there a way to stop this behavior?

And thanks again Chris, you truly are awesome.



Like ocPortal? Want to thank Chris and gang somehow? Then help out in the chat room! It really needs your help! Just open it in a tab everytime you open your web browser, and when you hear a "ding", check it out!
 
"Those who want help should first be willing to give help."
Online now: No Back to the top

Post

Posted
Rating:
#564
Avatar
Site director
Chris Graham is in the usergroup ‘Administrators’
Ok that query limit thing is a bug then. The module's use blocks internally now for some things, I'll take a look.

OK, So I've noticed that the text box expands and you loose sight of the formating buttons. This could prove to be quite a usability issue. Is there a way to stop this behavior?

IIRC this is the auto-grow plugin for CKEditor, edited in the WYSIWYG_SETTINGS.js template. You'd need to empty the template cache after editing that template.


Become a fan of Composr on Facebook or add me as a friend. Add me on on Mastodon. Follow me on Minds (where I am most active). Support me on Patreon

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 Composr whenever you see the opportunity or support me on Patreon.
  • 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 Composr 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.
Online now: No Back to the top

Post

Posted
Rating:
#565
Avatar
Standard member
mythus is in the usergroup ‘Community saint’
Cool, I'll check that out.

BTW - how do you get main_multi_content to show a specific category? I saw things about virtualroot, which I tried, and about filtercodes which I don't know anything about.


Like ocPortal? Want to thank Chris and gang somehow? Then help out in the chat room! It really needs your help! Just open it in a tab everytime you open your web browser, and when you hear a "ding", check it out!
 
"Those who want help should first be willing to give help."
Online now: No Back to the top

Post

Posted
Rating:
#566
Avatar
Site director
Chris Graham is in the usergroup ‘Administrators’
Try just a filtercode of the category ID.


Become a fan of Composr on Facebook or add me as a friend. Add me on on Mastodon. Follow me on Minds (where I am most active). Support me on Patreon

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 Composr whenever you see the opportunity or support me on Patreon.
  • 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 Composr 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.
Online now: No Back to the top

Post

Posted
Rating:
#567
Avatar
Standard member
mythus is in the usergroup ‘Community saint’
OK, I am not sure where to find the id other than the id given in the URL…. so I did this:
composr downloads1.png
But it didn't work. It gave me everything in downloads:
composr downloads2.png
When all I want is from that one category, Downloadable Materials…


Like ocPortal? Want to thank Chris and gang somehow? Then help out in the chat room! It really needs your help! Just open it in a tab everytime you open your web browser, and when you hear a "ding", check it out!
 
"Those who want help should first be willing to give help."
Online now: No Back to the top

Post

Posted
Rating:
#568
Avatar
Site director
Chris Graham is in the usergroup ‘Administrators’
You can find the ID in the edit category URL for that category. The URL moniker won't work.


Become a fan of Composr on Facebook or add me as a friend. Add me on on Mastodon. Follow me on Minds (where I am most active). Support me on Patreon

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 Composr whenever you see the opportunity or support me on Patreon.
  • 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 Composr 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.
Online now: No Back to the top

Post

Posted
Rating:
#569
Avatar
Standard member
mythus is in the usergroup ‘Community saint’
Well, the id for the category is 3. I put 3 in, no change. I put id=3, an error has occured. Will keep working on this, but man I miss the just choosing the category of the past lol…


Like ocPortal? Want to thank Chris and gang somehow? Then help out in the chat room! It really needs your help! Just open it in a tab everytime you open your web browser, and when you hear a "ding", check it out!
 
"Those who want help should first be willing to give help."
Online now: No Back to the top

Post

Posted
Rating:
#570
Avatar
Site director
Chris Graham is in the usergroup ‘Administrators’
I'll take a look later.


Become a fan of Composr on Facebook or add me as a friend. Add me on on Mastodon. Follow me on Minds (where I am most active). Support me on Patreon

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 Composr whenever you see the opportunity or support me on Patreon.
  • 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 Composr 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.
Online now: No Back to the top

Post

Posted
Rating:
#571
Avatar
Standard member
mythus is in the usergroup ‘Community saint’
For anyone else who wants to disable the editor autogrow feature:

In your theme templates, look for WYSIWYG_SETTINGS.js template. It is a javascript template.

Add autogrow to the remove plugins =" ", so it looks like this:
removePlugins: 'autogrow',

Use your website cleanup tools to clear the templates cache.

And there you go, no more auto sizing WYSIWYG editor box.


Like ocPortal? Want to thank Chris and gang somehow? Then help out in the chat room! It really needs your help! Just open it in a tab everytime you open your web browser, and when you hear a "ding", check it out!
 
"Those who want help should first be willing to give help."
Online now: No Back to the top

Post

Posted
Rating:
Item has a rating of 5 (Liked by mythus)
#572
Avatar
Site director
Chris Graham is in the usergroup ‘Administrators’
Use Selectcode on main_multi_content not Filtercode. Selectcode is for selection based on IDs, Filtercode is for more advanced filtering.

To show downloads in category #4, do a main_multi_content with type 'download' and a Selectcode of '4*'. (specially the Selectcode (1) field). The * means category, it's saying anything under category #4.


Become a fan of Composr on Facebook or add me as a friend. Add me on on Mastodon. Follow me on Minds (where I am most active). Support me on Patreon

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 Composr whenever you see the opportunity or support me on Patreon.
  • 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 Composr 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.
Online now: No Back to the top

Post

Posted
Rating:
Item has a rating of 5 (Liked by mythus)
#573
Avatar
Site director
Chris Graham is in the usergroup ‘Administrators’
I've dealt with that query size limit also. For reference it is related to 0002377: Tempcode optimisation - conditional parameter generation - Composr CMS feature tracker.


Become a fan of Composr on Facebook or add me as a friend. Add me on on Mastodon. Follow me on Minds (where I am most active). Support me on Patreon

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 Composr whenever you see the opportunity or support me on Patreon.
  • 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 Composr 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.
Online now: No Back to the top

Post

Posted
Rating:
#574
Avatar
Standard member
mythus is in the usergroup ‘Community saint’
Works, thanks!


Like ocPortal? Want to thank Chris and gang somehow? Then help out in the chat room! It really needs your help! Just open it in a tab everytime you open your web browser, and when you hear a "ding", check it out!
 
"Those who want help should first be willing to give help."
Online now: No Back to the top

Post

Posted
Rating:
#575
Avatar
Standard member
mythus is in the usergroup ‘Community saint’
Last little thing I'd like help figuring out (or so I hope it's the last little thing).

Anyway I can get the top and bottom forum-blocks back like I have in ocPortal?

Screenshots to show what I mean.
forum-topblock.png
forum-bottomblock.png


Like ocPortal? Want to thank Chris and gang somehow? Then help out in the chat room! It really needs your help! Just open it in a tab everytime you open your web browser, and when you hear a "ding", check it out!
 
"Those who want help should first be willing to give help."
Online now: No Back to the top

Post

Posted
Rating:
Item has a rating of 5 (Liked by mythus)
#576
Avatar
Site director
Chris Graham is in the usergroup ‘Administrators’
Right, so in v10 we go with a much more compact social-network-style header, rather than the forum style one. However we still have the blocks.

There are a few ways you could approach the change, but let's imagine that you simply want them on the forum zone.

Go to Admin Zone > Structure > Redirects, and remove the pre-created redirects for panel_top and panel_bottom. Then the top/bottom panels are per-zone.

Then create forum:panel_top with:

Code

[block]main_member_bar[/block]

Then create forum:panel_bottom with:

Code

[block]main_bottom_bar[/block]

If you want it to just show on forumview and topicview, wrap the Comcode on those pages with:

Code

{+START,IF,{$EQ,{$PAGE},forumview,topicview}}
...
{+END}


Become a fan of Composr on Facebook or add me as a friend. Add me on on Mastodon. Follow me on Minds (where I am most active). Support me on Patreon

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 Composr whenever you see the opportunity or support me on Patreon.
  • 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 Composr 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.
Online now: No Back to the top

Post

Posted
Rating:
#578
Avatar
Standard member
mythus is in the usergroup ‘Community saint’
Chris, as always, you are awesome.

I'm actually debating whether or not I even want a top block on the forum now. You are right with the slimmer approach you have for composr. I suppose it is just hard to let go of things that you are used to lol.

As for the bottom block, the only reason I want it is because the side-users-online block for Composr doesn't work… You knew that of course. Right?

BTW - Im in the middle of moving over my test upgrade to my live site. I feel everything is working well now, thanks to you. 


Like ocPortal? Want to thank Chris and gang somehow? Then help out in the chat room! It really needs your help! Just open it in a tab everytime you open your web browser, and when you hear a "ding", check it out!
 
"Those who want help should first be willing to give help."
Online now: No Back to the top

Post

Posted
Rating:
#580
Avatar
Standard member
mythus is in the usergroup ‘Community saint’
OK, so I'm not sure whether to bug report this or not…

I moved my test site to my live site. It isn't showing my background image and says the IMG symbol is missing. Also, I tried to change my avatar that Chris says is now fixed in the tracker, but I get the following:

composr avatar error.png
Did something weird happen when I moved the site to live? Everything moved over as far as I can tell…


Like ocPortal? Want to thank Chris and gang somehow? Then help out in the chat room! It really needs your help! Just open it in a tab everytime you open your web browser, and when you hear a "ding", check it out!
 
"Those who want help should first be willing to give help."
Online now: No Back to the top
1 guest and 0 members have just viewed this.

Statistics

Forum statistics:
  • 2,052 topics, 7,195 posts, 10,827 members
  • Our newest member is LowfareMart
Birthdays:
Back to Top