PLEASE NOTE: These forums are no longer utilized and are provided as an archive for informational purposes only. All support issues will be handled via email using our support ticket system. For more detailed information on this change, please see this blog post.

Browser class redeclaration error

  1. I'm trying to get digital signatures going with the Ultimatum theme, but unfortunately there is an error:
    Fatal error: Cannot redeclare class Browser in C:\xampp\htdocs\mysite\wp-content\plugins\gravityformssignature\super_signature\Browser.php

    I experimentally changed the name of the class in super_signature Browser.php to Browserx. I also changed the constructor function name, and the call in signature.php to $browser = new Browserx();

    This gets rid of the conflict, but the signature doesn't appear to be working. The canvas is generated on the form and ss.js is loaded, but nothing happens, and I'm out of my depth at this point! I'm guessing I need to make more edits.

    Posted 11 years ago on Tuesday August 28, 2012 | Permalink
  2. David Peralty

    Can you upload your site to the web, and send us a URL so we can take a look at it? I'm assuming there is a theme conflict? Can you test with Twenty-Eleven to confirm?

    Posted 11 years ago on Tuesday August 28, 2012 | Permalink
  3. I can verify that it is a theme conflict. Twenty eleven is fine. I would love to use the add-on if a minor code tweak can fix it.

    The live site has the unaltered signature add-on files, and I've turned on WP_DEBUG. It's behind a password protected directory login:admin pass:nimda

    Form is on
    http://www.crowley barrett.ie/visa-application/

    Thanks for looking.

    Posted 11 years ago on Tuesday August 28, 2012 | Permalink
  4. Hi I'm just wondering if I can do anything else on my end to facilitate you looking at this? I'd like to disable WP_DEBUG as my client wants to evaluate the rest of the site.

    Thanks.

    Posted 11 years ago on Wednesday August 29, 2012 | Permalink
  5. David Peralty

    You might want to look into the issues that WP_DEBUG is listing. It looks like the signature add-on might have an issue with the following though:

    Uncaught TypeError: Object [object Object] has no method 'wfMegaMenu' /visa-application/:91

    Posted 11 years ago on Wednesday August 29, 2012 | Permalink