• Resolved webtechnology

    (@webtechnology)


    How can I tell if the plugin was configured correctly after installation? I viewed the source and searched for “raven” (no quotes) and did not find anything. I see no issues in the Sentry dashboard.

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

Viewing 13 replies - 1 through 13 (of 13 total)
  • Thread Starter webtechnology

    (@webtechnology)

    I have also installed the plugin on a WordPress 4.9.1 web site. Same question.

    Plugin Author stayallive

    (@stayallive)

    Since you are searching for raven I am assuming you are talking about the front-end implementation.

    Only if define( 'WP_SENTRY_PUBLIC_DSN', 'PUBLIC_DSN' ); (where PUBLIC_DSN is replaced by the actual DSN) should raven be found in the html source.

    Only setting WP_SENTRY_DSN will not log errors on the front-end.

    Thread Starter webtechnology

    (@webtechnology)

    Thanks for the reply. Yes, the WP_SENTRY_PUBLIC_DSN value is set in the wp_config.php as follows (DSN altered):

    // WordPress Sentry plugin
    // JavaScipt settings
    define( ‘WP_SENTRY_PUBLIC_DSN’, ‘https://[email protected]/zzzzzz’ );
    // General settings
    define( ‘WP_SENTRY_VERSION’, ‘v0.1.0’ );
    define( ‘WP_SENTRY_ENV’, ‘production’ );

    Please advise.

    Plugin Author stayallive

    (@stayallive)

    Can you verify the raven.js is also not added when using the Twenty Seventeen theme, your theme might not properly display enqueued scripts or you removed jQuery from your theme (it looks like we added ‘jQuery’ as an dependency for raven) it might also not load because the dependency could not be met, this will very likley be changed in a future release.

    Just a little disclaimer: changing a theme can have unwanted consequences so please try it out on a test environment or backup your site first.

    Thread Starter webtechnology

    (@webtechnology)

    I’m not using the twenty seventeen theme. I am using a custom child theme.

    And jQuery was not removed. jQuery is used on other pages of the site.

    Thread Starter webtechnology

    (@webtechnology)

    Any other suggestions on what to check? I really want to get this working.

    Plugin Author stayallive

    (@stayallive)

    Hey @webtechnology,

    I was ask if you could try it _with_ the Twenty Seventeen theme.

    This rules out the problem is in your theme. Maybe a WordPress call is missing that should output enqueued scripts.

    Thread Starter webtechnology

    (@webtechnology)

    Finally got around to testing this. I changed the site to use the Twenty Seventeen theme and got the same error. I went to the web console and typed:
    Raven.isSetup()
    The resulting error was:
    Raven is not defined.

    Plugin Author stayallive

    (@stayallive)

    Okay it’s getting really hard for me to find things that could be wrong.

    The last thing I can think of is that the plugin is simply not enabled in the plugins section?

    I did a clean 4.9.2 install today and added the plugin and only added define( 'WP_SENTRY_PUBLIC_DSN', 'https://xx@xx/xx' ); to the wp-config.php. And Raven.isSetup(); returns true for me on the frontpage.

    Also did you make sure to have installed the latest version of the plugin?

    Thread Starter webtechnology

    (@webtechnology)

    The plugin is active. It says “Deactivate” beneath “WordPress Sentry” on the Plugins page.

    Snippet of wp-config.php:

    // WordPress Sentry plugin
    // PHP settings
    define( ‘WP_SENTRY_DSN’, ‘https://[email protected]/######’ );
    define( ‘WP_SENTRY_ERROR_TYPES’, E_ALL & ~E_DEPRECATED & ~E_NOTICE & ~E_USER_DEPRECATED );
    // JavaScipt settings
    define( ‘WP_SENTRY_PUBLIC_DSN’, ‘https://[email protected]/######’ );
    // General settings
    define( ‘WP_SENTRY_VERSION’, ‘v0.1’ );
    define( ‘WP_SENTRY_ENV’, ‘production’ );

    Perhaps I am missing something. Is there anything else that needs to be done?

    Plugin Author stayallive

    (@stayallive)

    That looks just fine to me.

    There is only 1 think I can think of right now to be honest.

    Where did you put that config in the wp-config.php?

    There is a /* That's all, stop editing! Happy blogging. */ line, the config should be _above_ that line, below will not work.

    If you did that correct I am afraid I am unsure where to look… maybe you could try and debug it placing some echo statements in the plugin source to see if the code get’s executed at all and where it stops.

    Thread Starter webtechnology

    (@webtechnology)

    That was it! Thanks so much for the tips to get this working properly.

    Plugin Author stayallive

    (@stayallive)

    Awesome! Next time don’t place _any_ config after that line since none will work ??

    Enjoy!

Viewing 13 replies - 1 through 13 (of 13 total)
  • The topic ‘Install verification’ is closed to new replies.