jgarite Posted November 4, 2006 Posted November 4, 2006 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 :'(
jgarite Posted November 4, 2006 Author Posted November 4, 2006 Please...I really need help...I have a deadline on this project and it seems I bit off more than I can chew... :'(
bill110 Posted November 4, 2006 Posted November 4, 2006 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
jgarite Posted November 5, 2006 Author Posted November 5, 2006 I think this contribution will fix both of your issueshttp://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... :'(
jgarite Posted November 5, 2006 Author Posted November 5, 2006 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>
ammmze Posted November 5, 2006 Posted November 5, 2006 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.
jgarite Posted November 5, 2006 Author Posted November 5, 2006 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?
jgarite Posted November 5, 2006 Author Posted November 5, 2006 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?
ammmze Posted November 5, 2006 Posted November 5, 2006 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>
jgarite Posted November 5, 2006 Author Posted November 5, 2006 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
ammmze Posted November 5, 2006 Posted November 5, 2006 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
jgarite Posted November 5, 2006 Author Posted November 5, 2006 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?
ammmze Posted November 5, 2006 Posted November 5, 2006 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
jgarite Posted November 5, 2006 Author Posted November 5, 2006 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
jgarite Posted November 5, 2006 Author Posted November 5, 2006 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
ammmze Posted November 5, 2006 Posted November 5, 2006 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
jgarite Posted November 5, 2006 Author Posted November 5, 2006 oh, i see. i understand what your saying now...
ammmze Posted November 5, 2006 Posted November 5, 2006 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', '********');
jgarite Posted November 5, 2006 Author Posted November 5, 2006 ok, they werent defined so i plugged in what needed to go in, but it still has the same error
ammmze Posted November 5, 2006 Posted November 5, 2006 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
Recommended Posts
Archived
This topic is now archived and is closed to further replies.