ekottis Posted October 9, 2010 Posted October 9, 2010 Every time I open the page first display 38 times the following line: Deprecated: Function eregi() is deprecated in C:\xampp\xampp\htdocs\ekottis\includes\classes\language.php on line 87 Then dispay the oscommerce default layout... Any ideas how to fix that?
ekottis Posted October 9, 2010 Author Posted October 9, 2010 Also possible connection with that problem maybe that wheneve I add to cart something display the folling lines: Deprecated: Function ereg() is deprecated in C:\xampp\xampp\htdocs\ekottis\includes\functions\general.php on line 1094 Deprecated: Function ereg() is deprecated in C:\xampp\xampp\htdocs\ekottis\includes\functions\general.php on line 1094 Deprecated: Function ereg() is deprecated in C:\xampp\xampp\htdocs\ekottis\includes\functions\general.php on line 1094 Deprecated: Function ereg() is deprecated in C:\xampp\xampp\htdocs\ekottis\includes\functions\general.php on line 1094 Deprecated: Function ereg() is deprecated in C:\xampp\xampp\htdocs\ekottis\includes\functions\general.php on line 1094 Warning: Cannot modify header information - headers already sent by (output started at C:\xampp\xampp\htdocs\ekottis\includes\functions\general.php:1094) in C:\xampp\xampp\htdocs\ekottis\includes\functions\general.php on line 33 Any ideas??
pdcelec Posted October 9, 2010 Posted October 9, 2010 Also possible connection with that problem maybe that wheneve I add to cart something display the folling lines: Deprecated: Function ereg() is deprecated in C:\xampp\xampp\htdocs\ekottis\includes\functions\general.php on line 1094 Deprecated: Function ereg() is deprecated in C:\xampp\xampp\htdocs\ekottis\includes\functions\general.php on line 1094 Deprecated: Function ereg() is deprecated in C:\xampp\xampp\htdocs\ekottis\includes\functions\general.php on line 1094 Deprecated: Function ereg() is deprecated in C:\xampp\xampp\htdocs\ekottis\includes\functions\general.php on line 1094 Deprecated: Function ereg() is deprecated in C:\xampp\xampp\htdocs\ekottis\includes\functions\general.php on line 1094 Warning: Cannot modify header information - headers already sent by (output started at C:\xampp\xampp\htdocs\ekottis\includes\functions\general.php:1094) in C:\xampp\xampp\htdocs\ekottis\includes\functions\general.php on line 33 Any ideas?? RE: Warning: Cannot modify header information - headers already sent. Check C:\xampp\xampp\htdocs\ekottis\includes\functions\general.php for blank lines at the start or end of the file RE: Deprecated: Function ereg() is deprecated in C:\xampp\xampp\htdocs\ekottis\includes\functions\general.php on line 1094. You are using PHP 5.3 which shows his error. You have 2 options 1.) Alter the error reporting (a messy workaround) 2.) Download http://addons.oscommerce.com/info/7394 and replace all the deprecated functions
ekottis Posted October 11, 2010 Author Posted October 11, 2010 OK I fix it but now a new error apear... Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at C:\xampp\xampp\htdocs\ekottis\index.php:1) in C:\xampp\xampp\htdocs\ekottis\includes\functions\sessions.php on line 102 Any ideas?
♥geoffreywalton Posted October 11, 2010 Posted October 11, 2010 Try this in Google site:www.oscommerce.com/forums Cannot send session cache limiter - headers already sent HTH G Need help installing add ons/contributions, cleaning a hacked site or a bespoke development, check my profile Virus Threat Scanner My Contributions Basic install answers. Click here for Contributions / Add Ons. UK your site. Site Move. Basic design info. For links mentioned in old answers that are no longer here follow this link Useful Threads. If this post was useful, click the Like This button over there ======>>>>>.
ekottis Posted October 12, 2010 Author Posted October 12, 2010 I did search and was about the php safe... I change the /tmp to tmp but I still get the same error: Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at C:\xampp\xampp\htdocs\ekottis\index.php:1) in C:\xampp\xampp\htdocs\ekottis\includes\functions\sessions.php on line 102 Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at C:\xampp\xampp\htdocs\ekottis\index.php:1) in C:\xampp\xampp\htdocs\ekottis\includes\functions\sessions.php on line 102 Any ideas how to fix these errors??
MrPhil Posted October 12, 2010 Posted October 12, 2010 The error messages are telling you that certain "header" information cannot be sent (in this case, cookies) because a page has already been sent to the browser. Read my sig > FAQs > "Cannot modify headers". In your case, there's something at or near line 1 of your index.php file that's sending text to the browser. Check for something as simple as an extra blank before the opening <?php (a bad edit), or that a hacker has inserted code into your file. Fixing the first such error will often get rid of all the other errors too, so concentrate on the first error message when you see something like this.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.