1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

XF 1.4 Getting Callback to work.

Discussion in 'Troubleshooting and Problems' started by drastic, May 10, 2015.

  1. drastic

    drastic Well-Known Member

    Recently moved to a new VPS and my callback doesn't seem to work anymore.

    Here's how it's setup:

    I have this in my /library/TE3/tracking/index.php file

    Code:
    <?php
    
    class TE3_tracking_index
    {
        public static function getHtml()
        {
            include("/home/mypath/public_html/mydomain.com/trades/in.php");
        }
    }
    
    ?>
    The code has to be above the </head tag on every page, so I have the code below in the PAGE_CONTAINER tempate above </head

    Code:
    <xen:callback class="TE3_tracking_index" method="getHtml"></xen:callback>
    It used to work perfectly, but hasn't worked since moving to new VPS. Any changes I could make?

    Thanks.
     
    51463 likes this.
  2. AndyB

    AndyB Well-Known Member

    Make sure the path is correct here:

    PHP:
    include("/home/mypath/public_html/mydomain.com/trades/in.php");
     
  3. drastic

    drastic Well-Known Member

    Path is ok.

    It actually works when we visit mydomain.com/trades/in.php - but once it's placed in the templates, it stops rendering.

    This script has its own admin, which has an iframe on it for displaying their news - that stopped working too.

    We contacted the developer and they think there's a setting blocking all iframes on the server. @xenBoost Mike - if you can check that.

    Or possibly something in the template - if that's it, then @Russ let me know if there's a better place to insert our callback code.

    I just wanted to make sure that our callback is still correct.
     
    51463 likes this.

Share This Page