Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Am I alone?


jhkings

Recommended Posts

Hi everyone,

 

I haven't work with OSCommerce for a while now, but lately a friend of mine wanted me to put something quick and simple together for him to run an online store. I thought I give OSCommerce another try. As it turned out, it's not quick and simple at all.

I got the latest download (2.2 MS2 051113) and tried the install. Right off the bat I get this error:

 

Warning: main(includes/functions/general.php): failed to open stream: No such file or directory in /srv/www/htdocs/catalog/install/includes/application.php on line 22

 

Fatal error: main(): Failed opening required 'includes/functions/general.php' (include_path='/usr/share/php') in /srv/www/htdocs/catalog/install/includes/application.php on line 22

 

Looking at the code in application.php this is what I see

 

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

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

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

 

The includes folder is not there, but the functions is. And the reqired files are in function folder. I removed the reference to includes folder and it got me along a little bit more. Again I am faced with

 

Warning: main(templates/main_page/header.php): failed to open stream: No such file or directory in /srv/www/htdocs/catalog/install/templates/main_page.php on line 31

 

Fatal error: main(): Failed opening required 'templates/main_page/header.php' (include_path='/usr/share/php') in /srv/www/htdocs/catalog/install/templates/main_page.php on line 31

 

It seems like the folder structure has changed and all the references are off. I tried changing the setting in includes/configure.php but then it breaks other areas.

 

I gone through the forum and knowledge base and install documentation, but it seems like everyone got it to work out of the box. Am I the only one having this problem?

Link to comment
Share on other sites

Yes, it should work 'out of the box'. Try uploading the files again, using a good FTP programme. Often 'free' FTP programmes don't manage the upload correctly and you don't get all the files uploaded that you should have.

 

Vger

Link to comment
Share on other sites

Yes, it should work 'out of the box'. Try uploading the files again, using a good FTP programme. Often 'free' FTP programmes don't manage the upload correctly and you don't get all the files uploaded that you should have.

 

Vger

 

Hi Vger!

 

Thanks for the reply. I copied the files directly over, so no chance of FTP messing it up. I looked that the compressed package and the layout is the same. Can you do me a favor? Can you take a look at the compressed package and see for yourself? If possible, if you can have a fresh install on some test machine that would be great. Because I poured through the forum and everything and no one has the same problem. I am very curious!

Thanks for your help!

Link to comment
Share on other sites

Hi Vger!

 

Thanks for the reply. I copied the files directly over, so no chance of FTP messing it up. I looked that the compressed package and the layout is the same. Can you do me a favor? Can you take a look at the compressed package and see for yourself? If possible, if you can have a fresh install on some test machine that would be great. Because I poured through the forum and everything and no one has the same problem. I am very curious!

Thanks for your help!

@Vger, John:

Tried both the US download as the Europe download for a test installation and both went without problem.

Link to comment
Share on other sites

@Vger, John:

Tried both the US download as the Europe download for a test installation and both went without problem.

 

 

I wonder....I'm using OpenSuSE 10.0. Are the references to the folder are from the htdoc root? If it is, then it would make sense. But maybe SuSE are not translating it as an aboslute path, rather relative path.

Has anyone tried OSCommerce on OpenSuSE?

Thank you everyone for helping out!

Link to comment
Share on other sites

I wonder....I'm using OpenSuSE 10.0. Are the references to the folder are from the htdoc root? If it is, then it would make sense. But maybe SuSE are not translating it as an aboslute path, rather relative path.

Has anyone tried OSCommerce on OpenSuSE?

Thank you everyone for helping out!

 

Update: I installed CentOS and everything works fine. Thanks for your input!

Link to comment
Share on other sites

  • 1 month later...

To Run OsCommerce locally on your SUSE 10 Linux distribution, and you are getting the "Warning: main(includes/functions/general.php): failed to open stream: No such file or directory in /srv/www/htdocs/catalog/install/includes/application.php on line 22" error

 

Do the following:

 

in etc/php.ini

 

change:

 

include_path = "/usr/share/php"

 

to:

 

include_path = ".:/usr/share/php"

 

Remember to stop and restart Apache when you're done!

 

This works for me today - I will update if I find any problems

 

Good Luck

Gareth

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...