Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1302777

    cwpete
    Participant

    After deactivating all non-esential plugins, Cornerstone still doesn’t load video files.

    http://www.opendoorenglish.online

    This is my stagging site.

    Thanks

    #1302830

    Darshana
    Moderator

    Hi there,

    Thanks for writing in! Upon checking, I can see the following errors on the JavaScript Console Log.

    
    Failed to execute ‘postMessage’ on ‘DOMWindow’: The target origin provided (‘https://www.youtube.com’) does not match the recipient window’s origin (‘http://opendoorenglish.online’).  opendoorenglish.online
    
    downloadable font: download failed (font-family: "FontAwesome" style:normal weight:normal 
    stretch:normal src index:1): bad URI or cross-site access not allowed source: http://www.opendoorenglish.com/wp-content/themes/x/framework/fonts/font_awesome/fontawesome-webfont.woff2?v=4.6.3  renew.css:1:141193
    
    downloadable font: download failed (font-family: "FontAwesome" style:normal weight:normal stretch:normal src index:2): bad URI or cross-site access not allowed source: http://www.opendoorenglish.com/wp-content/themes/x/framework/fonts/font_awesome/fontawesome-webfont.woff?v=4.6.3  renew.css:1:141193
    
    downloadable font: download failed (font-family: "FontAwesome" style:normal weight:normal stretch:normal src index:3): bad URI or cross-site access not allowed source: http://www.opendoorenglish.com/wp-content/themes/x/framework/fonts/font_awesome/fontawesome-webfont.ttf?v=4.6.3  renew.css:1:141193
    

    Could you please try adding the following rule into your .htaccess file and see if that works for you.

    <IfModule mod_headers.c>
        Header add Access-Control-Allow-Origin "*"
        Header add Access-Control-Allow-Headers "origin, x-requested-with, content-type"
        Header add Access-Control-Allow-Methods "PUT, GET, POST, DELETE, OPTIONS"
    </IfModule>

    Once you’ve done that, you should have a .htaccess that looks similar to this.

    null

    Alternatively, try adding the following code into your functions.php file.

    
    add_action ('init', function(){
     header("Access-Control-Allow-Origin: *");
    });
    

    Hope that helps.

    #1302903

    cwpete
    Participant

    Hi,

    I reversed what was suggested, but when I did try what was suggested I got this result and it did not reverse to previous status:

    Internal Server Error

    The server encountered an internal error or misconfiguration and was unable to complete your request.

    Please contact the server administrator at webmaster@opendoorenglish.online to inform them of the time this error occurred, and the actions you performed just before this error.

    More information about this error may be available in the server error log.

    Additionally, a 500 Internal Server Error error was encountered while trying to use an ErrorDocument to handle the request.

    #1303016

    Darshana
    Moderator

    Hi there,

    You can contact your hosting provider and ask them to allow Cross-Origin Resource Sharing (CORS) for you. In the meantime, connect through your FTP account and replace with the following in your .htaccess file to recover your site.

    
    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>
    
    # END WordPress
    

    Thanks!

    #1303089

    cwpete
    Participant

    Site recovered. Host is setting CORS.

    I’ll keep you informed.

    Thanks

    #1303099

    cwpete
    Participant

    Hi,

    I replaced the content of .htacceess file and the video showed up in the container where it should be. So I think that the .htaccess file may have had a problem.

    Ok this is my stagging site. How do I go about correcting this problem in my LIVE site?

    opendoorenglish.com

    #1303116

    Darshana
    Moderator

    Hi there,

    Glad you were able to recover it. You need to do the exact change in the live site also by editing the .htaccess file or else you can ask your hosting provider to set this up for you.

    Thanks!

    #1303144

    cwpete
    Participant

    I found out that this plugin is causing the problem:

    rtMedia for WordPress, BuddyPress and bbPress.

    Is there a way to fix this issue?

    #1303377

    Rue Nel
    Moderator

    Hello There,

    Thanks for updating in! There has been a feature request to integrate rtMedia in X. At the moment, there is still no solution. Please check out this topic: https://community.theme.co/forums/topic/rtmedia-and-x-theme/#post-340283

    If you need anything else, please let us know.