ezFlow and Posgres db

Author Message

juan uribe

Friday 05 December 2008 3:12:55 pm

lots of problems.

First install dosen't work. had to modify mysql.sql scripts so that they would work.

Now it's bracking when I try and move the block. had to modify:
extension\ezflow\datatypes\ezpage\ezpagetype.php so that the update would work.

Is there and update that will make this module stable?

Thx

Kristof Coomans

Friday 05 December 2008 3:28:31 pm

Hello Juan, and welcome to the eZ community!

It seems like eZ Flow 1.1 will have some improvements to install it on PostgreSQL, there will be for example a separate SQL file for it ( ezflow/sql/postgresql/postgresql.sql ).
I don't know about the ezpagetype datatype, can you tell us what exactly you had to change to make it work? Thanks!

independent eZ Publish developer and service provider | http://blog.coomanskristof.be | http://ezpedia.org

Gaetano Giunta

Sunday 07 December 2008 6:48:40 am

If you're impatient, take a look at issues.ez.no and search for ezflow+oracle. You will find bug reports and patches that most likely will apply with prostgres too.

Principal Consultant International Business
Member of the Community Project Board

juan uribe

Tuesday 09 December 2008 10:25:24 am

thanks, for your feedback. Actually I did look into the Oracle support and found several posts but 2 things happend. First no link to the updated files, and Two one of the problems didn't seem to be solved.

What I actually did was find 1.1 release code and used the postgresql.sql file and renamed it as mysql.sql so that install would work.

The code I had to go in and fix is under function:
"onPublish( $contentObjectAttribute, $contentObject, $publishedNodes )"

case 'modify':
    $db->query( "UPDATE ezm_pool SET ts_publication='0" . $item->attribute( 'ts_publication' ) . "'
    WHERE object_id='0" . $item->attribute( 'object_id' ) . "'" );
break;

Notice the object_id='0"

1) I think that object_id since it is integer it should not be enclosed in single brakets
2) for some reason $item->attribute( 'object_id' ) seams to be null or blank so I append a 0 so that if it is blank it will be changed to '0' other wise it will be a number with a leading 0 wich won't change the value.

I will keep on updateing if I find any other issues.

Thanks for the welcome to ez.

Gaetano Giunta

Tuesday 09 December 2008 3:12:15 pm

1) I think that object_id since it is integer it should not be enclosed in single brakets

a bad habit from eZ coders that were raised on milk and mysql. Does not hurt correctness on other dbs, even though some recommend removing quotes for speed...

2) for some reason $item->attribute( 'object_id' ) seams to be null or blank so I append a 0 so that if it is blank it will be changed to '0' other wise it will be a number with a leading 0 which won't change the value.

I'd say you should log an error instead, as you have some inconsistent data at this point...

Principal Consultant International Business
Member of the Community Project Board

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 18 2025 04:15:25
Script start
Timing: Jan 18 2025 04:15:25
Module start 'layout'
Timing: Jan 18 2025 04:15:25
Module start 'content'
Timing: Jan 18 2025 04:15:25
Module end 'content'
Timing: Jan 18 2025 04:15:25
Script end

Main resources:

Total runtime0.2120 sec
Peak memory usage4,096.0000 KB
Database Queries67

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0055 587.9375152.6250
Module start 'layout' 0.00550.0053 740.562539.4453
Module start 'content' 0.01080.1997 780.0078607.1875
Module end 'content' 0.21050.0015 1,387.195316.1641
Script end 0.2120  1,403.3594 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00371.7328160.0002
Check MTime0.00160.7524160.0001
Mysql Total
Database connection0.00090.412210.0009
Mysqli_queries0.144668.2251670.0022
Looping result0.00070.3511650.0000
Template Total0.169479.920.0847
Template load0.00221.047420.0011
Template processing0.167278.867020.0836
Template load and register function0.00020.099010.0002
states
state_id_array0.00180.838710.0018
state_identifier_array0.00150.689120.0007
Override
Cache load0.00190.9038340.0001
Sytem overhead
Fetch class attribute can translate value0.00090.447630.0003
Fetch class attribute name0.00150.716570.0002
XML
Image XML parsing0.00210.969430.0007
class_abstraction
Instantiating content class attribute0.00000.008180.0000
General
dbfile0.00130.6086220.0001
String conversion0.00000.005440.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
5content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
10content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
4content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
3content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 25
 Number of unique templates used: 7

Time used to render debug report: 0.0001 secs