• Resolved Relevad

    (@relevad)


    Hi,

    In the file: wpematico/app/campaign_log.php it is trying to bootstrap wordpress by loading wp-config.php

    In our install method this will not work because wp-config does include other files, it is only included into other php files.

    See this: http://jason.pureconcepts.net/2012/08/wordpress-multitenancy/

    We got the campaign_log.php working again by changing the bootstrap file to:
    include(‘../../../../wp-load.php’);
    Which although it is not a 100% safe solution (since wordpress plugins folder can be nested at various other levels) it does work for us.

    Please consider our solution.

    Thanks
    — Relevad

    https://wordpress.org/plugins/wpematico/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author etruel

    (@etruel)

    Thanks, I’m considering using this tip in next version

    Thread Starter Relevad

    (@relevad)

    Hi, I’m looking at the new version. Thanks for taking our recommendations into account.

    After looking it over.
    app/campaign_log.php
    1) die(‘<H1>Can\’t include config. Report to etruel@gmail.com</H1>’);
    should be changed to reference initializing (or bootstrapping) wordpress instead of the config file.
    Also, it might make sense for this
    2) include(‘wp-includes/pluggable.php’);
    this could possibly be removed? (I haven’t tested).
    If wordpress has been initialized by wp-load.php then including plugable separately is probably un-necessary.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘campaign log broken for our wordpress install’ is closed to new replies.