Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Install problems...


westberlin

Recommended Posts

running install.php i get this error message:

 

Warning: main(includes/functions/general.php) [function.main]: failed to open stream: No such file or directory in d:wampp1htdocsdevelopmentcataloginstallincludesapplication.php on line 28

 

Fatal error: main() [function.require]: Failed opening required 'includes/functions/general.php' (include_path='wampp1phppear') in d:wampp1htdocsdevelopmentcataloginstallincludesapplication.php on line 28

 

I know that application.php in "d:wampp1htdocsdevelopmentcataloginstallincludes" exists.

Could someone help me please?

contact me via ICQ: 303475861

Link to comment
Share on other sites

Your PHP include path is missing the current directory, I've never used php on windows but my guess is you need to change the include_path in php.ini to

include_path='.;wampp1phppear'

or something similar.

 

Hope this helps,

Rob

Link to comment
Share on other sites

Seeing the D: in your post has me guessing that you're running Windows.

 

How do you have your windows server setup?

 

Check out this post here for some more information on the setup under windows: http://www.oscommerce.com/forums/viewtopic.php?t=38964

 

Let me know if you're still having problems after this.

 

Also, if you have any specific questions with setting up an Windows webserver or osC under a windows environment, feel free to post in forum and I'll help where I can.

 

Cheers,

Tony

"The price of success is perseverance. The price of failure comes much cheaper."

Link to comment
Share on other sites

Hey Toni,

 

the vitrtuell server works fine, thx...

But this was not the solution for my problem... :(

 

Alter d:cataloginstallincludesapplication.php Line 28-31 to this:

 

require('D:/catalog/includes/functions/general.php');

require('D:/catalog/includes/functions/database.php');

require('D:/catalog/includes/functions/output.php');

require('D:/catalog/includes/functions/html_output.php');

 

I get it more to work...

But now he asking me for "D:/catalog/includes/functions/output.php"

I've looked into D:/catalog/includes/functions/ and i found NO output.php, could you please tell me, what to do?

contact me via ICQ: 303475861

Link to comment
Share on other sites

How do you access your site?

 

http://localhost/

 

or some other method?

 

Reason I ask this, is because you should only need relative references, and not the actual references (d:blahblah) that you have shown.

"The price of success is perseverance. The price of failure comes much cheaper."

Link to comment
Share on other sites

running http://osc.hn/install/install.php

 

i get the errormessage*

 

*Warning: main(D:/catalog/includes/functions/output.php) [function.main]: failed to open stream: No such file or directory in d:cataloginstallincludesapplication.php on line 30

 

Fatal error: main() [function.require]: Failed opening required 'D:/catalog/includes/functions/output.php' (include_path='wampp1phppear') in d:cataloginstallincludesapplication.php on line 30

 

documentRoot for http://osc.hn is d:/catalog

osc.hn is the virtuellserver i have set for osc as you recommended in the tutorial...

 

But the mainproblem now is, where is the output.php??

contact me via ICQ: 303475861

Link to comment
Share on other sites

I haven't had a look at the install script in a while, but I figure it's probably looking for html_output.php. See if you can change what you have to this filename.

 

Let me know how you go...

 

Cheers,

Tony

"The price of success is perseverance. The price of failure comes much cheaper."

Link to comment
Share on other sites

ok, i out-commentated Line 30 in application.php

 

>>

 

require('D:/catalog/includes/functions/general.php');

require('D:/catalog/includes/functions/database.php');

//require('D:/catalog/includes/functions/output.php');

require('D:/catalog/includes/functions/html_output.php');

 

<<

 

But don't think that it is a good idea!?

 

In addition i changed all pathes into D:/catalog/....

Could i be that i have forgotten to change a config-file or something else?

I ve make no chances in the any script, i just startet osc.hn/install/install.php...

 

Now i get a new problem:

 

Fatal error: Call to undefined function: osc_draw_box_heading() in D:cataloginstalltemplatesmain_pageboxesnavigation.php on line 13

 

This is the hole content of navigation.php:

 

<?php

/*

 $Id: navigation.php,v 1.1 2002/01/02 13:02:39 hpdl Exp $



 osCommerce, Open Source E-Commerce Solutions

 http://www.oscommerce.com



 Copyright (c) 2002 osCommerce



 Released under the GNU General Public License

*/



 echo osc_draw_box_heading('Navigation', true);



 $box_contents = array(array('title' => 'Welcome',

                             'link' => 'index.php'),

                       array('title' => 'Installation',

                             'link' => 'install.php'),

                       array('title' => 'Upgrade',

                             'link' => 'upgrade.php')

                       );



 echo osc_draw_box_contents($box_contents);

?>

contact me via ICQ: 303475861

Link to comment
Share on other sites

<snip>

But don't think that it is a good idea!?

It's not if you plan on moving the configuration to another machine or move the documentroot of your webserer around.

 

What is the value of include_path in your php.ini?

 

PHP looks for include files, in all the directories in your include path:

so if your php.ini says:

 

include_path="c:php_includes;d:php_includes"

 

and your .php file says:

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

 

It going to check for "c:php_includesincludesfunctionsgeneral.php" and if that does not exist it looks for "d:php_includesincludesfunctionsgeneral.php".

 

For osC, and many other php apps, to function your include_path needs to include the current directory ".".

 

Hope this helps,

Rob

Link to comment
Share on other sites

westberlin wrote:  

 

<snip>  

But don't think that it is a good idea!?  

 

Meaning, i don't knwo if it is good, when i out-commend the output.php file...

 

OK, never the less i chanced my include path from

 

D:wampp1phppear

 

to

 

".;D:wampp1phppear"

 

As you see, now with >"< and a >;<

 

changing application and so on back to original state, and i get NO error including messages - IT WORKS ! :D

 

But never the less i've still the same problem with the unkown function:

 

Fatal error: Call to undefined function: osc_draw_box_heading() in D:cataloginstalltemplatesmain_pageboxesnavigation.php on line 13

 

??? :? :?: :?: :?:

contact me via ICQ: 303475861

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...