Hi all, this is my first post here, so please excuse me if I've posted in the wrong area.

I'm using a fresh, default install of Zencart 1.3.6 on a linux (FC1) server, and I'm trying to write a zencart plugin to CMS Made simple. I answered all of the questions with default answers, and am using database sessions. zencart is installed in its own mysql database, and there's no sharing of databases happening.

To do that, I'm 'including application_top.php' into my code. However, that immediately gives me errors, mostly related to variable scope, etc.

I've made zc_cache a global variable, and that got me past one problem, the next issue was with currencies. The line in includes/classes/currencies.php was:
Code:
while (!$currencies->EOF) {
However, it looked like $currencies was set to false. Not sure what happened, but I was able to work around this error with a bit of tweaking.

Next, I get to this error:
Code:
 Fatal error: Call to a member function on a non-object in /home/website/cms_test/zencart/includes/autoload_func.php on line 90
Some debugging tells me that this is when it's trying to call navigation->add_current_page().

I've done a search, and the one thread that I read about this topic didn't help much. I'm wondering if anybody can tell me what this error is related to, and what I have to setup. In the mean time, I'll keep tracing away.

Thanks.