ERROR: invalid input syntax for integer: ""

Author Message

Timothy Stone

Friday 16 September 2005 10:18:52 am

Configuration:

eZpublish 3.7rc2
postgresql 8.0.3
Mac OS X (Tiger 10.4.2)
PHP 4.4.0
Apache 2 (+FastCGI)

The Setup Wizard finally gets where to the end, and following submission for registration of ezpublish, the PostgreSQL log "comes alive" with ALTER statements, then the index.php displays:

-------
<b>Fatal error:</b> eZ publish did not finish its request

The execution of eZ publish was abruptly ended, the debug output is present below.
-------

No "debug output" is actually presented but the PostgreSQL log notes the following:

-------

...
...
NOTICE:  ALTER TABLE / ADD PRIMARY KEY will create implicit index "ezworkflow_event_pkey" for table "ezworkflow_event"
NOTICE:  ALTER TABLE / ADD PRIMARY KEY will create implicit index "ezworkflow_group_pkey" for table "ezworkflow_group"
NOTICE:  ALTER TABLE / ADD PRIMARY KEY will create implicit index "ezworkflow_group_link_pkey" for table "ezworkflow_group_link"
NOTICE:  ALTER TABLE / ADD PRIMARY KEY will create implicit index "ezworkflow_process_pkey" for table "ezworkflow_process"
ERROR:  invalid input syntax for integer: ""
ERROR:  invalid input syntax for integer: ""

Based on other information found on other sites, it appears that this is a problem with the script <b>assuming</b> "" (empty string) is equivalent to "0" (zero). PostgreSQL does not permit this (v. MySQL which apparently, and incorrectly I might add, does permit "" == "0")

So, since no one has posted a solution to this, lets talk. Where might this error be coming from? What script? I would rather fix the script than hack PostgreSQL into accepting a bad practice.

Thanks,
Tim

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 19 2025 01:21:37
Script start
Timing: Jan 19 2025 01:21:37
Module start 'layout'
Timing: Jan 19 2025 01:21:37
Module start 'content'
Timing: Jan 19 2025 01:21:37
Module end 'content'
Timing: Jan 19 2025 01:21:37
Script end

Main resources:

Total runtime0.0204 sec
Peak memory usage2,048.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0047 590.4141152.6406
Module start 'layout' 0.00470.0030 743.054739.4922
Module start 'content' 0.00770.0105 782.546989.4141
Module end 'content' 0.01830.0021 871.960930.3047
Script end 0.0203  902.2656 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002512.1299140.0002
Check MTime0.00115.1820140.0001
Mysql Total
Database connection0.00073.207610.0007
Mysqli_queries0.002512.313830.0008
Looping result0.00000.069110.0000
Template Total0.00167.810.0016
Template load0.00094.327110.0009
Template processing0.00073.418410.0007
Override
Cache load0.00063.060010.0006
General
dbfile0.00020.983780.0000
String conversion0.00000.044540.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs