Forums / Extensions / eZ Flow / ezFlow and Posgres db

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

eZ debug

Timing: Jan 18 2025 02:06:51
Script start
Timing: Jan 18 2025 02:06:51
Module start 'content'
Timing: Jan 18 2025 02:06:51
Module end 'content'
Timing: Jan 18 2025 02:06:51
Script end

Main resources:

Total runtime0.3332 sec
Peak memory usage4,096.0000 KB
Database Queries204

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0082 587.7344180.7891
Module start 'content' 0.00820.1249 768.5234612.2656
Module end 'content' 0.13310.2001 1,380.7891337.3750
Script end 0.3331  1,718.1641 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00421.2504210.0002
Check MTime0.00160.4730210.0001
Mysql Total
Database connection0.00060.190810.0006
Mysqli_queries0.249374.83032040.0012
Looping result0.00320.95882020.0000
Template Total0.294288.320.1471
Template load0.00200.587420.0010
Template processing0.292387.713120.1461
Template load and register function0.00020.066910.0002
states
state_id_array0.00090.276110.0009
state_identifier_array0.00080.242220.0004
Override
Cache load0.00160.4944340.0000
Sytem overhead
Fetch class attribute can translate value0.00120.372740.0003
Fetch class attribute name0.00140.420370.0002
XML
Image XML parsing0.00120.371640.0003
class_abstraction
Instantiating content class attribute0.00000.004980.0000
General
dbfile0.00621.8617330.0002
String conversion0.00000.002930.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

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
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 25
 Number of unique templates used: 7

Time used to render debug report: 0.0002 secs