There is a menu callback for ad_redirect with 3 parameters, but in case the redirect is called with 2 parameters, page not found appears.

I fixed it by adding the following code within hook_menu (line 1264):

$items["ad/redirect/%/%"] = array(
    'access arguments' => array('show advertisements'),
    'type' => MENU_CALLBACK, 
    'page callback' => 'ad_redirect',
    'page arguments' => (array(2,3)),
  );

Comments

jeremy’s picture

Status: Active » Closed (duplicate)

Please report in the correct place, marking as duplicate.