Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Php Install Problems


HershelSR

Recommended Posts

Posted

Hi, newbie here. :)

 

We have succesfully installed Php on our Win 2K / IIS server. It appears that it works (I do have PhpCollab running) but when I attempt to view the install docs for osCommerce, I get this:

 

Notice: Undefined index: language in E:InetpubDomainsxxx.comtep-docsdocumentationincludesglobal.php on line 15

 

Notice: Undefined variable: language in E:InetpubDomainsxxx.comtep-docsdocumentationincludesglobal.php on line 23

 

Warning: main(languages/.php) [function.main]: failed to create stream: No such file or directory in E:InetpubDomainsxxx.comtep-docsdocumentationincludesglobal.php on line 23

 

Fatal error: main() [function.main]: Failed opening required 'languages/.php' (include_path='.;c:php4pear') in E:InetpubDomainsxxx.comtep-docsdocumentationincludesglobal.php on line 23

 

Am I missing perhaps a Php module?

 

Thank you,

Hershel Robinson

Posted

What version of PHP did you install?

 

What version of osCommerce is it?

 

Can you view any other php files on your server. You said that you have phpCollab installed. Does this work correctly?

 

If you have osCommerce 2.2, it might just be a bug as it's still in development. Have you tried the latest copy of 2.2?

 

I've also noticed in 2.2 that the documentation isn't fully finished yet and I reckon it won't be until 2.2 get's released proper.

 

Regards

Keith Burke 8)

Ireland

Have you ever stood and stared at it?

Marvelled at its beauty. Its genius.

Billions of people just living out their lives...

Oblivious...

Posted

The Php was installed last week using the latest version.

 

osCommerce was installed this week using the 2.2 snapshot of a few days ago.

 

phpCollab does appear to be working.

 

Could there be an issue with osCommerce requiring rgister_globals to be On and it being Off by default in my Php install?

 

Thanks for your help,

Hershel

Posted
Could there be an issue with osCommerce requiring rgister_globals to be On and it being Off by default in my Php install?
Certainly. register_globals is now off by default in recent PHP versions.

 

You don't have to enable it for all sites, though (admittedly a bad idea). Just add a .htaccess at the root of osCommerce:

php_flag register_globals on

Actually, my whole .htaccess is:

php_flag register_globals on

RewriteEngine on

RewriteRule   ^$  /catalog/catalog/  [R]

DirectoryIndex default.php

Christian Lescuyer

Posted
register_globals is now off by default in recent PHP versions.

 

You don't have to enable it for all sites, though (admittedly a bad idea). Just add a .htaccess at the root of osCommerce:

 

Thanks for the tip, but .htaccess only works for Apache and we run IIS. I can change this flag globally however.

 

Can I ask a potentially stupid newbie question, however? If register_globals=on is a potential security risk, why does osCommerce still require it?

 

Thanks,

Hershel

Posted

In the beginning, a long time ago, men...

 

Oh, well. First there wasn't the emphasis on security we have now. Second, PHP was initially written to jazz up home pages, not to support business applications. So register_globals was on because that made things easy.

 

Now... it's on the todo list. Check workboard entry #49: http://www.oscommerce.com/community/workboard

Christian Lescuyer

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...