Community Forums

V1.4 index.php error log

Please post any issues you are having concerning installation or upgrade of OpenCart v1.x

V1.4 index.php error log

Postby tilesupply » Sun Feb 14, 2010 2:25 am

Hi
I have been looking for the ans for this problems (but no joy).

I keep getting these errors in the log.
Can somone help me out with some advice as i really want to get it fixed.
I know ye guys have alot on your plate right now but if someone could spare a few sec's I would be very grateful.

This is a copy of the error log

2010-02-13 18:32:26 - PHP Notice: Undefined index: HTTP_HOST in /home/bathroom/public_html/index.php on line 149
2010-02-13 18:32:26 - PHP Warning: Cannot modify header information - headers already sent by (output started at /home/bathroom/public_html/index.php:67) in /home/bathroom/public_html/index.php on line 149
2010-02-13 18:32:26 - PHP Notice: Undefined index: HTTP_HOST in /home/bathroom/public_html/system/library/currency.php on line 43
2010-02-13 18:32:26 - PHP Warning: Cannot modify header information - headers already sent by (output started at /home/bathroom/public_html/index.php:67) in /home/bathroom/public_html/system/library/currency.php on line 43
2010-02-13 18:33:39 - PHP Notice: Undefined index: HTTP_HOST in /home/bathroom/public_html/index.php on line 149
2010-02-13 18:33:39 - PHP Warning: Cannot modify header information - headers already sent by (output started at /home/bathroom/public_html/index.php:67) in /home/bathroom/public_html/index.php on line 149
2010-02-13 18:33:39 - PHP Notice: Undefined index: HTTP_HOST in /home/bathroom/public_html/system/library/currency.php on line 43
2010-02-13 18:33:39 - PHP Warning: Cannot modify header information - headers already sent by (output started at /home/bathroom/public_html/index.php:67) in /home/bathroom/public_html/system/library/currency.php on line 43
2010-02-13 18:37:04 - PHP Notice: Undefined index: HTTP_HOST in /home/bathroom/public_html/index.php on line 149
2010-02-13 18:37:04 - PHP Warning: Cannot modify header information - headers already sent by (output started at /home/bathroom/public_html/index.php:67) in /home/bathroom/public_html/index.php on line 149
2010-02-13 18:37:04 - PHP Notice: Undefined index: HTTP_HOST in /home/bathroom/public_html/system/library/currency.php on line 43
2010-02-13 18:37:04 - PHP Warning: Cannot modify header information - headers already sent by (output started at /home/bathroom/public_html/index.php:67) in /home/bathroom/public_html/system/library/currency.php on line 43
2010-02-13 18:37:08 - PHP Notice: Undefined index: HTTP_HOST in /home/bathroom/public_html/index.php on line 149
2010-02-13 18:37:08 - PHP Warning: Cannot modify header information - headers already sent by (output started at /home/bathroom/public_html/index.php:67) in /home/bathroom/public_html/index.php on line 149
2010-02-13 18:37:08 - PHP Notice: Undefined index: HTTP_HOST in /home/bathroom/public_html/system/library/currency.php on line 43
2010-02-13 18:37:08 - PHP Warning: Cannot modify header information - headers already sent by (output started at /home/bathroom/public_html/index.php:67) in /home/bathroom/public_html/system/library/currency.php on line 43
2010-02-13 18:49:14 - PHP Notice: Undefined index: HTTP_HOST in /home/bathroom/public_html/index.php on line 149
2010-02-13 18:49:14 - PHP Warning: Cannot modify header information - headers already sent by (output started at /home/bathroom/public_html/index.php:67) in /home/bathroom/public_html/index.php on line 149
2010-02-13 18:49:14 - PHP Notice: Undefined index: HTTP_HOST in /home/bathroom/public_html/system/library/currency.php on line 43
2010-02-13 18:49:14 - PHP Warning: Cannot modify header information - headers already sent by (output started at /home/bathroom/public_html/index.php:67) in /home/bathroom/public_html/system/library/currency.php on line 43
2010-02-13 18:49:16 - PHP Notice: Undefined index: HTTP_HOST in /home/bathroom/public_html/index.php on line 149
2010-02-13 18:49:16 - PHP Warning: Cannot modify header information - headers already sent by (output started at /home/bathroom/public_html/index.php:67) in /home/bathroom/public_html/index.php on line 149
2010-02-13 18:49:16 - PHP Notice: Undefined index: HTTP_HOST in /home/bathroom/public_html/system/library/currency.php on line 43
2010-02-13 18:49:16 - PHP Warning: Cannot modify header information - headers already sent by (output started at /home/bathroom/public_html/index.php:67) in /home/bathroom/public_html/system/library/currency.php on line 43
2010-02-13 19:51:19 - PHP Notice: Undefined index: title in /home/bathroom/public_html/admin/view/template/cms/article_form.tpl on line 33
2010-02-13 19:51:19 - PHP Notice: Undefined index: title in /home/bathroom/public_html/admin/view/template/cms/article_form.tpl on line 38
2010-02-13 19:51:19 - PHP Notice: Undefined variable: preview in /home/bathroom/public_html/admin/view/template/cms/article_form.tpl on line 55
2010-02-13 19:52:05 - PHP Notice: Undefined index: title in /home/bathroom/public_html/admin/view/template/cms/article_form.tpl on line 33
2010-02-13 19:52:05 - PHP Notice: Undefined index: title in /home/bathroom/public_html/admin/view/template/cms/article_form.tpl on line 38
2010-02-13 19:52:05 - PHP Notice: Undefined variable: preview in /home/bathroom/public_html/admin/view/template/cms/article_form.tpl on line 55
2010-02-13 19:52:26 - PHP Notice: Undefined index: title in /home/bathroom/public_html/admin/view/template/cms/article_form.tpl on line 33
2010-02-13 19:52:26 - PHP Notice: Undefined index: title in /home/bathroom/public_html/admin/view/template/cms/article_form.tpl on line 38
2010-02-13 19:52:26 - PHP Notice: Undefined variable: preview in /home/bathroom/public_html/admin/view/template/cms/article_form.tpl on line 55
2010-02-13 19:53:18 - PHP Notice: Undefined index: title in /home/bathroom/public_html/admin/view/template/cms/article_form.tpl on line 33
2010-02-13 19:53:18 - PHP Notice: Undefined index: title in /home/bathroom/public_html/admin/view/template/cms/article_form.tpl on line 38
2010-02-13 19:53:18 - PHP Notice: Undefined variable: preview in /home/bathroom/public_html/admin/view/template/cms/article_form.tpl on line 55
2010-02-13 19:55:24 - PHP Notice: Undefined index: title in /home/bathroom/public_html/admin/view/template/cms/article_form.tpl on line 33
2010-02-13 19:55:24 - PHP Notice: Undefined index: title in /home/bathroom/public_html/admin/view/template/cms/article_form.tpl on line 38
2010-02-13 19:55:24 - PHP Notice: Undefined variable: preview in /home/bathroom/public_html/admin/view/template/cms/article_form.tpl on line 55
2010-02-13 19:59:28 - PHP Notice: Undefined index: title in /home/bathroom/public_html/admin/view/template/cms/article_form.tpl on line 33
2010-02-13 19:59:28 - PHP Notice: Undefined index: title in /home/bathroom/public_html/admin/view/template/cms/article_form.tpl on line 38
2010-02-13 19:59:28 - PHP Notice: Undefined variable: preview in /home/bathroom/public_html/admin/view/template/cms/article_form.tpl on line 55
2010-02-13 19:59:42 - PHP Notice: Undefined index: title in /home/bathroom/public_html/admin/view/template/cms/article_form.tpl on line 33
2010-02-13 19:59:42 - PHP Notice: Undefined index: title in /home/bathroom/public_html/admin/view/template/cms/article_form.tpl on line 38
2010-02-13 19:59:42 - PHP Notice: Undefined variable: preview in /home/bathroom/public_html/admin/view/template/cms/article_form.tpl on line 55
2010-02-13 20:00:03 - PHP Notice: Undefined index: title in /home/bathroom/public_html/admin/view/template/cms/article_form.tpl on line 33
2010-02-13 20:00:03 - PHP Notice: Undefined index: title in /home/bathroom/public_html/admin/view/template/cms/article_form.tpl on line 38
2010-02-13 20:00:03 - PHP Notice: Undefined variable: preview in /home/bathroom/public_html/admin/view/template/cms/article_form.tpl on line 55

