• Resolved jeremyjsimmons

    (@jeremyjsimmons)


    While installing, I receive this error on activation. This is on godaddy shared wordpress hosting.

    Fatal error: Cannot redeclare Sentry\init() (previously declared in /var/www/wp-content/mu-plugins/vendor/godaddy/mwc-core/vendor/sentry/sentry/src/functions.php:16) in?/var/www/wp-content/plugins/wp-sentry-integration/build/vendor/sentry/sentry/src/functions.php?on line?16

    The page I need help with: [log in to see the link]

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author stayallive

    (@stayallive)

    Hi Jeremy,

    It looks like GoDaddy already includes (not clear if they are using it or not) the Sentry SDK.

    Unfortunately there is not much I can do about this… I don’t know what the GoDaddy plugin does or how needed it is but the two plugins cannot be installed together.

    Thread Starter jeremyjsimmons

    (@jeremyjsimmons)

    Alex – thanks for the quick reply, and thanks for the plugin. Love it!
    seems like this plugin would need to use something like these to get around the “redefinition”.

    https://github.com/Interfacelab/namespacer
    https://github.com/humbug/php-scoper
    https://github.com/TypistTech/imposter

    Are you open to trying one of these? I’m happy to make the PR.

    Plugin Author stayallive

    (@stayallive)

    Sorry. No. We already are actually using one of those for our own dependencies. The problem is that this is the Sentry plugin, namespacing our own SDK makes no sense and is also hard to explain to people why they can’t use the PHP docs because every function is called differently because they are namespaced and/or scoped. And that is even besides the point that having multiple Sentry SDKs has some unknown interactions when handling errors.

    Unfortunately this needs to be fixed on the GoDaddy side or you need to use the SDK they include and supply your own DSN which might work if you really wanted too ??

    In all the years maintaining this plugin you are the first with this issue and I don’t think there will be any effort in this plugin to allow this to function any time soon if ever. Hope you’ll be able to work around it!

    Thread Starter jeremyjsimmons

    (@jeremyjsimmons)

    Horray for me being the first. Honestly, I just want the customer off godaddy. It’s a pain to deal with. Cheers.

    Plugin Author stayallive

    (@stayallive)

    I’d of course would never recommend anything so drastic… but yeah.

    I guess in a managed environment it might make sense but they could also (by accident) collect a lot of sensitive data from the context Sentry collects if they are actively tracking errors on the site which might or might not be clear.

    If it is worth something, we also have the same issue with GoDaddy. We are developing our own plugin and rely on Sentry for handling errors. However, it seems that GoDaddy doesn’t allow our clients to install the plugin due to this issue.

    It is not something that is Sentry’s fault, but, as you said @stayallive, is on the GoDaddy’s server side. However, I’ll keep searching for a workaround since we need to have that plugin up and running.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Failure on godaddy’ is closed to new replies.