Home arrow Forum 8: Undefined offset: 0
  Welcome, Guest. Please login or register.
Did you miss your activation email?
May 23, 2012, 05:56:21 AM
Home New Posts Search Calendar


Login with username, password and session length
+  Joomla Forum
|-+  Joomla Hacks
| |-+  Joomla-SMF Forum Support
| | |-+  Joomla-SMF 2.0.x (Moderators: -Wolverine, kai920)
| | | |-+  8: Undefined offset: 0
0 Members and 1 Guest are viewing this topic. « previous next »
Pages: [1] Go Down Print
Author Topic: 8: Undefined offset: 0  (Read 8249 times)
Marco
Joomla Newbie
*

Karma: +0/-3
Offline Offline

Posts: 32


View Profile
8: Undefined offset: 0
« on: October 19, 2006, 07:56:02 AM »

Hi

hi tried the bridge 2.0.RC1. I have a lot of error in the SMF Log:

the first is:

http://www.photoarena.it/forum/index.php  
8: Undefined offset: 0
File: /home/photoare/public_html/components/com_smf/smf.class.php
Linea: 459

the second is:
http://www.photoarena.it/forum/index.php  
8: Undefined offset: 0
File: /home/photoare/public_html/components/com_smf/smf.class.php
Linea: 452

what can i do to fix it?

thanks in advance. my configuration is:

Bridge 2.0 RC1
SMF 1.1 RC2
Joomla 1.0.11
Logged

Joomla 1.0.12 - SMF 1.1.1 - JSMF 2.0.1 - CB none - PHP 4.4.4 - MySQL 4.0.27.
thernus
Joomla Newbie
*

Karma: +0/-0
Offline Offline

Posts: 12


View Profile
Re: 8: Undefined offset: 0
« Reply #1 on: October 19, 2006, 08:56:13 AM »

I had the same prob with my installation but the programmer of my template say this error is not important. you can disable logging in smf settings

Thernus
Logged
-Wolverine
Moderator
Joomla Guru
*****

Karma: +376/-36
Offline Offline

Posts: 3393


Lead Developer


View Profile WWW
Re: 8: Undefined offset: 0
« Reply #2 on: October 19, 2006, 10:05:30 AM »

it is a notice and therefore is not important, I will try to solve the notice issue.
Logged

Need help?  Check Here First!
Get the JSMF User Guide
SEARCH this forum.
-Wolverine
Moderator
Joomla Guru
*****

Karma: +376/-36
Offline Offline

Posts: 3393


Lead Developer


View Profile WWW
Re: 8: Undefined offset: 0
« Reply #3 on: October 21, 2006, 02:45:53 PM »

should be resolved in JSMF 2.0RC2.
Logged

Need help?  Check Here First!
Get the JSMF User Guide
SEARCH this forum.
Marco
Joomla Newbie
*

Karma: +0/-3
Offline Offline

Posts: 32


View Profile
Re: 8: Undefined offset: 0
« Reply #4 on: October 22, 2006, 09:24:39 AM »

Ok, thanks...
Logged

Joomla 1.0.12 - SMF 1.1.1 - JSMF 2.0.1 - CB none - PHP 4.4.4 - MySQL 4.0.27.
mike
Joomla Newbie
*

Karma: +1/-1
Offline Offline

Posts: 24


We have Room...


View Profile
Re: 8: Undefined offset: 0
« Reply #5 on: November 06, 2006, 06:41:16 PM »

Glad ya fixed it, because even tho it may not be important, it gave me 20 pages of errors in a 7 day period, looked like the same ip or range.... probably a bot or spider as it is not a registered user on my site.....

Luckily I missed installing rc2, seeing as how there are a few issues with it and are being resolved as we speak/type for rc3 which I will wait for. I'm not using CB so most of the issues don't affect my site.

Thanks for the hard work Wolverine.....  Grin
Logged
Marco
Joomla Newbie
*

Karma: +0/-3
Offline Offline

Posts: 32


View Profile
Re: 8: Undefined offset: 0
« Reply #6 on: November 25, 2006, 11:05:02 AM »