Many Thanks

Paul
tilesupply
 
Posts: 109
Joined: Tue Aug 25, 2009 11:48 pm

Re: V1.4 index.php error log

Postby pstreet » Sun Feb 14, 2010 12:48 pm

Hi tilesupply, the error log is extensive, and there appear to be a whole bunch of issues with the site. I'll try run through and supply answers for the errors I can spot. Some of these errors may not be easy to fix if you're not familiar with PHP development.

tilesupply wrote:2010-02-13 18:32:26 - PHP Notice: Undefined index: HTTP_HOST in /home/bathroom/public_html/index.php on line 149
1. Looks like your 'config.php' file may be missing the 'define(HTTP_HOST....' statement, or the 'index.php' file isn't requiring 'config.php'. You will need to check your 'config.php' and 'index.php' file.
2010-02-13 18:32:26 - PHP Warning: Cannot modify header information - headers already sent by (output started at /home/bathroom/public_html/index.php:67) in /home/bathroom/public_html/index.php on line 149
2. This error is generated because some output has already been sent to the browser, basically there's a call to the 'header()' php function after some data has been sent. This can be caused if you have spaces or other characters after a closing PHP tag '?>' that shouldn't be there. Because output buffering is off in OpenCart by default (as it should be), headers and data are sent immediately when content falls outside the PHP tags.
2010-02-13 19:51:19 - PHP Notice: Undefined index: title in /home/bathroom/public_html/admin/view/template/cms/article_form.tpl on line 33
3. There is an array or object index being used, in this case 'title' that doesn't exist on the array or object.
2010-02-13 19:51:19 - PHP Notice: Undefined variable: preview in /home/bathroom/public_html/admin/view/template/cms/article_form.tpl on line 55
4. Similar to response 3, a variable 'preview' isn't defined and an attempt is being made to resolve it.

