Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Pre-install failure


Guest

Recommended Posts

Posted

.

 

Hello everyone,

 

I have unzipped my version of OSC and created a blank MySQL database. I have made sure that the directory has read/write/execute availability and PHP is installed and working with the globals property on.

 

when i use http://localhost/shopping/instal/install.php I get this error

 

Warning: require(templates/main_page/header.php) [function.require]: failed to open stream: No such file or directory in c:\InetPub\WWWRoot\shopping\install\templates\main_page.php on line 31

 

Fatal error: require() [function.require]: Failed opening required 'templates/main_page/header.php' (include_path='./includes/;c:/inetpub/wwwroot/shopping/') in c:\InetPub\WWWRoot\shopping\install\templates\main_page.php on line 31

 

I have read on various other forums that I need to alter my php.ini file to reflect the include directories of catalog and install but I have done this too :(

 

BTW, I am using Windows 2003 Server, MySQL, PHP

 

Can someone please shed some light on this as I would really like to start using this program :D

 

.

Posted

That error indicates that the 'templates' folder does not have correct permissions - which is why files within it cannot be accessed.

 

Vger

Posted
That error indicates that the 'templates' folder does not have correct permissions - which is why files within it cannot be accessed.

 

Vger

 

.

 

Erm, what permission does the templates folder need to have? because it is on a local development server I have given Administrator, Everyone and System "full control" (don't know what the CHMOD equivalent is) so it should be read, write and executable :(

 

.

Posted

Your problem is using a Windows server. They are a nuisance to use and especially so when you set them up offline, as you don't have server administrators to set them up correctly for you.

 

The folders all need permissions equivelant to 755, or 777 (which is full permissions).

 

Vger

Posted
Your problem is using a Windows server. They are a nuisance to use and especially so when you set them up offline, as you don't have server administrators to set them up correctly for you.

 

The folders all need permissions equivelant to 755, or 777 (which is full permissions).

 

Vger

 

 

Actually, I think this may be a path problem, not a permissions problem. Try making your include path:

 

.;.\includes;c:\inetpub\wwwroot\shopping\install

 

You need the "install" part. If it is permissions problems, then good luck. As Vger said, Windows servers can be an absolute bear to set up correctly.

Contributions

 

Discount Coupon Codes

Donations

Posted
Actually, I think this may be a path problem, not a permissions problem. Try making your include path:

 

.;.\includes;c:\inetpub\wwwroot\shopping\install

 

You need the "install" part. If it is permissions problems, then good luck. As Vger said, Windows servers can be an absolute bear to set up correctly.

 

.

 

Change the following in "main_page.php" (found in catalog\install\templates\main_page.php) change the following "require()" as follows;

 

CHANGE:

require('templates/main_page/header.php ');

require('templates/pages/'. $page_contents);

require('templates/main_page/footer.php ');

 

TO:

require('./templates/main_page/header.php ');

require('./templates/pages/'. $$page_contents);

require('./templates/main_page/footer.php ');

 

and in the script "application.php" (found in catalog\install\includes\application.php) change the following "require()" as follows;

 

CHANGE

require('includes/functions/general.php ');

require('includes/functions/database.php ');

require('includes/functions/html_output.php ');

 

TO:

require('./includes/functions/general.php ');

require('./includes/functions/database.php ');

require('./includes/functions/html_output.php ');

 

This worked fine, but now I am getting this error when I click on the Administration Tool button after setup

 

Fatal error: Call to undefined function tep_get_languages() in c:\InetPub\WWWRoot\shopping\admin\index.php on line 58

 

Any ideas?

 

Thanks,

 

.

Archived

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

×
×
  • Create New...