Jump to content

Josh

Approved members
  • Posts

    19
  • Joined

  • Last visited

Posts posted by Josh

  1. Just tested clean install of 5.0.1 and get the same issues.

    Since I thought it may be related to geoip I tested that maxmind reader can successfully read from the mmdb file, which it does.

    <?php
    require 'lib/vendor/autoload.php';
    use MaxMind\Db\Reader;
    $ipAddress = '8.8.8.8';
    $databaseFile = 'var/plugins/rvMaxMindGeoIP2/GeoLite2-City.mmdb';
    $reader = new Reader($databaseFile);
    print_r($reader->get($ipAddress));
    print_r($reader->getWithPrefixLen($ipAddress));
    $reader->close();

  2. After upgrading 4.1.4 to 5.0.1 I get this message on every banner.

    WARNING: The cached delivery rules DO NOT AGREE with the delivery rules shown below
    Please hit save changes to update the cached delivery rules.

    This occurs even for freshly created banners with no delivery rules.

    Re-saving banner delivery rules has no affect.

    Zone probabilities show banners will display, but they do not.

    I have tried the upgrade process to 5.0.1 from both 4.1.4 and 4.2.1 multiple times.

    PHP 7.3.11
    MySQL 5.7.27

  3. If you haven't already, move the current revive webroot somewhere else for later review.

    Do a clean install of revive. Move only your image files to new install and copy your config over after manually reviewing it.

    Review the append and prepend fields in _banners and _zones tables. Look especially for <script> and <iframe> tags that should not be there.

    This may help you find the file that was compromised.

    grep -rIP '(eval|exec|system|passthru)\(' /path/to/revive-install | grep -P '\$_(REQ|GET|POS)'

    Reset passwords and review rest of server. Through the files you found other areas may be infected.

  4. Usage example for refreshing javascript async invocation tags.

    Got it working like so

    HTML

        <div class="ad-300x250" id="ad-300x250-1">
            <ins data-revive-zoneid="153" data-revive-id="b7c2bd3ff3b3bed3a9daa932a43cc2a8"></ins>
            <script async src="https://ra.example.com/www/delivery/asyncjs.php"></script>
        </div>

        <div class="ad-300x250" id="ad-300x250-2">
            <ins data-revive-zoneid="154" data-revive-id="b7c2bd3ff3b3bed3a9daa932a43cc2a8"></ins>
            <script async src="https://ra.example.com/www/delivery/asyncjs.php"></script>
        </div>

    JS

        // placements to refresh
        var adSlots = ['#ad-300x250-1', '#ad-300x250-2'];

        // remove data-revive-loaded attribute
        for (var i = adSlots.length - 1; i >= 0; i--) {
            $(adSlots).find('ins').removeAttr('data-revive-loaded');
        }

        // refresh the ads (use your data-revive-id)
        reviveAsync.b7c2bd3ff3b3bed3a9daa932a43cc2a8.refresh();

        // if your data-revive-id starts with number, access like so
        //reviveAsync['7bc2bd3ff3b3bed3a9daa932a43cc2a8'].refresh();

  5. Create three separate banners and assign them to your zone.

    Add the invocation code to your site (Zones > Choose Zone > Invocation Code).

    The iframe allows you to set "Refresh after X seconds". Perhaps this is what you mean by auto rotate.

    Revive will take care of rotating and separate stats for each banner.

×
×
  • Create New...