Simple Machines Community Forum

SMF Support => SMF 1.1.x Support => Aiheen aloitti: cheesenub - maaliskuu 08, 2005, 10:12:47 AP

Otsikko: Undefined offset: 802
Kirjoitti: cheesenub - maaliskuu 08, 2005, 10:12:47 AP
Undefined offset: 801-803

8: Undefined offset: 803
File: /hermes/data12/b1911/moo.frankz/smf/Themes/default/BoardIndex.template.php (eval?)
Line: 460

I'm getting tons of these errors on my board. Something like 800 in the past few days or so.

http://www.frankzurbano.com/smf/

Any idea why this is happening? Whatever it is, it's slowing down my board a lot also.
Otsikko: Re: Undefined offset: 802
Kirjoitti: Ben_S - maaliskuu 08, 2005, 10:20:11 AP
Have you installed any mods, if so it's probably caused by a bad mod.
Otsikko: Re: Undefined offset: 802
Kirjoitti: Oldiesmann - maaliskuu 08, 2005, 10:26:26 AP
Clear out your error log, run this query in phpMyAdmin and check the error log again. It should give you a better error message:

INSERT INTO smf_settings VALUES ('disableTemplateEval', '1');
Otsikko: Re: Undefined offset: 802
Kirjoitti: cheesenub - maaliskuu 08, 2005, 01:13:54 IP
These errors have been happening only in the past week or two.

The last mod I installed was months ago.

I'll clear out the error log and see what I can come up with.
Otsikko: Re: Undefined offset: 802
Kirjoitti: cheesenub - maaliskuu 08, 2005, 01:17:06 IP
Lainaus käyttäjältä: Oldiesmann - maaliskuu 08, 2005, 10:26:26 AP
Clear out your error log, run this query in phpMyAdmin and check the error log again. It should give you a better error message:

INSERT INTO smf_settings VALUES ('disableTemplateEval', '1');

I don't know much about php so I'm not sure what you mean by querying phpMyAdmin.

Could you give me a little more detailed instructions?

Sorry for the hassle.
Otsikko: Re: Undefined offset: 802
Kirjoitti: cheesenub - maaliskuu 08, 2005, 01:29:17 IP
Here's a log of the most recent errors:

PHP Warning:  Unknown(): Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/var/php_sessions) in Unknown on line 0
PHP Warning:  Unknown(): open(/var/php_sessions/sess_9ef8dbc5362ce24260c182d86ac9d53d, O_RDWR) failed: No such file or directory (2) in Unknown on line 0
PHP Fatal error:  main(): Failed opening required '$boarddir . '/Sources'/QueryString.php' (include_path='.:/usr/local/lib/php-4.3.10/lib/php') in /hermes/data12/b1911/moo.frankz/smf/index.php on line 51
PHP Warning:  main($boarddir . '/Sources'/QueryString.php): failed to open stream: No such file or directory in /hermes/data12/b1911/moo.frankz/smf/index.php on line 51
PHP Fatal error:  main(): Failed opening required '$boarddir . '/Sources'/QueryString.php' (include_path='.:/usr/local/lib/php-4.3.10/lib/php') in /hermes/data12/b1911/moo.frankz/smf/index.php on line 51
PHP Warning:  main($boarddir . '/Sources'/QueryString.php): failed to open stream: No such file or directory in /hermes/data12/b1911/moo.frankz/smf/index.php on line 51
PHP Warning:  Unknown(): Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/var/php_sessions) in Unknown on line 0
PHP Warning:  Unknown(): open(/var/php_sessions/sess_9ef8dbc5362ce24260c182d86ac9d53d, O_RDWR) failed: No such file or directory (2) in Unknown on line 0
PHP Warning:  Unknown(): Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/var/php_sessions) in Unknown on line 0
PHP Warning:  Unknown(): open(/var/php_sessions/sess_9ef8dbc5362ce24260c182d86ac9d53d, O_RDWR) failed: No such file or directory (2) in Unknown on line 0
PHP Fatal error:  main(): Failed opening required '$boarddir . '/Sources'/QueryString.php' (include_path='.:/usr/local/lib/php-4.3.10/lib/php') in /hermes/data12/b1911/moo.frankz/smf/index.php on line 51
PHP Warning:  main($boarddir . '/Sources'/QueryString.php): failed to open stream: No such file or directory in /hermes/data12/b1911/moo.frankz/smf/index.php on line 51
PHP Fatal error:  main(): Failed opening required '$boarddir . '/Sources'/QueryString.php' (include_path='.:/usr/local/lib/php-4.3.10/lib/php') in /hermes/data12/b1911/moo.frankz/smf/index.php on line 51
PHP Warning:  main($boarddir . '/Sources'/QueryString.php): failed to open stream: No such file or directory in /hermes/data12/b1911/moo.frankz/smf/index.php on line 51
PHP Warning:  Unknown(): Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/var/php_sessions) in Unknown on line 0
PHP Warning:  Unknown(): open(/var/php_sessions/sess_9ef8dbc5362ce24260c182d86ac9d53d, O_RDWR) failed: No such file or directory (2) in Unknown on line 0
PHP Warning:  Unknown(): Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/var/php_sessions) in Unknown on line 0
PHP Warning:  Unknown(): open(/var/php_sessions/sess_9ef8dbc5362ce24260c182d86ac9d53d, O_RDWR) failed: No such file or directory (2) in Unknown on line 0
PHP Warning:  Unknown(): Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/var/php_sessions) in Unknown on line 0
PHP Warning:  Unknown(): open(/var/php_sessions/sess_9ef8dbc5362ce24260c182d86ac9d53d, O_RDWR) failed: No such file or directory (2) in Unknown on line 0
PHP Notice:  Undefined variable:  maintenance in /hermes/data12/b1911/moo.frankz/smf/index.php on line 58
PHP Warning:  Unterminated comment starting line 2 in /hermes/data12/b1911/moo.frankz/smf/Settings.php on line 2
Otsikko: Re: Undefined offset: 802
Kirjoitti: cheesenub - maaliskuu 08, 2005, 01:39:20 IP
I figured out how to do that query but I don't know what this info is supposed to tell me:

smf_attachments         209
smf_banned      0
smf_board_permissions      375
smf_boards      17
smf_calendar      0
smf_calendar_holidays      95
smf_categories      4
smf_collapsed_categories      1
smf_im_recipients      2,192
smf_instant_messages      2,191
smf_log_actions      4
smf_log_activity      111
smf_log_banned      0
smf_log_boards      518
smf_log_errors      3
smf_log_floodcontrol      1
smf_log_karma      0
smf_log_mark_read      105
smf_log_notify      97
smf_log_online      6
smf_log_polls      171
smf_log_search      0
smf_log_topics      11,866
smf_membergroups      11
smf_members      54
smf_messages      15,182
smf_moderators      16
smf_permissions      129
smf_poll_choices      96
smf_polls      17
smf_sessions      52
smf_settings      179
smf_smileys      17
smf_themes      301
smf_topics      1,009
Otsikko: Re: Undefined offset: 802
Kirjoitti: Oldiesmann - maaliskuu 08, 2005, 04:37:12 IP
That's just a list of the number of rows in each table. The query I gave you tells SMF to use require() instead of eval() to include the template files.
Otsikko: Re: Undefined offset: 802
Kirjoitti: [Unknown] - maaliskuu 09, 2005, 03:00:00 AP
Lainaus käyttäjältä: cheesenub - maaliskuu 08, 2005, 01:29:17 IP
Here's a log of the most recent errors:

There's a quite a bit of important and completely unrelated problems there... such as your session.save_path being incorrect.

-[Unknown]
Otsikko: Re: Undefined offset: 802
Kirjoitti: cheesenub - maaliskuu 09, 2005, 03:35:59 AP
Ok, so where do I start and how do I fix it?
Otsikko: Re: Undefined offset: 802
Kirjoitti: [Unknown] - maaliskuu 09, 2005, 04:18:41 AP
Lainaus käyttäjältä: cheesenub - maaliskuu 08, 2005, 01:29:17 IP
PHP Warning:  Unknown(): Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/var/php_sessions) in Unknown on line 0
PHP Warning:  Unknown(): open(/var/php_sessions/sess_9ef8dbc5362ce24260c182d86ac9d53d, O_RDWR) failed: No such file or directory (2) in Unknown on line 0

