How To / General

Wrapper not displaying

  • cjsgriffin
  • Topic Author
  • Offline
  • New Member
  • New Member
More
8 years 8 months ago #1 by cjsgriffin
Wrapper not displaying was created by cjsgriffin
Hi all - my wrapper isn't showing the moodle course. Getting this error on console

Refused to display ' xxx.xx/course/view.php?id=2 ' in a frame because it set 'X-Frame-Options' to 'SAMEORIGIN'

I haven't changed any settings for this to happen. Any help would be appreciated.

J3.7.3 moodle 3.3.1 joolde 1.1.3

Thanks
Chris

Please Log in or Create an account to join the conversation.

More
8 years 8 months ago #2 by Antonio Durán
Replied by Antonio Durán on topic Wrapper not displaying
Wrapper auto-height can't work across multiple domains, due to javascript security restrictions.
If you can, move your Moodle to the same domain as Joomla, using a subfolder.
Alternatively, you can disable wrapper auto-height.

Please Log in or Create an account to join the conversation.

  • cjsgriffin
  • Topic Author
  • Offline
  • New Member
  • New Member
More
8 years 8 months ago #3 by cjsgriffin
Replied by cjsgriffin on topic Wrapper not displaying
Thanks Antonio - moodle is in subfolder on same domain and auto-height on or off has same error. It has just starting happening after being ok for months. Have just done update to J3.7.4 and still get error.

Any other advice?

Thanks
Chris

Please Log in or Create an account to join the conversation.

More
8 years 8 months ago #4 by Antonio Durán
Replied by Antonio Durán on topic Wrapper not displaying
Did you allow frame embedding in Moodle?

Please Log in or Create an account to join the conversation.

  • cjsgriffin
  • Topic Author
  • Offline
  • New Member
  • New Member
More
8 years 8 months ago #5 by cjsgriffin
Replied by cjsgriffin on topic Wrapper not displaying
Yes it is. And have checked editors in Joomla and all as it should be. Strange. Thought there may be a server setting with Host - do you know?

Please Log in or Create an account to join the conversation.

More
8 years 8 months ago #6 by Antonio Durán
Replied by Antonio Durán on topic Wrapper not displaying
Yes, it may be that. Check this to see if it can help you:
developer.mozilla.org/es/docs/Web/HTTP/Headers/X-Frame-Options

Please Log in or Create an account to join the conversation.

  • cjsgriffin
  • Topic Author
  • Offline
  • New Member
  • New Member
More
8 years 8 months ago #7 by cjsgriffin
Replied by cjsgriffin on topic Wrapper not displaying
I've read that, thanks, and problem is not all browsers are able to ALLOW FROM - but this shouldn't matter as is from same domain (albeit a subfolder). Host advised me to put ALLOW FROM in .htaccess file but that didn't help and then had no other suggestions. Will be changing host so may fix problem? Unless you have any other ideas??

Please Log in or Create an account to join the conversation.

  • cjsgriffin
  • Topic Author
  • Offline
  • New Member
  • New Member
More
8 years 8 months ago #8 by cjsgriffin
Replied by cjsgriffin on topic Wrapper not displaying
Hi All - just had an update from my host who has for the first time ever admitted they had a problem on last cPanel update 2 days ago. This was the cause as now back to normal.

Cheers
Chris

Please Log in or Create an account to join the conversation.

  • cjsgriffin
  • Topic Author
  • Offline
  • New Member
  • New Member
More
8 years 8 months ago #9 by cjsgriffin
Replied by cjsgriffin on topic Wrapper not displaying
Okay not quite normal. I have subsequently changed Hosts and they did full cPanel migration and DNS changes have all propagated successfully etc. But now Users aren't able to log in - logging in through Joomla does wrapper fine but the user isn't logged in to moodle rather it shows the moodle.joomla.xx login page and the User can't log in here.

Joomdle check is showing: Joomla URL seems to be misconfigured in Joomdle auth plugin in Moodle - but everything is as it should be. I did have to add a new token on Moodle and added it to Joomdle config on Joomla. Also have updated to J3.7.4 - any bugs with Joomdle on this version of J?

Any ideas/help will be greatly appreciated. Thinking of reinstalling Joomdle - will this cause any settings to be lost??

Cheers
Chris

Please Log in or Create an account to join the conversation.

More
8 years 8 months ago #10 by Antonio Durán
Replied by Antonio Durán on topic Wrapper not displaying
> it shows the moodle.joomla.xx login page

Wait, you said Joomla and Moodle were on the same domain (a subdomain is not the same domain).

> Joomdle check is showing: Joomla URL seems to be misconfigured in Joomdle auth plugin in Moodle - but everything is as it should be.

If you have an error in system check, SSO won't work. This message can mean a wrong URL set, but it can also be that Joomla reply is wrong somehow. Check raw replies to try to get more info:
www.joomdle.com/wiki/System_health_check#Raw_replies

Please Log in or Create an account to join the conversation.