Forum


Replies: 7   Views: 3266
Creating more than one docx results in corrupt files
Topic closed:
Please note this is an old forum thread. Information in this post may be out-to-date and/or erroneous.
Every phpdocx version includes new features and improvements. Previously unsupported features may have been added to newer releases, or past issues may have been corrected.
We encourage you to download the current phpdocx version and check the Documentation available.

Posted by hchandler  · 11-04-2013 - 12:13

I did a little research with PackageExplorerer on the original file and the file repaired (163 repair ..) by MS Word. There errors between the two are the same - except the corrupted file seems to have a foot1.xml that was removed when MS Word automatically fixed the corrupted file. There were also other errors, but they were the same between the two files.

Anyone have footer issues? I don't have a header/footer in my templates.

This is what was in the corrupt file that wasn't in the fixed file:
Validating /word/footer1.xml
The 'http://schemas.openxmlformats.org/markup-compatibility/2006:Ignorable' attribute is not declared


From the tool:
Validation of '163 repair IUI Exclusivity Agreement.docx' started at 11:58 PM

Validating /customXml/item1.xml
Validating /customXml/item2.xml
Validating /customXml/item3.xml
Validating /customXml/itemProps1.xml
Validating /customXml/itemProps2.xml
Validating /customXml/itemProps3.xml
Validating /docProps/app.xml
Validating /docProps/core.xml
Validating /word/document.xml
The 'http://schemas.openxmlformats.org/markup-compatibility/2006:Ignorable' attribute is not declared.
The element 'anchor' in namespace 'http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing' has invalid child element 'sizeRelH' in namespace 'http://schemas.microsoft.com/office/word/2010/wordprocessingDrawing'.
Validating /word/fontTable.xml
The 'http://schemas.openxmlformats.org/markup-compatibility/2006:Ignorable' attribute is not declared.
Skipping /word/media/image1.png
Validating /word/settings.xml
The 'http://schemas.openxmlformats.org/markup-compatibility/2006:Ignorable' attribute is not declared.
The element 'compat' in namespace 'http://schemas.openxmlformats.org/wordprocessingml/2006/main' has invalid child element 'compatSetting' in namespace 'http://schemas.openxmlformats.org/wordprocessingml/2006/main'. List of possible elements expected: 'useSingleBorderforContiguousCells, wpJustification, noTabHangInd, noLeading, spaceForUL, noColumnBalance, balanceSingleByteDoubleByteWidth, noExtraLineSpacing, doNotLeaveBackslashAlone, ulTrailSpace, doNotExpandShiftReturn, spacingInWholePoints, lineWrapLikeWord6, printBodyTextBeforeHeader, printColBlack, wpSpaceWidth, showBreaksInFrames, subFontBySize, suppressBottomSpacing, suppressTopSpacing, suppressSpacingAtTopOfPage, suppressTopSpacingWP, suppressSpBfAfterPgBrk, swapBordersFacingPages, convMailMergeEsc, truncateFontHeightsLikeWP6, mwSmallCaps, usePrinterMetrics, doNotSuppressParagraphBorders, wrapTrailSpaces, footnoteLayoutLikeWW8, shapeLayoutLikeWW8, alignTablesRowByRow, forgetLastTabAlignment, adjustLineHeightInTable, autoSpaceLikeWord95, noSpaceRaiseLower, doNotUseHTMLParagraphAutoSpacing, layoutRawTableWidth, layoutTableRowsApart, useWord97LineBreakRules, doNotBreakWrappedTables, doNotSnapToGridInCell, selectFldWithFirstOrLastChar, applyBreakingRules, doNotWrapTextWithPunct, doNotUseEastAsianBre....
The 'http://schemas.openxmlformats.org/officeDocument/2006/math:val' attribute is invalid - The value '0' is invalid according to its datatype 'http://schemas.openxmlformats.org/officeDocument/2006/math:ST_OnOff' - The Enumeration constraint failed.
Validating /word/styles.xml
The 'http://schemas.openxmlformats.org/markup-compatibility/2006:Ignorable' attribute is not declared.
Validating /word/stylesWithEffects.xml
The 'http://schemas.openxmlformats.org/markup-compatibility/2006:Ignorable' attribute is not declared.
Validating /word/theme/theme1.xml
Validating /word/webSettings.xml
The 'http://schemas.openxmlformats.org/markup-compatibility/2006:Ignorable' attribute is not declared.
Validation found errors

Validation of '163 - 270643 Enterprise Architect IUI Exclusivity Agreement.docx' started at 11:59 PM

Validating /customXml/item1.xml
Validating /customXml/item2.xml
Validating /customXml/item3.xml
Validating /customXml/itemProps1.xml
Validating /customXml/itemProps2.xml
Validating /customXml/itemProps3.xml
Validating /docProps/app.xml
Validating /docProps/core.xml
Validating /word/document.xml
The 'http://schemas.openxmlformats.org/markup-compatibility/2006:Ignorable' attribute is not declared.
The element 'anchor' in namespace 'http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing' has invalid child element 'sizeRelH' in namespace 'http://schemas.microsoft.com/office/word/2010/wordprocessingDrawing'.
Validating /word/fontTable.xml
The 'http://schemas.openxmlformats.org/markup-compatibility/2006:Ignorable' attribute is not declared.
Validating /word/footer1.xml
The 'http://schemas.openxmlformats.org/markup-compatibility/2006:Ignorable' attribute is not declared.
Skipping /word/media/image1.png
Validating /word/settings.xml
The 'http://schemas.openxmlformats.org/markup-compatibility/2006:Ignorable' attribute is not declared.
The element 'compat' in namespace 'http://schemas.openxmlformats.org/wordprocessingml/2006/main' has invalid child element 'compatSetting' in namespace 'http://schemas.openxmlformats.org/wordprocessingml/2006/main'. List of possible elements expected: 'useSingleBorderforContiguousCells, wpJustification, noTabHangInd, noLeading, spaceForUL, noColumnBalance, balanceSingleByteDoubleByteWidth, noExtraLineSpacing, doNotLeaveBackslashAlone, ulTrailSpace, doNotExpandShiftReturn, spacingInWholePoints, lineWrapLikeWord6, printBodyTextBeforeHeader, printColBlack, wpSpaceWidth, showBreaksInFrames, subFontBySize, suppressBottomSpacing, suppressTopSpacing, suppressSpacingAtTopOfPage, suppressTopSpacingWP, suppressSpBfAfterPgBrk, swapBordersFacingPages, convMailMergeEsc, truncateFontHeightsLikeWP6, mwSmallCaps, usePrinterMetrics, doNotSuppressParagraphBorders, wrapTrailSpaces, footnoteLayoutLikeWW8, shapeLayoutLikeWW8, alignTablesRowByRow, forgetLastTabAlignment, adjustLineHeightInTable, autoSpaceLikeWord95, noSpaceRaiseLower, doNotUseHTMLParagraphAutoSpacing, layoutRawTableWidth, layoutTableRowsApart, useWord97LineBreakRules, doNotBreakWrappedTables, doNotSnapToGridInCell, selectFldWithFirstOrLastChar, applyBreakingRules, doNotWrapTextWithPunct, doNotUseEastAsianBre....
The 'http://schemas.openxmlformats.org/officeDocument/2006/math:val' attribute is invalid - The value '0' is invalid according to its datatype 'http://schemas.openxmlformats.org/officeDocument/2006/math:ST_OnOff' - The Enumeration constraint failed.
Validating /word/styles.xml
The 'http://schemas.openxmlformats.org/markup-compatibility/2006:Ignorable' attribute is not declared.
Validating /word/stylesWithEffects.xml
The 'http://schemas.openxmlformats.org/markup-compatibility/2006:Ignorable' attribute is not declared.
Validating /word/theme/theme1.xml
Validating /word/webSettings.xml
The 'http://schemas.openxmlformats.org/markup-compatibility/2006:Ignorable' attribute is not declared.
Validation found errors