Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

fatal error global so i patched the files didnt help what next?


kellespsr

Recommended Posts

been trying to install for two days read many posts turned on globals first in php.ini no go

turned back off installed patch files from forum member no go got 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

made sure files had right permissions

made sure dirs had right permissions

checked both config php files for right permissions

read more posts tried many things

what next?

thanks kellespsr

ps apache2 ,php4+,mysql,linux suse 10

other php programs work phpbb2 for example so sql server works

Im lost help

Link to comment
Share on other sites

I can't help you. Sorry. But..

 

There are two things you said that bug me...

 

1. include_path='/usr/share/php'

and

2. /srv/www/htdocs/catalog/install/includes/application.php on line 22

 

this looks like two different servers or you have loaded into a shared area that is not setup and php is looking for the script somewhere else.

 

Is this your own server? I ask because hosters do not usually let folks monkey with php.ini.

 

Anyway, I bought a Net Integrator server a couple of years ago and had basically the same type trouble you are describing. osCommerce just would not run. It had to do with some sort of global thing. Anyway I called the company and they basically told me to hire a programmer to straighten it out.

 

I asked if this was an apache server...Yes.

I asked it had php ver xxx... Yes.

I asked did it have MySQL ver xxx... Yes.

Why doesn't osCommerce run on your server when it runs just fine on all others I have ever used.

 

They said hire a programmer. I'm P.O'd.

 

Can I get may $1700 back. No. Sorry. Hire a programmer.

 

I hope you are not in this situation.

 

I have loaded osCommerce on serveral servers and never had to fool with anything outside the osC script to get it to work.

 

Good Luck

How do you know when you know what you want to do for the rest of your life?

Link to comment
Share on other sites

I can't help you. Sorry. But..

 

There are two things you said that bug me...

 

1. include_path='/usr/share/php'

and

2. /srv/www/htdocs/catalog/install/includes/application.php on line 22

 

this looks like two different servers or you have loaded into a shared area that is not setup and php is looking for the script somewhere else.

 

Is this your own server? I ask because hosters do not usually let folks monkey with php.ini.

 

Anyway, I bought a Net Integrator server a couple of years ago and had basically the same type trouble you are describing. osCommerce just would not run. It had to do with some sort of global thing. Anyway I called the company and they basically told me to hire a programmer to straighten it out.

 

I asked if this was an apache server...Yes.

I asked it had php ver xxx... Yes.

I asked did it have MySQL ver xxx... Yes.

Why doesn't osCommerce run on your server when it runs just fine on all others I have ever used.

 

They said hire a programmer. I'm P.O'd.

 

Can I get may $1700 back. No. Sorry. Hire a programmer.

 

I hope you are not in this situation.

 

I have loaded osCommerce on serveral servers and never had to fool with anything outside the osC script to get it to work.

 

Good Luck

 

 

That is soooo ironic, about your post. I've posted something similar about the same type of problem.... knowing it had to be them..... and NOT you... My problem was with my hosting company... and I actually have a few localhosts... So I tested my stuff. I tried it on other computers... Different ip's ,,, whatever. .. They work fine on my end.. why aren't they working fine on your end? ...... I'm asking them that.

 

 

 

Kevin

"What I didn't know yesterday, I know today & will remember tomorrow"

(By Kwalker)

 

What do you see when you open up the tep_database-pr2.2-CVS.pdf file that came with your osCommerce download?

Link to comment
Share on other sites

I can't help you. Sorry. But..

 

There are two things you said that bug me...

 

1. include_path='/usr/share/php'

and

2. /srv/www/htdocs/catalog/install/includes/application.php on line 22

 

this looks like two different servers or you have loaded into a shared area that is not setup and php is looking for the script somewhere else.

 

Is this your own server? I ask because hosters do not usually let folks monkey with php.ini.

 

Anyway, I bought a Net Integrator server a couple of years ago and had basically the same type trouble you are describing. osCommerce just would not run. It had to do with some sort of global thing. Anyway I called the company and they basically told me to hire a programmer to straighten it out.

 

I asked if this was an apache server...Yes.

I asked it had php ver xxx... Yes.

I asked did it have MySQL ver xxx... Yes.

Why doesn't osCommerce run on your server when it runs just fine on all others I have ever used.

 

They said hire a programmer. I'm P.O'd.

 

Can I get may $1700 back. No. Sorry. Hire a programmer.

 

I hope you are not in this situation.

 

I have loaded osCommerce on serveral servers and never had to fool with anything outside the osC script to get it to work.

 

Good Luck

Link to comment
Share on other sites

When you turned on Register Globals in php.ini did you shut down and reboot Apache afterwards?

 

Was this the main php.ini, or was it a local one you had access to? If it was a local one your hosts may have measures in place to override anyone trying to turn on Register Globals.

 

Despite what you say about setting the right permissions that error indicates that either:

a. The right permissions were not set

b. The files/folders simply were not there.

 

Vger

 

been trying to install for two days read many posts turned on globals first in php.ini no go

turned back off installed patch files from forum member no go got 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

made sure files had right permissions

made sure dirs had right permissions

checked both config php files for right permissions

read more posts tried many things

what next?

thanks kellespsr

ps apache2 ,php4+,mysql,linux suse 10

other php programs work phpbb2 for example so sql server works

Im lost help

Link to comment
Share on other sites

  • 2 weeks later...

Had the same problem and then figured out that if I edited the general.php file and put in an absolute path to the application.php file, the install would continue.

 

Fixed it by adding the path to the install folder to the php.ini file and restarting apache.

 

In php.ini change:

include_path = "/usr/share/php"

to:

include_path = "/usr/share/php:/srv/www/htdocs/catalog/install"

 

Looks like this may be a SUSE 10 specific issue, since I am also running that distribution.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...