Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Notice: Undefined offset: 1 in system/classes/format.php line 238
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  8 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Balazs Koren  
View profile  
 More options Aug 16 2008, 6:28 am
From: "Balazs Koren" <balazs.ko...@gmail.com>
Date: Sat, 16 Aug 2008 12:28:51 +0200
Local: Sat, Aug 16 2008 6:28 am
Subject: Notice: Undefined offset: 1 in system/classes/format.php line 238

Hello,
I'm having fun using habari, but if I go for the tag archive, a lot of time
I get the following message in the log: *Notice:* Undefined offset: 1 in
system/classes/format.php line 238

Can somebody tell me why this happens? You can give it a try, for example I
get it looking for the tag archive here: http://kobak.org/tag/for-the-record

I'm using 0.6-alpha.

Thanks for any advise.

Balazs

--
http://kobak.org


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Michael C. Harris  
View profile  
 More options Aug 16 2008, 6:41 am
From: "Michael C. Harris" <michael.twof...@gmail.com>
Date: Sat, 16 Aug 2008 20:41:49 +1000
Local: Sat, Aug 16 2008 6:41 am
Subject: Re: [habari-users] Notice: Undefined offset: 1 in system/classes/format.php line 238

On Sat, Aug 16, 2008 at 12:28:51PM +0200, Balazs Koren wrote:
>    Hello,
>    I'm having fun using habari, but if I go for the tag archive, a lot of
>    time I get the following message in the log: Notice: Undefined offset:
>    1 in system/classes/format.php line 238
>    Can somebody tell me why this happens? You can give it a try, for
>    example I get it looking for the tag archive
>    here: [1]http://kobak.org/tag/for-the-record
>    I'm using 0.6-alpha.
>    Thanks for any advise.

I think this is likely to be a theme issue. Is the theme using
something from the Format class that's filtering post_content_out ?

--
Michael C. Harris, School of CS&IT, RMIT University
http://twofishcreative.com/michael/blog
IRC: michaeltwofish #habari


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Balazs Koren  
View profile  
 More options Aug 16 2008, 9:52 am
From: "Balazs Koren" <balazs.ko...@gmail.com>
Date: Sat, 16 Aug 2008 15:52:19 +0200
Local: Sat, Aug 16 2008 9:52 am
Subject: Re: [habari-users] Re: Notice: Undefined offset: 1 in system/classes/format.php line 238

Hi,
I'm using the default Charcoal theme.

Balazs

On Sat, Aug 16, 2008 at 12:41 PM, Michael C. Harris <

--
http://kobak.org

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Ali B.  
View profile  
 More options Aug 16 2008, 12:33 pm
From: "Ali B." <dmond...@gmail.com>
Date: Sat, 16 Aug 2008 19:33:11 +0300
Local: Sat, Aug 16 2008 12:33 pm
Subject: Re: [habari-users] Re: Notice: Undefined offset: 1 in system/classes/format.php line 238

It's strange. I am also using charcoal and running latest HEAD. Works
without problems (http://awhitebox.com/tag/habari).

Is it possible that a plugin is trying to use the Format::summarize
function? Could you maybe list the plugins you have installed/activated so I
can take a look at them?

Also, have you added any additional functions to the theme's theme.php? If
so, could you please paste what you added?

Welcome to Habari by the way :)

Cheers,
--
Ali B / dmondark
http://www.awhitebox.com

On Sat, Aug 16, 2008 at 4:52 PM, Balazs Koren <balazs.ko...@gmail.com>wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Ali B.  
View profile  
 More options Aug 16 2008, 12:35 pm
From: "Ali B." <dmond...@gmail.com>
Date: Sat, 16 Aug 2008 19:35:34 +0300
Local: Sat, Aug 16 2008 12:35 pm
Subject: Re: [habari-users] Re: Notice: Undefined offset: 1 in system/classes/format.php line 238

You might also enable debug to display the error stack trace. Just paste the
following line in your config.php between the php tags:

define('DEBUG', true);

--
Ali B / dmondark
http://www.awhitebox.com

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Balazs Koren  
View profile  
 More options Aug 16 2008, 3:39 pm
From: "Balazs Koren" <balazs.ko...@gmail.com>
Date: Sat, 16 Aug 2008 21:39:28 +0200
Local: Sat, Aug 16 2008 3:39 pm
Subject: Re: [habari-users] Re: Notice: Undefined offset: 1 in system/classes/format.php line 238

interesting fact is, that I only get the error message if the post:
http://kobak.org/latin1-tablaban-tarolt-utf8-tartalom is included in the tag
archive. The post in single mode appears alright.

By the debug I get:
---
system/classes/format.php line 306:
  Format::summarize( ...1 args... )
[core] line 0:
  Format->more( ...1 args... )
system/classes/format.php(64) : runtime-created function line 1:
  call_user_func_array( ...1 args... )
[core] line 0:
  __lambda_func( ...1 args... )
system/classes/plugins.php line 92:
  call_user_func_array( ...1 args... )
system/classes/post.php line 793:
  Plugins::filter( ...1 args... )
user/themes/charcoal-kobak/tag.php line 25:
  Post->__get( ...1 arg... )
system/classes/rawphpengine.php line 93:
  include( ...1 arg... )
system/classes/theme.php line 504:
  RawPHPEngine->display( ...1 arg... )
system/classes/theme.php line 127:
  Theme->display( ...1 arg... )
system/classes/theme.php line 263:
  Theme->display_fallback( ...1 arg... )
system/classes/theme.php line 388:
  Theme->act_display( ...1 arg... )
system/classes/userthemehandler.php line 50:
  Theme->act_display_tag( )
system/classes/controller.php line 167:
  UserThemeHandler->act( ...1 arg... )
index.php line 221:
  Controller::dispatch_request( )
---

Plugins:

Aliencontact
audioscrobbler
coredashmodules
deliciousfeed
feedburner
flickrfeed
flickrmedia silo
google analytics
habari media silo
site maps
spam checker
technorati
thickbox
twitter
viddler media silo

--
http://kobak.org

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Ali B.  
View profile  
 More options Aug 16 2008, 9:42 pm
From: "Ali B." <dmond...@gmail.com>
Date: Sun, 17 Aug 2008 04:42:06 +0300
Local: Sat, Aug 16 2008 9:42 pm
Subject: Re: [habari-users] Re: Notice: Undefined offset: 1 in system/classes/format.php line 238

Ok, this was a tough one :)

I was able to find out where the problem is, however, I was not able to
"zero in" on it as it seems to be a regex issue and that is beyond my
knowledge.

The problem with that post is the combination of the "less than" character
"<" and the space character that comes before it. The Fomrat::summary
function is dealing with that character in a strange way where it detects it
as a word and then as an html tag but does not actually return anything to
the $tagn array (the size of the array remains 0), which is causing the
error that you see when the code is trying to retrive $tagn[1].

This is actually reproducible when you have the word count passed to the
post_content_out filter big emough for the summary function to attempt to
include that in the post excerpt (ie. it's not only in the tags view, but it
will occure whenver the theme attempts to display the excerpt of that
particular post).

As I mentioned, the regex's are beyond my knowledge, but I will open a
ticket for this issue. Meanwhile, for your particular case, using the html
code for that character (&lt;) should take care of it. Having said that, I
don't know if you should use bare < or > in the post even if they are
wrapped up with the <code> tag.

Hope that helps

On Sat, Aug 16, 2008 at 10:39 PM, Balazs Koren <balazs.ko...@gmail.com>wrote:

--
Ali B / dmondark
http://www.awhitebox.com

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Balazs Koren  
View profile  
 More options Aug 17 2008, 6:02 am
From: "Balazs Koren" <balazs.ko...@gmail.com>
Date: Sun, 17 Aug 2008 12:02:10 +0200
Local: Sun, Aug 17 2008 6:02 am
Subject: Re: [habari-users] Re: Notice: Undefined offset: 1 in system/classes/format.php line 238

Thank you!!! It worked.
Balazs

--
http://kobak.org

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »