PDA

View Full Version : Path problems


instyman
June 15th, 2005, 11:44 AM
I am having problems with configuring Squirrelcart on Mac. I want to do this to get it working before uploading to my site. If I set the config like this it gets me to the store (And it is the only way I can get it to work).

$site_www_root = "http://administrators-computer.local/~elliott/www";
$site_isp_root = ".";
$site_secure_root = "http://administrators-computer.local/~elliott/www";

However if I login and try to edit anything the I get errors...

Warning: main(./squirrelcart/cart.php): failed to open stream: No such file or directory in /Users/elliott/Sites/www/squirrelcart/config.php on line 75

Warning: main(): Failed opening './squirrelcart/cart.php' for inclusion (include_path='.:/usr/local/php/lib/php') in /Users/elliott/Sites/www/squirrelcart/config.php on line 75

Fatal error: Call to undefined function: get_image() in /Users/elliott/Sites/www/squirrelcart/index.php on line 18

This is very frustrating. I do understand file paths, but I don't understand why you need a $site_isp_root and a $site_www_root.

One more thing that just makes me feel like this company is messed up. Is I create a username and password for the Squirrelcart support site. Next I must create a username and password for this forum and then go back and put an email address in the support site. Last is I want to use the Help desk I have to create another username and password. I that messed up or what?

Jamie
June 16th, 2005, 06:09 PM
Hello,

I believe we already assited you with this yesterday, but for the benefit of others...

"." is not valid for $site_isp_root. This variable needs to be set to the full server specific path to your installation folder. The path shows up in your error message:
/Users/elliott/Sites/www

That is the correct setting for $site_isp_root in this case.

This is very frustrating. I do understand file paths, but I don't understand why you need a $site_isp_root and a $site_www_root.
Squirrelcart needs to know this information. $site_isp_root is needed so we can include files using the full path to the file. This is the only 100% reliable way to include a file in PHP to ensure that it will work with all server configurations. $site_www_root is needed so that Squirrelcart can generate the proper URLs for links and form actions.

One more thing that just makes me feel like this company is messed up. Is I create a username and password for the Squirrelcart support site. Next I must create a username and password for this forum and then go back and put an email address in the support site. Last is I want to use the Help desk I have to create another username and password. I that messed up or what?

No, it is not "messed up". We did not write vBulletin (this forum software). It has a separate user account system then Squirrelcart does. It is not practical to sync the two. It is not unusual to have to register to use a forum. The reason you also need to add your forum email address to your profile is so that you can gain access to the sections of the forum that are for Squirrelcart customers only. This is also there so that you can optionally add up to 3 different forum accounts for the purpose of allowing others in your company access to the forums.