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.


WYSIWYG edit mode bug

Login / Search

 [ Join | More ]
 Add topic 
Posted
Rating:
#108474 (In Topic #21136)

Fan in action

Ok, this is just wacky, looks like a bad bug. If I am logged in as Admin, when I edit a wiki page, it defaults to WYSIWYG edit mode. The toggle “Disable WYSIWYG editing” does seem to work. However, my users, even “Super Moderators” defaults to the mode being OFF and the toggle does not work at all, the users cannot get into WYSIWYG edit mode! I don’t even want our non-technical audience to have a native mode editor, the main selling point of ocPortal was WYSIWYG wiki editing.

Is there some setting that controls this? Can I get rid of the "disable" altogether?

Screen shot below of the edit mode working in Admin.



 
Please help, this has killed our rollout to customers. 
Thanks

Back to the top
 
Posted
Rating:
#108476
Avatar

Are there errors in the browser's JavaScript console?


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

Hi,

Just to be clear, likely what is happening is some JavaScript is failing somewhere, breaking the loading of the WYSIWYG. If you look in the JS console it may give a hint.

I have just tested and it was okay for me, testing as 'test' user on something close to a default install.


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:
#108502

Fan in action

Yea, pretty bad ones. I would have to verify the dates, but IIRC when I entered all 300+ pages in the wiki, under Admin account, all worked fine. Now that we are on 9.0.19, we have this error and a much more severe one (details below). Don't know if they are related.

For user 1, super moderator, using IE11 on Windows 8.1, he gets the WYSIWYG link and editor, but this JS error is hit:




For user 2, super moderator, same OS and browser, he gets no WYSIWYG link and editor, but this different JS error is hit:

[attached, will not post, get weird error that "post is too short" ]

Now for all wiki pages, whether in Admin or other user, when one pastes HTML into the editor, you get an error. The paste works but the error is hit. Here is the debug window below (attached also).

If one pastes into the editor an image, the entire wiki contents is wped out and the only thing remaining is the image pasted in ! 

I cannot tell if these 2 errors are related, but they have appeared at the exact same time.

To reiterate, this site worked fine for 300+ wiki pages, some with huge content. Now, even a simple page will not work in edit mode, for Admin and other users.

Help! 
Back to the top
 
Posted
Rating:
#108503

Fan in action

debug screen shot of paste error:

Back to the top
 
Posted
Rating:
#108504
Avatar

Can I test on a live site? I tried to reproduce it for the last hour, but couldn't find any errors on two Windows machines. I tried to find details of the actual paste error message, but all I could find is an issue fixed in an earlier version of CKEditor.


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:
#108505

Fan in action

Thanks so much for trying to find this issue. Can I send the URL and credentials to you in private? Our site is private to customers.
Back to the top
 
Posted
Rating:
#108506
Avatar

Yes of course :).


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

This was caused by the base_url setting in info.php being blanked out, then multiple domains used to access the site (your hostname, plus also localhost), with some amount of parallelism. If you do this then templates will cache with the wrong domain in some cases and cause URL access errors.

I cleared the template cache for a temporary resolution.

However, I'd advise any live site to have base_url set. It's okay to not have set during development, but during live if multiple domains can get to a site, it can cause some degree of chaos.


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:
#108525

Fan in action

Thanks for looking into this Chris, much appreciated. I will set base_url to something appropriate.

If not there already, is there anywhere in the online docs that we could add this valuable piece of info? Anything I can do to help?
Back to the top
 
Posted
Rating:
#108534
Avatar

If not there already, is there anywhere in the online docs that we could add this valuable piece of info? Anything I can do to help?

I have actually tweaked the config editor labels for v10 to reflect it.


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
 
1 guests and 0 members have just viewed this: None
Control functions:

Quick reply   Contract

Your name:
Your message: