Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Total Newbie...Need Lots of Help


jgarite

Recommended Posts

Posted

Okay, I am totally new to this program. I will be asking for alot of help so I would appreciate anyone's help. First of all, I added a product and when it showed up in the What's New? section, it has no price. I did not set the price in the product area, but rather in the product attributes area because I need three sizes with their own individual prices. Am I doing this wrong?

 

Second, when I click on the product I get the following message "No input file specified."

How do I fix this?

 

There will be more questions as I go along, but I'm pretty much stuck and can't go any further until I get this fixed. Please Help :'(

Posted

Please...I really need help...I have a deadline on this project and it seems I bit off more than I can chew... :'(

Posted
Okay, I am totally new to this program. I will be asking for alot of help so I would appreciate anyone's help. First of all, I added a product and when it showed up in the What's New? section, it has no price. I did not set the price in the product area, but rather in the product attributes area because I need three sizes with their own individual prices. Am I doing this wrong?

 

Second, when I click on the product I get the following message "No input file specified."

How do I fix this?

 

There will be more questions as I go along, but I'm pretty much stuck and can't go any further until I get this fixed. Please Help :'(

I think this contribution will fix both of your issues

http://www.oscommerce.com/community/contributions,1716

My Contributions

 

Stylesheet With Descriptions Glassy Grey Boxtops Our Products Meta Tags On The Fly

Password Protect Admin

"No matter where you go....There you are" - Buccaroo Bonsai

Posted
I think this contribution will fix both of your issues

http://www.oscommerce.com/community/contributions,1716

 

Ok, I installed this contribution and followed the instructions but now i get the following error:

 

 

Warning: main(includes/functions/featured.php): failed to open stream: No such file or directory in /data/8/0/88/161/577324/user/589105/htdocs/catalog/includes/application_top.php on line 446

 

Fatal error: main(): Failed opening required 'includes/functions/featured.php' (include_path='.:/usr/services/vux/lib/php') in /data/8/0/88/161/577324/user/589105/htdocs/catalog/includes/application_top.php on line 446

 

here is the code for lines 445,446,447

 

  // auto expire featured products
require(DIR_WS_FUNCTIONS . 'featured.php');
tep_expire_featured();

 

I didn't appear to get this error prior to installing/configuring the contribution you suggested... :'(

Posted

ok, that was a silly comment, i forgot to upload the featured.php file, thats taken care of.

 

next issue... when i refreshed the page that error went away but was followed by this one:

 

 

 

Parse error: syntax error, unexpected T_STRING in /data/8/0/88/161/577324/user/589105/htdocs/catalog/includes/languages/english/index.php on line 32

Again here is the code.

 <td rowspan="2" align="left" valign="top">php require(DIR_WS_BOXES . 'featured.php'); </td>

Posted
ok, that was a silly comment, i forgot to upload the featured.php file, thats taken care of.

 

next issue... when i refreshed the page that error went away but was followed by this one:

Again here is the code.

 <td rowspan="2" align="left" valign="top">php require(DIR_WS_BOXES . 'featured.php'); </td>

 

change it to this

<td rowspan="2" align="left" valign="top"><?php require(DIR_WS_BOXES . 'featured.php'); ?></td>

 

Are you sure that is the code for /includes/languages/english/index.php you most likely should not have a line like that in that file.

Posted

i did that and it did not work, same error

 

Also, I still have this question:

When I click on the product I get the following message "No input file specified."

How do I fix this?

Posted
change it to this

<td rowspan="2" align="left" valign="top"><?php require(DIR_WS_BOXES . 'featured.php'); ?></td>

 

Are you sure that is the code for /includes/languages/english/index.php you most likely should not have a line like that in that file.

 

I have created a table in the file for my layout can i send you a pm so u can see what i am talking about and maybe tell me if i am going about this the wrong way?

Posted
I have created a table in the file for my layout can i send you a pm so u can see what i am talking about and maybe tell me if i am going about this the wrong way?

 

sure send it over

 

now that you say that, i know what ur trying to do change that line to

<td rowspan="2" align="left" valign="top">' .  require(DIR_WS_BOXES . \'featured.php\') . '</td>

Posted

got the following error now:

Warning: main(includes/boxes/featured.php ): failed to open stream: No such file or directory in /data/8/0/88/161/577324/user/589105/htdocs/catalog/includes/languages/english/index.php on line 38

 

Fatal error: main(): Failed opening required 'includes/boxes/featured.php</td> </tr> <tr> <td> </td> </tr> </table></td> </tr> </table>' (include_path='.:/usr/services/vux/lib/php') in /data/8/0/88/161/577324/user/589105/htdocs/catalog/includes/languages/english/index.php on line 38

Posted
got the following error now:

Warning: main(includes/boxes/featured.php ): failed to open stream: No such file or directory in /data/8/0/88/161/577324/user/589105/htdocs/catalog/includes/languages/english/index.php on line 38

 

Fatal error: main(): Failed opening required 'includes/boxes/featured.php</td> </tr> <tr> <td> </td> </tr> </table></td> </tr> </table>' (include_path='.:/usr/services/vux/lib/php') in /data/8/0/88/161/577324/user/589105/htdocs/catalog/includes/languages/english/index.php on line 38

 

Try that

<td rowspan="2" align="left" valign="top">' .  require(DIR_WS_BOXES . "featured.php")  . '</td>

 

EDIT: Actually the other code did work its looking for a different file have you uploaded includes/boxes/featured.php

Posted

OMG...Network SOlutions is doing something to their servers, it wont access the databse so nwo I cant see if it works....did u get my PM?

Posted
OMG...Network SOlutions is doing something to their servers, it wont access the databse so nwo I cant see if it works....did u get my PM?

 

yea i got ur PM make sure your address is still correct, i just had a problem with mine where the domain got switched over to another domain...i think it has somthing to do with osCommerce's cache but thats just a guess

Posted
Try that

<td rowspan="2" align="left" valign="top">' .  require(DIR_WS_BOXES . "featured.php")  . '</td>

 

EDIT: Actually the other code did work its looking for a different file have you uploaded includes/boxes/featured.php

 

yes. i noticed that, but it is in fact there

Posted
yea i got ur PM make sure your address is still correct, i just had a problem with mine where the domain got switched over to another domain...i think it has somthing to do with osCommerce's cache but thats just a guess

 

i dont understand what you mean.... :blink:

 

this is the error...is it something in the file, it does say a file and a line, but it appears to be correct:

 

Warning: mysql_connect(): Lost connection to MySQL server during query in /data/8/0/88/161/577324/user/589105/htdocs/catalog/includes/functions/database.php on line 19

Unable to connect to database server!

 

 

the line is:

 

	  $$link = mysql_connect($server, $username, $password);

 

am i supposed to have my information in there as the database user? i made a chagne to that file, but i dont remember what change it was...but i have a backup

Posted
i dont understand what you mean.... :blink:

 

it doesnt matter i just figured it out, i was just on the wrong tab, i was viewing your site and not mine and that was why i thought the domain had changed on me.

 

But i have had a problem once where one of my clients who has an osCommerce site at one point the links on his site were going to another persons osCommerce site, and I believe that had somthing to do with how osCommerce caches things, it stores it in /tmp/ and somehow that other site and my clients site had gotten mixed together and caused problems, so I had to clear our cache and actually i just turned the cache off and it fixed the problem for us and then a few hours later we had gotten a call from the other site owner about this so I had him turn off osCommerce's cache features and everything was back to normal again

Posted
i dont understand what you mean.... :blink:

 

this is the error...is it something in the file, it does say a file and a line, but it appears to be correct:

 

Warning: mysql_connect(): Lost connection to MySQL server during query in /data/8/0/88/161/577324/user/589105/htdocs/catalog/includes/functions/database.php on line 19

Unable to connect to database server!

the line is:

 

	  $$link = mysql_connect($server, $username, $password);

 

am i supposed to have my information in there as the database user? i made a chagne to that file, but i dont remember what change it was...but i have a backup

 

all of that should be defined in the includes/configure.php file

$server = DB_SERVER

$username = DB_SERVER_USERNAME

$password = DB_SERVER_PASSWORD

make sure those three are defined in includes/configure.php

like this except replace localhost and the *'s with the real information, the localhost might be the same

  define('DB_SERVER', 'localhost'); // eg, localhost - should not be empty for productive servers
 define('DB_SERVER_USERNAME', '*******');
 define('DB_SERVER_PASSWORD', '********');

Posted

ok, they werent defined so i plugged in what needed to go in, but it still has the same error

Posted
ok, they werent defined so i plugged in what needed to go in, but it still has the same error

Ok well you should check the others as well

  define('DB_DATABASE', '*******');
 define('USE_PCONNECT', 'false'); // use persistent connections?
 define('STORE_SESSIONS', 'mysql'); // leave empty '' for default handler or set to 'mysql'

 

DB_DATABSE is the name of the database a lot of times it is the same as the DB_SERVER_USERNAME

Archived

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

×
×
  • Create New...