Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

osC Affiliate - undefined variables


Guest

Recommended Posts

: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

Link to comment
Share on other sites

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

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

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

Link to comment
Share on other sites

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 by Terra

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

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

Link to comment
Share on other sites

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

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...