Give these errors to your host.  They have not set up PHP correctly.  You can turn on database-driven sessions to work around this cicrumstance, but they should still fix it.

LainaaPHP Fatal error:  main(): Failed opening required '$boarddir . '/Sources'/QueryString.php' (include_path='.:/usr/local/lib/php-4.3.10/lib/php') in /hermes/data12/b1911/moo.frankz/smf/index.php on line 51

Were you messing with Settings.php, or something?

Anyway, for the thing you posted above, I would guess it's caused by extra buttons - e.g. donate.  Look at the code you added there; did you use "802" or anything in there?

-[Unknown]
Otsikko: Re: Undefined offset: 802
Kirjoitti: cheesenub - maaliskuu 09, 2005, 10:41:38 AP
I haven't touched the settings.php file.

How do I change the database-driven sessions?
Otsikko: Re: Undefined offset: 802
Kirjoitti: cheesenub - maaliskuu 09, 2005, 10:51:28 AP
Well I turned database driven sessions off and now I get this error and I can't get to the board anymore:

session_start(): open(/var/php_sessions/sess_7cc422adeff2d30901040d84ceb5a491, O_RDWR) failed: No such file or directory (2)
Otsikko: Re: Undefined offset: 802
Kirjoitti: cheesenub - maaliskuu 09, 2005, 11:42:14 AP
I set up a phpinfo file if anyone wants to take a look and see if there's something installed that's wrong.

http://www.frankzurbano.com/smf/phpinfo.php
Otsikko: Re: Undefined offset: 802
Kirjoitti: Oldiesmann - maaliskuu 09, 2005, 12:47:31 IP
That error means that "/var/php_sessions" doesn't exist. Tell your host to fix the session_save_path in php.ini. In the meantime, you can re-enable database-driven sessions by running this query in phpMyAdmin:

REPLACE INTO smf_settings VALUES('databaseSession_enable', '1');
Otsikko: Re: Undefined offset: 802
Kirjoitti: cheesenub - maaliskuu 10, 2005, 10:11:43 AP
I just got this message from my support crew but my message board is still showing up with errors:

LainaaOur engineers have created the custom php.ini file with session.save_path =/home/users/web/b1911/moo.frankz/sessions. Now your message board is functioning fine. To learn more on Zend Optimizer, please visit: http://www.fatcow.com/knowledgebase/read_article.bml?kbid=1716


Here are the four distinct errors the board is getting everytime someone tries to access a page. The board works fine, but I'm still getting error messages:

http://www.frankzurbano.com/smf/index.php?action=viewErrorLog
8: Undefined offset: 801
File: /hermes/data12/b1911/moo.frankz/smf/Themes/default/index.template.php
Line: 435

8: Undefined offset: 803
File: /hermes/data12/b1911/moo.frankz/smf/Themes/default/index.template.php
Line: 460

8: Undefined offset: 802
File: /hermes/data12/b1911/moo.frankz/smf/Themes/default/index.template.php
Line: 465

8: A session had already been started - ignoring session_start()
File: /hermes/data12/b1911/moo.frankz/smf/Sources/QueryString.php
Line: 311


Here are the errors I'm getting on my database server:

PHP Warning:  ob_start(): output handler 'ob_gzhandler' cannot be used after 'URL-Rewriter' in /hermes/data12/b1911/moo.frankz/smf/index.php on line 104


Anymore suggestions on what I should do?
Otsikko: Re: Undefined offset: 802
Kirjoitti: [Unknown] - maaliskuu 19, 2005, 03:25:16 AP
For the first set, it looks like you've modified your menu and added $txt[801] and similar.  Replace that with 'Something'... you can't just add a language string by imagining it up.

As for the other error, turn off compressed output.

-[Unknown]