I know that this probably doesn't help much, and I've trimmed it down by not responding to other similar error responses in your log, but it's a start. Can you also provide more information as to which version of OpenCart you're using, and whether or not you might have attempted an upgrade to a newer version, or done anything recently that has resulted in these errors appearing.
Currently unavailable for freelance work and consulting.
User avatar
pstreet
 
Posts: 42
Joined: Tue Nov 03, 2009 6:00 am
Location: New South Wales, Australia

Re: V1.4 index.php error log

Postby i2Paq » Sun Feb 14, 2010 1:45 pm

I don't see why this is a bug.

[topic moved]
Norman in 't Veldt
Moderator OpenCart Forums

_________________ READ and Search BEFORE POSTING _________________
Our FREE search: Find your answer FAST!.

FREE manuals: ShowMe Guides OpenCart, Opencart Check List and Our Documentation section.

BUGs?: Known BUGS for All OC Versions.

[How to] BTW + Verzend & betaalmethodes.
User avatar
i2Paq
Global Moderator
 
Posts: 9858
Joined: Mon Nov 09, 2009 11:00 am
Location: Winkel - The Netherlands

Re: V1.4 index.php error log

Postby pstreet » Sun Feb 14, 2010 2:20 pm

Definitely not a bug, and yes more of an installation problem they're having from the looks ;)
Currently unavailable for freelance work and consulting.
User avatar
pstreet
 
Posts: 42
Joined: Tue Nov 03, 2009 6:00 am
Location: New South Wales, Australia


Return to Installation, Upgrade, & Config Support

Who is online

Users browsing this forum: No registered users and 22 guests

Hosted by Arvixe Web Hosting