Not working :(

Discussion in 'Co-op Advertising Network' started by Seiya, Dec 16, 2005.

  1. #1
    Im trying to set it up on http://www.eternalgaming.com/ and it wont work....

    it runs on http://www.xaraya.com/

    i asked them they said its the scripts fault... it was giving me a error on line 96 saying something about HTTPS and about a undefined string on line 9 or something

    anyone set it up on this cms before?
     
    Seiya, Dec 16, 2005 IP
  2. digitalpoint

    digitalpoint Overlord of no one Staff

    Messages:
    38,334
    Likes Received:
    2,613
    Best Answers:
    462
    Trophy Points:
    710
    Digital Goods:
    29
    #2
    Caused by their overzealous error reporting. :) You add this to the beginning of the ad_network PHP file:

    error_reporting(E_ALL & ~E_NOTICE);
    PHP:
     
    digitalpoint, Dec 16, 2005 IP
  3. Seiya

    Seiya Peon

    Messages:
    4,666
    Likes Received:
    404
    Best Answers:
    0
    Trophy Points:
    0
    #3
    PHP: Error Notice

    At: /home/eternalg/eternalgaming.com/html/ad_network_472.php (Line: 52) Undefined offset: 4

    So annoying this cms :/

    oh i added that code by the way.

    This are the lines near 52..

    $file = fopen($ad_file, 'r+');
    		if (flock ($file, LOCK_EX|LOCK_NB, $would_block) && !$would_block) {
    			if ((count ($ads) < $ads_temp[4] + 1 && $ads_temp[0] + $ads_temp[6] < time()) || $ads_temp[0] + $ads_temp[5] < time()) {
    				$new_ad = file_get_contents_an ('http://ads.digitalpoint.com/network.php?c=' . $_SERVER['SERVER_NAME'] . '&type=link');
    				if ($new_ad) {
    Code (markup):
     
    Seiya, Dec 16, 2005 IP
  4. Seiya

    Seiya Peon

    Messages:
    4,666
    Likes Received:
    404
    Best Answers:
    0
    Trophy Points:
    0
    #4
    had to turn off all error reporting, working now ;)
     
    Seiya, Dec 16, 2005 IP