serendipity_event_staticblocks

Creating and modifying plugins.
Post Reply
JWalker
Regular
Posts: 177
Joined: Mon Sep 12, 2005 4:14 pm
Location: Botevgrad, Bulgaria
Contact:

serendipity_event_staticblocks

Post by JWalker »

Hi,

Here is what I received, when updated an entry template
(don't mind international characters, these are Cyrillic letters).

Done: The new settings have been saved at 14:49:52
ERROR:

Code: Select all

UPDATE serendipity_staticblocks SET id='7', title='Íîâà âåðñèÿ mm.nn', type='template', body='

Ïóñêàíå íà íîâà âåðñèÿ â ðåäîâíî ïðîèçâîäñòâî.

Âåðñèÿ : mm.nn (ñòàðà âåðñèÿ mm.nn)
SVN ðåâèçèÿ : nn, nnnnnn/tags/mm.nn

Îñíîâàíèå

Òóê ñå îïèñâàò ïðè÷èíèòå çà ïóñêàíåòî íà âåðñèÿòà.

Ïðîìåíè

Òóê ñå îïèñâàò ïðîìåíèòå íàïðàâåíè îò ïðåäèøíàòà äî íîâàòà âåðñèÿ.

', extended='', template='plugin_staticblock.tpl', apply_markup='', author='', authorid='2', last_modified='1143202683', timestamp='1143202683' WHERE id='7'

/ Out of range value adjusted for column 'apply_markup' at row 1
The template remains unchanged nevertheless the message 'Done: The new settings have been saved at 14:49:52'. It seems some database error happened here...

Then I tried to insert new template and the result is:

Code: Select all

ERROR:

INSERT INTO serendipity_staticblocks (type,title,body,extended,template,apply_markup,timestamp,last_modified,authorid,author) values ('template', 'new one for test', 'This is new one.\r\n', '\r\n', 'plugin_staticblock.tpl', '', '1177070161', '1177070161', '2', '')

/ Out of range value adjusted for column 'apply_markup' at row 1
My blog is not visible to the public, so if someone here put some hints I'll try to cure the situation by myself.
Ivan Cenov
OKTO-7 Co., Botevgrad
Bulgaria
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: serendipity_event_staticblocks

Post by garvinhicking »

Hi!

Which database are you using?

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: serendipity_event_staticblocks

Post by garvinhicking »

Hi!

Just committed a fix that should get it to work on pgsql.

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
JWalker
Regular
Posts: 177
Joined: Mon Sep 12, 2005 4:14 pm
Location: Botevgrad, Bulgaria
Contact:

Post by JWalker »

MySQL 5.0.27-community-nt
Ivan Cenov
OKTO-7 Co., Botevgrad
Bulgaria
JWalker
Regular
Posts: 177
Joined: Mon Sep 12, 2005 4:14 pm
Location: Botevgrad, Bulgaria
Contact:

Post by JWalker »

The patch works with MySQL, and of course, the plugin is 'serendipity_event_includeentry' ... :o I didn't read what I had written.
Ivan Cenov
OKTO-7 Co., Botevgrad
Bulgaria
Post Reply