Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

  1. Index
  2. » Archives
  3. » Feed error

#1 2007-04-14 09:26:14

vittorio
Member
From: Roma caput mundi
Registered: 2006-02-01
Posts: 122
Website

Feed error

I don’t know what I did, but the feed of my personal blog does not work anymore. Feedburner says it’s not in gzip format…
I tried reuploading the textpattern folder, but nothing. Any ideas?

Thanks in advance,
Vittorio


Happily served with Txp: Strampelli.net, Brain Essence, NicolaTranfaglia.com

Offline

#2 2007-04-14 14:14:43

Sencer
Archived Developer
From: cgn, de
Registered: 2004-03-23
Posts: 1,803
Website

Re: Feed error

There are errors genrated by plugins which mess up thegzip-eoncoding feed:

<br />
<b>Warning</b>: max() [<a href=‘function.max’>function.max</a>]: Array must contain atleast one element in <b>/web/htdocs/www.strampelli.net/home/txp/textpattern/lib/txplib_misc.php(512) : eval()’d code</b> on line <b>288</b><br />
<br />
<b>Warning</b>: min() [<a href=‘function.min’>function.min</a>]: Array must contain atleast one element in <b>/web/htdocs/www.strampelli.net/home/txp/textpattern/lib/txplib_misc.php(512) : eval()’d code</b> on line <b>289</b><br />
<br />
<b>Warning</b>: join() [<a href=‘function.join’>function.join</a>]: Bad arguments. in <b>/web/htdocs/www.strampelli.net/home/txp/textpattern/lib/txplib_misc.php(512) : eval()’d code</b> on line <b>465</b><br />
<br />
<b>Warning</b>: max() [<a href=‘function.max’>function.max</a>]: Array must contain atleast one element in <b>/web/htdocs/www.strampelli.net/home/txp/textpattern/lib/txplib_misc.php(512) : eval()’d code</b> on line <b>288</b><br />
<br />
<b>Warning</b>: min() [<a href=‘function.min’>function.min</a>]: Array must contain atleast one element in <b>/web/htdocs/www.strampelli.net/home/txp/textpattern/lib/txplib_misc.php(512) : eval()’d code</b> on line <b>289</b><br />
<br />
<b>Warning</b>: join() [<a href=‘function.join’>function.join</a>]: Bad arguments. in <b>/web/htdocs/www.strampelli.net/home/txp/textpattern/lib/txplib_misc.php(512) : eval()’d code</b> on line <b>465</b><br />

Fixing the plugin should fix your feed. (And yes, broken plugins shouldn’t make the feed completely inaccessible. I think we fixed this in svn, but I am not sure…).

Offline

#3 2007-04-14 14:47:46

vittorio
Member
From: Roma caput mundi
Registered: 2006-02-01
Posts: 122
Website

Re: Feed error

Thanks Sencer but… what should I do now? The feed does not seem to work even with all the plugins disabled…


Happily served with Txp: Strampelli.net, Brain Essence, NicolaTranfaglia.com

Offline

#4 2007-04-14 15:29:15

Sencer
Archived Developer
From: cgn, de
Registered: 2004-03-23
Posts: 1,803
Website

Re: Feed error

Your plugins are not turned off, I believe. You can check easily by doing a

wget -O - http://www.strampelli.net/txp/?atom=1 | head -n10

“/txplib_misc.php(512) : eval()’d code</b> on line …” refers to the part that is loading plugins.

http://dev.textpattern.com/browser/releases/4.0.4/source/textpattern/lib/txplib_misc.php#L512

The line number at the end (in your case 288/289) refers to the line number in the plugin that is making problems (in your case it has to do with min/max/join calls with invalid parameters).

Given that the error is repeated 5 times, it probably something you use either in your article-form, or in each of the last 5 articles. Check again carefully… Caching problems (with your browser as well as feedburner) may prevent you from seeing the change immediately.