hi,

i still have the same kind of error. my configuration is

joomla 1.0.11
bridge 2.0 RC3

i get more than 100 pages of error a day. the errors now are:


8: Undefined offset: 0
File: /home/photoare/public_html/components/com_smf/smf.class.php
Linea: 434


8: Undefined offset: 0
File: /home/photoare/public_html/components/com_smf/smf.class.php
Linea: 428

how can i fix it?

thanks in advance...
« Last Edit: November 25, 2006, 01:44:16 PM by Marco » Logged

Joomla 1.0.12 - SMF 1.1.1 - JSMF 2.0.1 - CB none - PHP 4.4.4 - MySQL 4.0.27.
Marco
Joomla Newbie
*

Karma: +0/-3
Offline Offline

Posts: 32


View Profile
Re: 8: Undefined offset: 0
« Reply #7 on: December 02, 2006, 05:51:28 PM »

hi, any news?

thanks
Logged

Joomla 1.0.12 - SMF 1.1.1 - JSMF 2.0.1 - CB none - PHP 4.4.4 - MySQL 4.0.27.
-Wolverine
Moderator
Joomla Guru
*****

Karma: +376/-36
Offline Offline

Posts: 3393


Lead Developer


View Profile WWW
Re: 8: Undefined offset: 0
« Reply #8 on: December 02, 2006, 11:35:31 PM »

those are simply notices, you can ignore them.  Or you can turn off error reporting in SMF.  They should be resolved in the next version but there is no guarantee.  Notices do not affect the site in any way and can safely be ignored.
Logged

Need help?  Check Here First!
Get the JSMF User Guide
SEARCH this forum.
jummijammi
Joomla Newbie
*

Karma: +0/-0
Offline Offline

Posts: 2


View Profile
Re: 8: Undefined offset: 0
« Reply #9 on: June 14, 2007, 05:02:13 AM »

Hi

This seems to be already an old topic but those messages in the error log annoyed me also me too much so I decided to look for the cause.

In my case most of the messages were originating from the action when someone pressed the print button when viewing a message. I doubt that the most likely origin for that was a search engine spider. My self I didn't even know that there was this print button before I started to investigate this Smiley

The code fragment of the jsmf which seem to cause the warning messages “8: Undefined offset: 0” is:

Jsmf version: 2.0.2
File: /components/com_smf/smf.class.php
Line: 453
Content: $keywords = preg_replace($search, $replace, $matches[0]);

In some cases the $matches variable seems to be empty.

I got rid of the messages by adding a test for emptiness of the $matches variable:

   if (!empty($matches))
                $keywords = preg_replace($search, $replace, $matches[0]);



Ps. Wolverine thanks for the excellent bridge component !!!

Logged
Cadinos
Joomla Newbie
*

Karma: +0/-0
Offline Offline

Posts: 2


View Profile WWW
Re: 8: Undefined offset: 0
« Reply #10 on: June 15, 2007, 09:48:20 AM »

In some cases the $matches variable seems to be empty.

I got rid of the messages by adding a test for emptiness of the $matches variable:

   if (!empty($matches))
                $keywords = preg_replace($search, $replace, $matches[0]);
Thank you, that seems to have fixed it for me!  Smiley
Logged
Pages: [1] Go Up Print 
« previous next »
Jump to:  



Login with username, password and session length

Powered by MySQL Powered by PHP Joomla Forum | Powered by SMF 1.1 RC1.
© 2001-2005, Lewis Media. All Rights Reserved.
Joomla Bridge by JoomlaHacks.com
Valid XHTML 1.0! Valid CSS!

Joomla Hacks is a Joomla Components, Joomla Modules, Joomla Templates, & Joomla Mambots resource portal. None of the text or images in this public website may be copied without the expressed written consent of the authors. Copyright 2005 by JoomlaHacks.com. Powered by Joomla. All rights reserved.
Terms of Use







Joomla Hacks German Lang French Lang Italian Lang Spanish Lang Japanese Lang Chinese Lang
About Advertise Register Login