Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Is there a way to hide error messages?


yatahaze

Recommended Posts

Posted

I'm getting an error on this one page, but it still works. Is there a way to hide error messages on that specific page with some php code or something?

Posted

Instead of hiding it you should fix whatever is causing it...

Posted

Warning: main(includes/configure.php): failed to open stream: No such file or directory in C:\Inetpub\wwwroot\catalog\includes\application_top.php on line 29

 

Fatal error: main(): Failed opening required 'includes/configure.php' (include_path='.;c:\php4\pear') in C:\Inetpub\wwwroot\catalog\includes\application_top.php on line 29

 

Welcome, Please Sign In

 

It has to do with this post. I'm trying to make a login page on another site (different domain, different directory on the server).

 

When I use this code (in login.php on the other site) I get the errors:

	require('includes/application_top.php');
require_once('http://shop.mysite.net/includes/application_top.php');

 

When I use this code (in login.php on the other site) I get no errors, but after logging in I have to login a second time once it redirects me to the actual osc site:

	require('includes/application_top.php');

Posted
Warning: main(includes/configure.php): failed to open stream: No such file or directory in C:\Inetpub\wwwroot\catalog\includes\application_top.php on line 29

 

Fatal error: main(): Failed opening required 'includes/configure.php' (include_path='.;c:\php4\pear') in C:\Inetpub\wwwroot\catalog\includes\application_top.php on line 29

 

 

Ok

Lets try this

 

Oppen the file catalog\includes\application_top.php

and look for line 29

 

it should be require('includes/application_top.php');

 

and change it to

 

require('application_top.php');

at the end of the day the code will be good

Posted

Ok well, (include_path='.;c:\php4\pear') was the problem. I dont even have this folder on my computer, but I made it and put a copy of my includes folder into it, now im getting no errors. I don't have a clue where it got c:\php4\pear from.

Posted

Not the one I'm using now, but the server is here. I never gave it that address. I dont know where it came from because I never even had a folder named php4. I'm trying to search to see where in the files that info is saved... do you know?

Posted

include_path is a php.ini setting, there are 2 actually in the same file. According to my php.ini file, both are not c:\php4\pear.

Posted
Not the one I'm using now, but the server is here. I never gave it that address. I dont know where it came from because I never even had a folder named php4. I'm trying to search to see where in the files that info is saved... do you know?

 

 

well the php4 folder is created when you instal PHP4 on your computer or on the server

at the end of the day the code will be good

Posted

My PHP folder is C:\php though. The include paths that are set inside my ini folder link to c:\php and not c:\php4.

Posted

Got me going pretty far, im so close... I got all the links and everything working in sort of a different way. I have a virtual directory mapped in the other site that just links to the oscommerce catalog folder. I have alternate application_top/configure/filenames php files for the alternate login/create_account pages that I made where I stripped out the columns and headers.

 

The problem I'm having now is, when I login from the other site, it redirects to the proper url, but it doesnt log me in. I'm kind of stumped as to what the problem is. I'm wondering if I use MySQL sessions instead of files it will work... Edit: That's out of the questions, everyones shopping cart is empty if I do that.

Posted

In my custom filenames.php, if I change the filename for login.php to my alternate file, it logs me on... but it uses the other url. When I click on basically anything on the page it switches to the correct url, and I'm no longer logged in.

Archived

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

×
×
  • Create New...