update: I overlooked it, there’s 6 error-lines, three distinct errors (min, max, join), which are then repeated one more time (2×3=6). So it’s probably a plugin-tag you are using in two of your most recent 5 articles.

Last edited by Sencer (2007-04-14 15:33:15)

Offline

#5 2007-04-14 15:35:12

Sencer
Archived Developer
From: cgn, de
Registered: 2004-03-23
Posts: 1,803
Website

Re: Feed error

One more thing: Switching to live mode, should hide the errors as well, and make your feed functional again.

Offline

#6 2007-04-14 15:55:35

vittorio
Member
From: Roma caput mundi
Registered: 2006-02-01
Posts: 122
Website

Re: Feed error

Tried switching to live mode, but the feed still didn’t work. So I disabled again all the plugins and switched to debug mode. I really have no idea of what to do, looks like this problem requires some technical skills that obviously I lack.
I’ll keep it in debug mode for a while, would you be so kind to have a look again and see if you can find what’s wrong?

Thanks Sencer


Happily served with Txp: Strampelli.net, Brain Essence, NicolaTranfaglia.com

Offline

#7 2007-04-14 17:50:21

Sencer
Archived Developer
From: cgn, de
Registered: 2004-03-23
Posts: 1,803
Website

Re: Feed error

<br />
<b>Warning</b>: unknown_tag: kml_flashembed in <b>/web/htdocs/www.strampelli.net/home/txp/textpattern/publish.php</b> on line <b>968</b><br />

That’s the error you currently get. Given that the plugin is disabled and debugging is turned on, this error is to be expected. If you have used the tag in 2 of your last 5 posts, it’s possible (likely even), that it is the code of that plugin which produced the other errors as well. To make sure you can copy the code of said plugin into a texteditor and look on lines 288/289 – if it contains the commands min/max/join, we got a winner. In that case see if there is an updated version of the plugin, otherwis get in touch with the plugin author (via the thread or mail or …).

Can someone else confirm, that error messages from plugins in feeds are displayed even when production mode is set to live?

Offline

#8 2007-04-14 22:33:34

zem
Developer Emeritus
From: Melbourne, Australia
Registered: 2004-04-08
Posts: 2,579

Re: Feed error

I believe the Live error issue was fixed in svn some time ago.


Alex

Offline

#9 2007-04-15 08:59:19

vittorio
Member
From: Roma caput mundi
Registered: 2006-02-01
Posts: 122
Website

Re: Feed error

Sencer wrote:


To make sure you can copy the code of said plugin into a texteditor and look on lines 288/289 – if it contains the commands min/max/join, we got a winner.

No, that plugin doesn’t contain any command min/max/join at lines 288/289 (line 289 is blank!). And anyway, the feed should be supposed to work with the plugin disabled… or not?


Happily served with Txp: Strampelli.net, Brain Essence, NicolaTranfaglia.com

Offline

#10 2007-04-17 00:18:36

Mary
Sock Enthusiast
Registered: 2004-06-27
Posts: 6,236

Re: Feed error

And anyway, the feed should be supposed to work with the plugin disabled…

Of course. BUT

Offline

#11 2007-04-17 04:57:11

Sencer
Archived Developer
From: cgn, de
Registered: 2004-03-23
Posts: 1,803
Website

Re: Feed error

vittorio wrote:

No, that plugin doesn’t contain any command min/max/join at lines 288/289 (line 289 is blank!).

When I am afraid you’ll have to look through the other plugins as well.

And anyway, the feed should be supposed to work with the plugin disabled… or not?

When you disable that plugin, you have a call to an undefined plugin-tag, which again throws a warning. Though now that you have made sure it’s not that plugin, you could turn only that plugin on (kml_flashembed) and al others off, and then it should work. Better to find and fix the offending pugin though.

Offline

  1. Index
  2. » Archives
  3. » Feed error

Board footer

Powered by FluxBB