3.2 database fix

Author Message

Tony Wood

Wednesday 20 August 2003 12:20:50 pm

The kernelclean sql nis missing two fields in ezcontentobject_tree
I needed to add the following two lines.

crc32_path varchar(255) default '',
md5_path varchar(255) default '',

I would have preferred NOT NULL but the first line 771 in demo data contains NULL data.

I hope this helps

Tony

Tony Wood : twitter.com/tonywood
Vision with Technology
Experts in eZ Publish consulting & development

Power to the Editor!

Free eZ Training : http://www.VisionWT.com/training
eZ Future Podcast : http://www.VisionWT.com/eZ-Future

Bård Farstad

Wednesday 20 August 2003 12:24:27 pm

You should not need these fields. They are deprecated.

Make sure you've cleared PHP Accelerator cache before installation.

--bård

Documentation: http://ez.no/doc

Tony Wood

Wednesday 20 August 2003 12:33:15 pm

Wow.. spot on.. it was accelerator cache.. ignore next post too... it works now..

The insert in Demo data contains
INSERT INTO ezcontentobject_tree (node_id, parent_node_id, contentobject_id, contentobject_version, contentobject_is_published, crc32_path, depth, path_string, sort_field, sort_order, priority, path_identification_string, main_node_id, md5_path) VALUES (1,1,0,1,1,NULL,0,'/1/',1,1,0,NULL,1,NULL);
so it balked if i didn't have it

Tony Wood : twitter.com/tonywood
Vision with Technology
Experts in eZ Publish consulting & development

Power to the Editor!

Free eZ Training : http://www.VisionWT.com/training
eZ Future Podcast : http://www.VisionWT.com/eZ-Future

Tony Wood

Wednesday 20 August 2003 12:38:49 pm

I've not looked at 3.2 before now, we have been too busy. I must say, it looks lovely.

Nice work :)

Tony Wood : twitter.com/tonywood
Vision with Technology
Experts in eZ Publish consulting & development

Power to the Editor!

Free eZ Training : http://www.VisionWT.com/training
eZ Future Podcast : http://www.VisionWT.com/eZ-Future

Don MacLeod

Wednesday 17 September 2003 6:33:03 am

I've just tried to load the demo data (demodata.sql) for 3.2. I also get the same problem as above ......

ERROR 1054 at line 771: Unknown column 'crc32_path' in 'field list'.

This is on a db server without PHP installed so is not related to the above mentioned PHP Accelerator issue.

Also, the install doc differs from the files included in the distribution in that it mentions "demokernel.sql". This is NOT included - instead it is "demodata.sql".

Any ideas?

Tony Wood

Wednesday 17 September 2003 7:04:23 am

Don, try using the installer, that works fine for Demo setups.

Tony Wood : twitter.com/tonywood
Vision with Technology
Experts in eZ Publish consulting & development

Power to the Editor!

Free eZ Training : http://www.VisionWT.com/training
eZ Future Podcast : http://www.VisionWT.com/eZ-Future

Don MacLeod

Wednesday 17 September 2003 7:39:42 am

Tony

OK thanks, but I already have apache, php, mysql, ImageMagick setup and working well so wanted to avoid the installer. In any case it was the unstable version I was trying to install (Beta 2) and so have gone for the main 3.2 (stable). In that version there is no demodata.sql available anyway!

Just really wanted to get demo stuff in there to play around with.

Don.

Tony Wood

Wednesday 17 September 2003 7:54:23 am

sorry, I meant using the eZ HTML installer for the demo.

[SiteAccessSettings]
CheckValidity=true

This will take you thru the installer for a project.

I agree, if you have your system setup they way you want it don't use the binary installer, it could make a mess.

tony

Tony Wood : twitter.com/tonywood
Vision with Technology
Experts in eZ Publish consulting & development

Power to the Editor!

Free eZ Training : http://www.VisionWT.com/training
eZ Future Podcast : http://www.VisionWT.com/eZ-Future

Jan Borsodi

Wednesday 17 September 2003 7:58:28 am

The demodata.sql is no longer part of the distribution and is depracated. All demo data has been split into 8 eight separate packages which are found in the kernel/setup/packages directory. To install this the setup must be used or install the sql under the sql directory in the package directory (eg. kernel/setup/packages/bookshop/sql/mysql/bookshop.sql)

--
Amos

Documentation: http://ez.no/ez_publish/documentation
FAQ: http://ez.no/ez_publish/documentation/faq

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 19:30:00
Script start
Timing: Jan 18 2025 19:30:00
Module start 'layout'
Timing: Jan 18 2025 19:30:00
Module start 'content'
Timing: Jan 18 2025 19:30:01
Module end 'content'
Timing: Jan 18 2025 19:30:01
Script end

Main resources:

Total runtime0.9929 sec
Peak memory usage4,096.0000 KB
Database Queries79

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0060 587.7969152.6094
Module start 'layout' 0.00600.0028 740.406339.4141
Module start 'content' 0.00870.9826 779.8203692.4453
Module end 'content' 0.99130.0015 1,472.265624.1875
Script end 0.9928  1,496.4531 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00370.3676160.0002
Check MTime0.00170.1711160.0001
Mysql Total
Database connection0.00150.149710.0015
Mysqli_queries0.905791.2237790.0115
Looping result0.00110.1134770.0000
Template Total0.958196.520.4791
Template load0.00240.239220.0012
Template processing0.955796.252920.4778
Template load and register function0.00010.009610.0001
states
state_id_array0.00120.118510.0012
state_identifier_array0.00110.106420.0005
Override
Cache load0.00210.2128510.0000
Sytem overhead
Fetch class attribute can translate value0.00070.071140.0002
Fetch class attribute name0.00160.1621120.0001
XML
Image XML parsing0.00170.168040.0004
class_abstraction
Instantiating content class attribute0.00000.0047160.0000
General
dbfile0.00110.1106300.0000
String conversion0.00000.000740.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
7content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
9content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
4content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
12content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 34
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs