Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Errors while creating accounts


Cyrusxxx

Recommended Posts

Hello I have some persistent error and I cant take it any more and dont know how to solve it.

I have checked every damn file for white spaces and followed manual from this contributor

[url="http://www.oscommerce.com/forums/topic/376276-headers-already-sent/page__pid__1587780#entry1587780"]http://www.oscommerce.com/forums/topic/376276-headers-already-sent/page__pid__1587780#entry1587780[/url]

 

I lost 2 nights because of this error so please help I have lost every ideas.

 

 

When creatting accounts in english everything works fine but when creating in Serbian I get these errors:

 

[b]Warning[/b]: session_start() [[url="http://www.autosistem.co.rs/function.session-start"]function.session-start[/url]]: Cannot send session cookie - headers already sent by (output started at /....../........./public_html/.........../includes/languages/serbian/create_account.php:1) in [b]/....../...../......../........../includes/functions/sessions.php[/b] on line [b]102[/b]

[b]Warning[/b]: session_start() [[url="http://www.autosistem.co.rs/function.session-start"]function.session-start[/url]]: Cannot send session cache limiter - headers already sent (output started at /home/......./......./........./includes/languages/serbian/create_account.php:1) in [b]/....../....../......./......../includes/functions/sessions.php[/b] on line [b]102[/b]

[b]Warning[/b]: Cannot modify header information - headers already sent by (output started at /......./....../....../......./includes/languages/serbian/create_account.php:1) in [b]/......./......./public_html/......../includes/functions/general.php[/b] on line [b]45[/b]

 

I have attached my files so you can check them who knows maybe I missed something

url of store is www.autosistem.co.rs you can try to create account in serbian and see for yourself.

Thanks in advance.

general.php

index.php

sessions.php

create_account(serbinan from language folder).php

create_account.php

Link to comment
Share on other sites

Download my contriubtrion.

 

Run it.

 

Post the results.

 

Just because you haven't found the "whitespaces" doesn't mean they aren't there.

 

Maybe the file is UTF-8 encoded with BOM.

 

That will cause you grief.

If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.

 

"Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice."

- Me -

 

"Headers already sent" - The definitive help

 

"Cannot redeclare ..." - How to find/fix it

 

SSL Implementation Help

 

Like this post? "Like" it again over there >

Link to comment
Share on other sites

Download my contriubtrion.

 

Run it.

 

Post the results.

 

Just because you haven't found the "whitespaces" doesn't mean they aren't there.

 

Maybe the file is UTF-8 encoded with BOM.

 

That will cause you grief.

 

Here it is Jim :

Index.php:

O/S = Linux.
index.php has 276 lines.
The PHP start tag is on line 1.
The PHP end tag is on line 276.
Contents from start of file to the PHP start tag:

<?php[0A]

-------------------------
Contents from PHP end tag to end of file:

?>

 

create_account.php :

O/S = Linux.
create_account.php has 457 lines.
The PHP start tag is on line 1.
The PHP end tag is on line 457.
Contents from start of file to the PHP start tag:

<?php[0A]

-------------------------
Contents from PHP end tag to end of file:

?>

 

create_account.php /from serbian language folder:


O/S = Linux.
/home/autosist/public_html/autosistem.co.rs/includes/languages/serbian/create_account.php has 27 lines.
The PHP start tag is on line 1.
The PHP end tag is on line 27.
Contents from start of file to the PHP start tag:

[EF][bB][bF]<?php[0A]

-------------------------
Contents from PHP end tag to end of file:

?>


Error Messages:

The opening PHP tag is not at the start of the first line in the file.

 

general.php:


O/S = Linux.
/home/autosist/public_html/autosistem.co.rs/includes/functions/general.php has 1368 lines.
The PHP start tag is on line 1.
The PHP end tag is on line 1368.
Contents from start of file to the PHP start tag:

<?php[0A]

-------------------------
Contents from PHP end tag to end of file:

?>

 

Here it is Jim good luck ( and what is the worse I know it is something small and hate it for that).

Link to comment
Share on other sites

Read the directions supplied with the contribution.

 

The create_account.php /from serbian language folder is UTF-8 encoded with the BOM.

 

The BOM is causing the problem.

 

Save it as UTF-8 without the BOM.

If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.

 

"Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice."

- Me -

 

"Headers already sent" - The definitive help

 

"Cannot redeclare ..." - How to find/fix it

 

SSL Implementation Help

 

Like this post? "Like" it again over there >

Link to comment
Share on other sites

Read the directions supplied with the contribution.

 

The create_account.php /from serbian language folder is UTF-8 encoded with the BOM.

 

The BOM is causing the problem.

 

Save it as UTF-8 without the BOM.

 

Man so there it was I never thought of to save it as utf-8, after doing that it inserted

<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
</head>

On first 5 lines of file after removing them everything worked fine.

 

I am so stupid well probably because I wasn't slept for 2 nights.

 

smile.png

 

Jim thank you very much for this.

 

P.S.

Now I know who is my favorite person on Os commerce support forum.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...