Guest Posted June 24, 2006 Share Posted June 24, 2006 :huh: I am not sure why this is happening. I'm a noobie with PHP and need some help sorting out htis problem. Example URL http://www.mrinkbee.com/shop/index.php Trying to get the affiliate 2.5a working. the Admin seems to be ok at this point but I cannot get the front end of it working and don't know why exactly although it seems like the variables are not being defined. I can post anything you need to see from source code and whatnot.. Kirk Quote Link to comment Share on other sites More sharing options...
Terra Posted June 24, 2006 Share Posted June 24, 2006 looks like your language level files are missing - you should have some files like affiliate_english.php under /languages/ - check that they are there. It's not a source code issue by the way, just that the language level definition cannot be found, which usually means a file is missing or in the wrong place. Terra Quote My code for combining PayPal IPN with ** QTPro 4.25 ** osC Affiliate ** CCGV(trad) and how to solve the invoice already paid error General info: Allow customer to delete order comment ** FTP Programs & Text Editors ** Amending order email ** Link to comment Share on other sites More sharing options...
Guest Posted June 24, 2006 Share Posted June 24, 2006 Appears to exist /var/www/html/shop/includes/languages/affiliate_english.php /var/www/html/shop/includes/languages/english/ There is a list of 26 more affiliate_*.php files Quote Link to comment Share on other sites More sharing options...
Terra Posted June 24, 2006 Share Posted June 24, 2006 (edited) oscAffiliate is great but buggy - check affiliate_english.php whether you actually have: define('BOX_AFFILIATE_INFO', 'Affiliate Information'); etc. in there. If not, just add the missing definitions in the same format taking care with commas and quotation marks. I've done quite a bit of debugging with this contrib, can't really remember what I had to add. Also looks like your /includes/affiliate_application_top.php is missing or not properly referenced - if you double-check any code changes conected to that file you probably have your solution. Terra Edited June 24, 2006 by Terra Quote My code for combining PayPal IPN with ** QTPro 4.25 ** osC Affiliate ** CCGV(trad) and how to solve the invoice already paid error General info: Allow customer to delete order comment ** FTP Programs & Text Editors ** Amending order email ** Link to comment Share on other sites More sharing options...
Guest Posted June 24, 2006 Share Posted June 24, 2006 Okay! now we are getting somewhere! I made the error of adding... // Include OSC-AFFILIATE require(DIR_WS_INCLUDES . 'affiliate_application_top.php'); into the wrong file (affiliate_application_top.php should have been in application_top.php) . I fixed that now this much is displaying the correct information. Now I have this error when trying to visit the affiliate links. Parse error: parse error, unexpected T_NEW, expecting ')' in /var/www/html/shop/includes/boxes/categories.php on line 136 Quote Link to comment Share on other sites More sharing options...
Guest Posted June 24, 2006 Share Posted June 24, 2006 Am i missing something? This is the line numbers of the categories.php file in reference to the parse error. 136 new infoBox($info_box_contents); 137 ?> 138 </td> 139 </tr> 140 <!-- categories_eof //--> 141 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.