PDA

View Full Version : Oscommerce problems on the second click


dave
19th January 2005, 07:51 PM
Ok, my problem is when you click a banner the first time, you go thru to the site, everythings fine, shows up in the stats, great! If you click the banner again, get this error:
Warning: main(includes/languages/eng.php.php): failed to open stream: No such file or directory in /home/rareglit/public_html/games/includes/application_top.php on line 286

Warning: main(includes/languages/eng.php.php): failed to open stream: No such file or directory in /home/rareglit/public_html/games/includes/application_top.php on line 286

Fatal error: main(): Failed opening required 'includes/languages/eng.php.php' (include_path='.:/usr/local/lib/php:/usr/lib/php') in /home/rareglit/public_html/games/includes/application_top.php on line 286

So i tried putting the include "affiliate.php"; in application_top.php and have tried in index.php both get these weird error, where it is adding another .php to eng.php .....annoying :D

Anyone help?

mark
26th January 2005, 03:36 PM
Hi,

the problem could be that osCommerce might use the same variable $language for storing language file.

I think it will help to rename the variable $language to something else ($pa_language) in all the files of affiliate system.

If you use some smart editor like jEdit (www.jedit.org), it is a question of 20 seconds.

regards,

mark

dave111
29th January 2005, 09:38 PM
Thanks for the help, that was the issue.

But now i get this error on the second click :-\


Fatal error: Unknown(): The script tried to execute a method or access a property of an incomplete object. Please ensure that the class definition navigationhistory of the object you are trying to operate on was loaded _before_ the session was started in /home/rareglit/public_html/games/includes/application_top.php on line 309

dave111
4th February 2005, 04:50 AM
Take a look, click this link
http://games.rareglitch.com/index.php?ref=dave111

Then click back and click the link again. :(