Problems with mymood plugin
Posted: Thu Mar 30, 2006 11:30 pm
Hi all,
I installed the mymood plugin - so far so good. When I try to write a new blog entry, I am getting an Error Message:
When I checked the 'traceback', the following thing came to my attention:
It seems the third parameter passed to 'serendipity_printentryform' is an empty array. I am wondering what the third parameter is used for and if it should really be an empty array ...
Update:
I added two checks if an entry id is passed to the backend_display hook. I wonder though, why backend_display is executed when I want to write a new entry? shouldn't there be different hooks for editing an existing entry and creating a new one?
when does backend_entryform get called exactly? whenever the form for entering title, text is displayed ?
I installed the mymood plugin - so far so good. When I try to write a new blog entry, I am getting an Error Message:
The first obvious thing is: entryid is empty, defined as integer and unfortunately the value is enclosed in quotes, which postgres will not accept on numeric values (well at least integer) ...Warning: pg_query(): Query failed: ERROR: invalid input syntax for integer: "" in .../serendipity/include/db/postgres.inc.php on line 207
Error in SELECT value FROM serendipity_entryproperties WHERE entryid = '' AND property = 'mymood'
ERROR: invalid input syntax for integer: ""
When I checked the 'traceback', the following thing came to my attention:
Code: Select all
array (
'file' => '/var/www/vhosts/block.verfeiert.org/serendipity/include/admin/entries.inc.php',
'line' => 476,
'function' => 'serendipity_printentryform',
'args' =>
array (
0 => '?',
1 =>
array (
'serendipity[action]' => 'admin',
'serendipity[adminModule]' => 'entries',
'serendipity[adminAction]' => 'save',
),
2 =>
array (
),
),
),
Update:
I added two checks if an entry id is passed to the backend_display hook. I wonder though, why backend_display is executed when I want to write a new entry? shouldn't there be different hooks for editing an existing entry and creating a new one?
when does backend_entryform get called exactly? whenever the form for entering title, text is displayed ?