Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2007-07-13 08:04:21

gemal
Member
From: Copenhagen, Denmark
Registered: 2007-01-09
Posts: 107
Website

Error: '' is not an integer

I see this sometimes when I save an article:

Textpattern version: 4.0.5 (r2466)

Warning:

Error: ‘’ is not an integer

assert_int()
textpattern/include/txp_article.php:164 array_map()
textpattern/include/txp_article.php:51 article_save()
textpattern/index.php:104 include()

in /home/gemal/private/web/mads.gemal.dk/textpattern/lib/txplib_misc.php on line 1922

Warning: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ‘ LastMod = now(), LastModID = ‘gemal’, Section =’ at line 8 update gemalmads_textpattern set Title = ‘Nu med lyd’, Body = ‘
blabla in /home/gemal/private/web/mads.gemal.dk/textpattern/lib/txplib_db.php on line 84

Offline

#2 2007-07-13 10:18:34

ruud
Developer Emeritus
From: a galaxy far far away
Registered: 2006-06-04
Posts: 5,068
Website

Re: Error: '' is not an integer

  • Is this reproducible and if so, which steps do you take to reproduce this?
  • Do you have plugins installed that affect the write tab and if so, which ones and does disabling help?
  • This happens when updating an already existing article, right? Not when saving a new article?
  • What is the exact and complete error message that is shown? It’s one of the variables ID, Status, textile_body, textile_excerpt that is not set to an integer and knowing which of these causes the error will hopefully help to find the error.

Last edited by ruud (2007-07-13 10:19:22)

Offline

#3 2007-07-13 10:28:08

ruud
Developer Emeritus
From: a galaxy far far away
Registered: 2006-06-04
Posts: 5,068
Website

Re: Error: '' is not an integer

Hmm… because it says “at line 8”, I suspect that it’s the Status variable. The only way that error could occur is if you somehow do not select any of the Status radio buttons or if the entire set of Status radio buttons was removed. I can reproduce this by using the webdeveloper extension in Firefox to clear all radio buttons.

Offline

#4 2007-07-13 11:37:55

gemal
Member
From: Copenhagen, Denmark
Registered: 2007-01-09
Posts: 107
Website

Re: Error: '' is not an integer

ruud wrote:

Hmm… because it says “at line 8”, I suspect that it’s the Status variable. The only way that error could occur is if you somehow do not select any of the Status radio buttons or if the entire set of Status radio buttons was removed. I can reproduce this by using the webdeveloper extension in Firefox to clear all radio buttons.

I had an article set to Draft and then I switched it to Live and got the error

Offline

#5 2007-07-15 16:27:43

uli
Moderator
From: Cologne
Registered: 2006-08-15
Posts: 4,316

Re: Error: '' is not an integer

Henrik, sounds like what I encountered some months ago. Do you use hak_tiny_mce? At the time I had these troubles I was using tinymce 0.6.3a. Since I’m using v0.7.1 everything’s working fine again.

Last edited by uli (2007-07-15 16:28:21)


In bad weather I never leave home without wet_plugout, smd_where_used and adi_form_links

Offline

Board footer

Powered by FluxBB