tried copy bug fix, but now getting new error

Author Message

ben m

Wednesday 27 August 2003 5:15:12 pm

per liu's bug fix message

(http://www.ez.no/developer/ez_publish_3/bug_reports/copying_content_object_does_not_work)

I added the line of code: $contentObject->setName( $newname );

both above and below the line: eZDebugSetting::writeDebug( 'kernel-content-object-copy', $contentObjectVersion, 'Copied version' ); as line 724 & 725.

Now I get a error: "Fatal error: Call to undefined function: copy() in .../kernel/content/copy.php on line 55"
and am still unable to copy objects. There is a comment appended to the bug fix which seems to indicate that the fix is not sufficient. Are there additional changes that need to be made? I have found no additional posts on this topic...

thanks!
Ben

Bruce Morrison

Wednesday 27 August 2003 6:12:32 pm

Hi Ben

I've also tried this and am am convinced that the fix doesn't work. The variable $newname doesn't appear to be set in the file indicated.

This bug also exists in 3.2 beta 1

Cheers
Bruce
designIT

My Blog: http://www.stuffandcontent.com/
Follow me on twitter: http://twitter.com/brucemorrison
Consolidated eZ Publish Feed : http://friendfeed.com/rooms/ez-publish

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 31 2025 04:29:56
Script start
Timing: Jan 31 2025 04:29:56
Module start 'layout'
Timing: Jan 31 2025 04:29:56
Module start 'content'
Timing: Jan 31 2025 04:29:57
Module end 'content'
Timing: Jan 31 2025 04:29:57
Script end

Main resources:

Total runtime1.2453 sec
Peak memory usage4,096.0000 KB
Database Queries54

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0070 588.2656151.2266
Module start 'layout' 0.00700.0034 739.492236.6797
Module start 'content' 0.01041.2341 776.1719918.6797
Module end 'content' 1.24450.0008 1,694.85167.8125
Script end 1.2453  1,702.6641 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00340.2735160.0002
Check MTime0.00130.1074160.0001
Mysql Total
Database connection0.00140.110410.0014
Mysqli_queries1.190995.6294540.0221
Looping result0.00050.0392520.0000
Template Total1.207697.020.6038
Template load0.00210.168120.0010
Template processing1.205596.801120.6027
Template load and register function0.00160.125810.0016
states
state_id_array0.00090.071110.0009
state_identifier_array0.00120.094920.0006
Override
Cache load0.00170.1345190.0001
Sytem overhead
Fetch class attribute can translate value0.00070.058420.0004
Fetch class attribute name0.00220.178030.0007
XML
Image XML parsing0.00060.049020.0003
class_abstraction
Instantiating content class attribute0.00000.001030.0000
General
dbfile0.00080.0680160.0001
String conversion0.00000.000640.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
2content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
5content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
3content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 13
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs