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.


[RESOLVED] New site issue

Login / Search

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

Honoured member

One of my OCP sites seems to have developed an interesting problem:  Use of blocks or making changes to blocks refuses to complete.

Here's an example.  Create a new topic and click the add attachment button.  The window pops up, I usually choose the defaults which works fine, but when SAVE is clicked at the bottom I get the diagonal red bar and it never goes away.  If I click outside of that window, it closes but the attachment was not completed.

A second example is a countdown clock I have on the same site.  I can double click the block, edit the date for the next event but when I click SAVE I get the same thing - diagonal red bar scrolls forever and the action doesn't complete.

The software is up to date at 9.0.19

I suspect it's one file that may have gotten corrupted as these same functions work just fine on my other OCP sites.  If anyone can offer up a suggestion, I would be most grateful.

Thanks!!

Mark


Last edit: by superiorpyro
Back to the top
 
Posted
Rating:
#109061
Avatar

Look in your JavaScript console, and also try emptying your caches. If you switched base URLs at some point that is one common thing that can cause JavaScript errors.


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:
#109071
Avatar

Honoured member

Hey Chris,

No luck.  Cleared the caches and no change.  There's been no changes to the base URL either.  Not sure how or what to do with the Java Script console, but I suspect it's probably ok as the same functionality works properly on my other 9.0.19 OCP sites?

Any other ideas??

Thank you!

Mark

UPDATE:  Apparently it's not just the blocks that aren't working, just tried adding an overlay and the same issue -it brings up the expected dialog window but in this case, there's literally no content in the window whereas with blocks at least it appears to display the block configuration options then just never completes.

Here's a screen shot of what happens when I attempt an overlay:



Last edit: by superiorpyro
Back to the top
 
Posted
Rating:
#109133
Avatar

Can you provide a link so I can take a look?


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:
#109147
Avatar

Generally this kind of thing is caused by JavaScript, more specifically JavaScript security relating to access across domains. If JavaScript is asked to call one domain, from a different one, it won't allow it, to preserve the general security of the web.

Modern browsers all have JavaScript consoles which shows errors that have happened like these.

In ocPortal it can happen if the base URL has changed. One possibility is if it is blank in the info.php file. If it was never set, and sometimes ocPortal is getting called by different variants of the base URL (typically with and without 'www.') then the cache can get a mixture, and it triggers such cross-domain errors.

That's the only possibility OTTOMH, but I'll take a closer look if needed.


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:
#109152
Avatar

Honoured member

Thanks very much for your generous offer to help, Chris.  I will PM you the URL and login information.

Mark
Back to the top
 
Posted
Rating:
#109155
Avatar

Now fixed. Was related to SSL.

If the start page was SSL, but the page you started an overlay from was not, it would then sometimes show the overlay as SSL because it used the SSL settings of the start page. That caused a cross domain security error, as SSL vs non-SSL (either way) is considered a different security context to JavaScript. I have now made it smarter, the helper scripts (used on overlays) should get SSL context based on what the caller has, not any specific ocPortal page.


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:
#109157
Avatar

Honoured member

As always, Mr. Graham has saved the day :thumbs:

Thanks very much, Chris, the overlay, attachments and other functionality is working again.

Cheers,

Mark
Back to the top
 
There are too many online users to list.
Control functions:

Quick reply   Contract

Your name:
Your message: