Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

I missed something


Guest

Recommended Posts

Posted
Parse error: parse error in /mnt/web_g/d47/s36/b01f2394/www/store/nfoscomm/catalog/admin/includes/filenames.php on line 43

 

Warning: Cannot send session cookie - headers already sent by (output started at /mnt/web_g/d47/s36/b01f2394/www/store/nfoscomm/catalog/admin/includes/filenames.php:43) in /mnt/web_g/d47/s36/b01f2394/www/store/nfoscomm/catalog/admin/includes/functions/sessions.php on line 67

 

Warning: Cannot send session cache limiter - headers already sent (output started at /mnt/web_g/d47/s36/b01f2394/www/store/nfoscomm/catalog/admin/includes/filenames.php:43) in /mnt/web_g/d47/s36/b01f2394/www/store/nfoscomm/catalog/admin/includes/functions/sessions.php on line 67

 

I have tried to load the salemaker contribution & I thought I was all done, until I tried to go into the admin system to try to play around with it. If anyone has any guidance on where to direct me to fix these errors, please let me know!

 

Thanks!

Posted

xtra space at the end of the file filenames.php.

 

Delete all the lines after the last ?>

9 times out of 10 its a PEBCAK Error (Problem exists between chair and keyboard)

 

Replace that and you're fine...

Posted

If you go into catalog/admin/includes/filenames.php open up filenames.php.

And see if you have a few return carriages after the last ?> tag.

Delete them so there is no spaces.

 

See if that works.

Posted

- UPDATE -

 

I've gone through every file twice and I've fixed all the extra lines at the bottom of the files & I'm still getting the same error. Anyone else got any suggestions?

Posted
Parse error: parse error in /mnt/web_g/d47/s36/b01f2394/www/store/nfoscomm/catalog/admin/includes/filenames.php on line 43

 

Do you happen to have an apostrophe on line 43 that does not have a back-slash in front of it? (i.e. What\'s new here?) (What's new here? <--- would cause a problem.)

Contributions I used : Updated 06-13-04 23:42

----------------

Vote on My Graphis Poll

Posted

If I folow that string (I think that's what it's called), I come to the line 43 & it's the server_info line. I can't figure it out....

Posted

can you post that part of filenames.php and about 5 lines above and below?

9 times out of 10 its a PEBCAK Error (Problem exists between chair and keyboard)

 

Replace that and you're fine...

Posted
define('FILENAME_POPUP_IMAGE', 'popup_image.php');

  define('FILENAME_PRODUCTS_ATTRIBUTES', 'products_attributes.php');

  define('FILENAME_PRODUCTS_EXPECTED', 'products_expected.php');

  define('FILENAME_REVIEWS', 'reviews.php');

  define('FILENAME_SALEMAKER', 'salemaker.php');

  define('FILENAME_SALEMAKER_INFO', 'salemaker_info.php')

  define('FILENAME_SERVER_INFO', 'server_info.php');

  define('FILENAME_SHIPPING_MODULES', 'shipping_modules.php');

  define('FILENAME_SPECIALS', 'specials.php');

  define('FILENAME_STATS_CUSTOMERS', 'stats_customers.php');

  define

('FILENAME_STATS_PRODUCTS_PURCHASED', 'stats_products_purchased.php');

  define('FILENAME_STATS_PRODUCTS_VIEWED', 'stats_products_viewed.php');

  define('FILENAME_TAX_CLASSES', 'tax_classes.php');

 

You are looking at lines 37 to 49. Hope this helps!

Posted

Whoops, you are missing a ; on line 34

 

define('FILENAME_SALEMAKER_INFO', 'salemaker_info.php')
 define('FILENAME_SERVER_INFO', 'server_info.php');

 

To

 

define('FILENAME_SALEMAKER_INFO', 'salemaker_info.php');
 define('FILENAME_SERVER_INFO', 'server_info.php');

 

That should be it...

9 times out of 10 its a PEBCAK Error (Problem exists between chair and keyboard)

 

Replace that and you're fine...

Posted

man, I hate how easy this is! I'll fix it & let you know!

Posted

Yes, easy, but think about it this way...

 

How much did you learn for that simple fix?

 

Now you can answer 5 of 10 questions newbies post....

9 times out of 10 its a PEBCAK Error (Problem exists between chair and keyboard)

 

Replace that and you're fine...

Posted

WOOHOO!!!!

 

Thank you so much nrlatsha! I am very grateful! Now I can start doing other contributions on my own.... ya right!

 

Ok, now I tried to go in & activate the salemaker & I've discovered this error....

 

1146 - Table 'd60014358.salmaker_sales' doesn't exist

 

select count(*) as total from salmaker_sales

 

[TEP STOP]

 

now I have no idea, but I'm guessing that is has something to do with the sql? but I'm just guessing....

Posted

Yup, did you run the sql code?

 

Its just saying that table wasn't created or does not exist.

9 times out of 10 its a PEBCAK Error (Problem exists between chair and keyboard)

 

Replace that and you're fine...

Posted

How do I "run" the sql code? I copied & pasted it in the phpmyadmin area & it said that it was created successfully, but I did nothing else. What else should I have done?

Posted

Well you probably created a table "salemaker_sales" but this line of code is looking for "salmaker_sales" (note the spelling difference). First thing to check is your database_tables.php in admin and make sure you have:

 

define('TABLE_SALEMAKER_SALES', 'salemaker_sales'); (double check the spelling)

Posted

Thats probably a typo in the catalog/admin/includes/database_tables.php. Find that line and change it to salemaker

9 times out of 10 its a PEBCAK Error (Problem exists between chair and keyboard)

 

Replace that and you're fine...

Posted

Awesome... Apparently I had forgotten to spell! Everything is working perfectly now! WOOHOO for me & thanks for the help!

Posted
Now you can answer 5 of 10 questions newbies post....

 

You should be able to answer 90% of newbie posts now:

1) installation errors/mistakes

2) missing/incorrect define statements

Posted
Now you can answer 5 of 10 questions newbies post....

 

You should be able to answer 90% of newbie posts now:

1) installation errors/mistakes

2) missing/incorrect define statements

Update that to 95% - spelling errors

9 times out of 10 its a PEBCAK Error (Problem exists between chair and keyboard)

 

Replace that and you're fine...

Archived

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

×
×
  • Create New...