Uncaught SecurityError - by Marketing_Agency

This topic has 10 replies, 4 voices, and was last updated 9 years, 9 months ago ago by Stan Russell

  • Avatar: Marketing_Agency
    Marketing_Agency
    Participant
    May 12, 2016 at 00:43

    Hello!

    Recently plugins.js has been throwing this error:
    plugins.js:11696 Uncaught SecurityError: Failed to execute 'toDataURL' on 'HTMLCanvasElement': Tainted canvases may not be exported.
    I’ve tried to modify it, but that doesn’t help.
    I updated the individual file to that which is included in 2.6, but still no luck.

    In turn, this is breaking many things on the site, including Visual Composer, which now throws
    Cannot read property 'call' of undefined
    when editing a ‘Single Image’ Visual Composer element.

    Thoughts? I’d love your help!

    9 Answers
    Avatar: Eva
    Eva Kemp
    Participant
    May 12, 2016 at 08:58

    Hello,

    Please clarify what issues exactly you’re experiencing because of that error.
    Are you unable to edit Single Image element in VC editor?
    Provide FTP and WP admin credentials in Private Content.

    Regards,
    Eva Kemp.

    Avatar: Marketing_Agency
    Marketing_Agency
    Participant
    May 12, 2016 at 18:11

    At the moment, the biggest issue at the moment is that I cannot click ‘Save Changes’ after editing a VC Single Image element, it throws an error in the JavaScript Console. I’m sure there are other undiscovered errors elsewhere.

    I’ve changed the theme to TwentyFifteen and VC works just fine and the SecurityErrors aren’t thrown. I had also uploaded the most recent version of Royal just to see if it was because the theme was out of date, and the issue persisted.

    We are using WPEngine, so you can make use of the staging site as well to try things on.

    I believe this is moreso a CORS issue by the looks of it.
    http://stackoverflow.com/questions/20424279/canvas-todataurl-securityerror

    If you curl the main site it returns:

    HTTP/1.1 301 Moved Permanently
    Server: nginx
    Date: Thu, 12 May 2016 17:11:03 GMT
    Content-Type: text/html; charset=UTF-8
    Content-Length: 0
    Connection: keep-alive
    Keep-Alive: timeout=20
    X-Pingback: http://www.trinitychurchkelowna.ca/xmlrpc.php
    Location: http://www.trinitychurchkelowna.ca/
    Access-Control-Allow-Origin: *
    Access-Control-Allow-Credentials: true
    X-Cacheable: non200
    Cache-Control: max-age=600, must-revalidate
    Accept-Ranges: bytes
    X-Cache: MISS
    X-Pass-Why: 
    X-Cache-Group: normal
    X-Type: default
    Access-Control-Allow-Origin: *

    …showing Access-Control-Allow-Origin is enabled.

    Thoughts?

    Please, contact administrator
    for this information.
    Avatar: Jack Richardson
    Jack Richardson
    Support staff
    May 12, 2016 at 19:56

    Hello,

    You’re using very old theme version. You have to update it.
    Also update all required plugins https://www.8theme.com/download-plugins/ .

    Don’t forget to create back up of your files and database before starting update process!


    (it’s for Legenda theme but the process is the same).

    After update delete these files in wp-content/themes/royal directory:
    taxonomy.php;
    vc_row.php in the folder vc_templates.

    Best regards,
    Jack Richardson.

    Avatar: Marketing_Agency
    Marketing_Agency
    Participant
    May 13, 2016 at 04:06

    I have updated all the plugins and uploaded the most current version of Royal, and using the vanilla Royal theme, VC seems to work just fine.

    We’ve so heavily modified the Royal 1.7 theme, that it would be detrimental to start all over again if we used the newly uploaded Royal 2.6 theme. Is there any way to turn our current theme into a child theme, or fix our current theme?

    Avatar: Jack Richardson
    Jack Richardson
    Support staff
    May 13, 2016 at 09:57

    Hello,

    You should make all custom changes in the child theme.
    Read how to create it https://codex.wordpress.org/Child_Themes . Try to restore old changes from the back up and move them to child theme.

    Best regards,
    Jack Richardson.

    Avatar: Marketing_Agency
    Marketing_Agency
    Participant
    May 13, 2016 at 23:42

    After spending all day converting it into a child theme, I’ve gotten the site close to what it was originally.

    I’m now running into issues where visual composer elements aren’t displaying properly, but I’ll open a new topic for that.

    Thanks.

    Avatar: Eva
    Eva Kemp
    Participant
    May 16, 2016 at 06:41

    Hello,

    Ok, we’ll reply to your new topic soon.
    May this topic be closed?

    Regards,
    Eva Kemp.

    Avatar: Marketing_Agency
    Marketing_Agency
    Participant
    May 16, 2016 at 06:42

    Hey!

    Yep this may be closed, and my new topic may be closed as well.

    I figured ’em out!

    Avatar: stan
    Stan Russell
    Participant
    May 16, 2016 at 09:07

    Hello Marketing_Agency,

    we are happy that your issues are solved! Have a nice day!

    Regards,
    Stan Russell.

  • Viewing 10 results - 1 through 10 (of 10 total)

The issue related to '‘Uncaught SecurityError’' has been successfully resolved, and the topic is now closed for further responses

We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.