Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Recommended Posts

Posted

Hi All,

this contribution is really perfect, but actually I wanted to change the background color (grey->white), or at least deactivate the bgcolor.

 

I thought, no problem just edit the pdf_datasheet_config.php file.

I found also the line to edit..perfect.

define('PAGE_BG_COLOR','250,250,250');

to

define('PAGE_BG_COLOR','255,255,255');

(or what ever...)

 

But every change in this file bring this error :

 

Warning: Cannot add header information - headers already sent by (output started at ...catalog/pdf/pdf_datasheet_config.php:121) in ...catalog/pdf/fpdf.php on line 998

FPDF error: Some data has already been output to browser, can't send PDF file

 

If I turn changes back to the original , no chance still this error !

I have to upload the file again !

 

I've checked the permissions of both files : exactly the same.

Who can help ??

 

For every answer I send back positive thoughts. :)

Posted

I' am editing/uploading with HTML-Kit.

When I am using Textpad and then upload, no problems appears.

 

Hope it help someone.... one day....

Posted

The thing works just like that but .... what application are you using to edit the config file?

Make sure when you save the modified file no empty lines/blank spaces are created before <?php and after ?> and some editors do that.

WIKI 1st case.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...