Forum Replies Created

Viewing 1 replies (of 1 total)
  • Same problem here. Page crashed with the log:

    Got error ‘PHP message: PHP Fatal error: Cannot redeclare formatType() (previously declared in …/wp-content/plugins/affiliates-manager/html/affiliate_creative_detail.php:4) in …/wp-content/plugins/affiliates-manager/html/affiliate_creative_detail.php on line 4\n’, referer: http://mysite/affiliate-home/?sub=creatives

    I fixed it by wrapping the formatType with the if(..) {..} in
    wp-content/plugins/affiliates-manager/html/affiliate_creative_detail.php

    if (!function_exists('formatType')) {
    function formatType($type)
    {
            switch ($type)
            {
                    case 'image': return __( 'Image', 'affiliates-manager' );
                    case 'text': return __( 'Text Link', 'affiliates-manager' );
                    default: wp_die( __( 'unknown creative type.', 'affiliates-manager' ) );
            }
    }
    }

Viewing 1 replies (of 1 total)