-
Notifications
You must be signed in to change notification settings - Fork 2.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
uncaught exception BadMethodCallException #472
Comments
Same for me.
and error 15:25:21 error ...exception 'BadMethodCallException' with message 'Cannot add Title in Cell.' in /Library/WebServer/AMCloud/vendor/phpoffice/phpword/src/PhpWord/Element/AbstractContainer.php:228 Stack trace: #0 /Library/WebServer/AMCloud/vendor/phpoffice/phpword/src/PhpWord/Element/AbstractContainer.php(130): PhpOffice\PhpWord\Element\AbstractContainer->checkValidity('Title') #1 [internal function]: PhpOffice\PhpWord\Element\AbstractContainer->addElement('Title', '4 Bakersgate Co...', '1') #2 /Library/WebServer/AMCloud/vendor/phpoffice/phpword/src/PhpWord/Element/AbstractContainer.php(112): call_user_func_array(Array, Array) #3 /Library/WebServer/AMCloud/vendor/phpoffice/phpword/src/PhpWord/Reader/Word2007/AbstractPart.php(159): PhpOffice\PhpWord\Element\AbstractContainer->__call('addTitle', Array) #4 /Library/WebServer/AMCloud/vendor/phpoffice/phpword/src/PhpWord/Reader/Word2007/AbstractPart.php(159): PhpOffice\PhpWord\Element\Cell->addTitle('4 Bakersgate Co...', '1') #5 /Library/WebServer/AMCloud/vendor/phpoffice/phpword/src/PhpWord/Reader/Word2007/AbstractPart.php(298): PhpOffice\PhpWord\Reader\Word2007\AbstractPart->readParagraph(Object(PhpOffice\PhpWord\Shared\XMLReader), Object(DOMElement), Object(PhpOffice\PhpWord\Element\Cell), 'document') #6 /Library/WebServer/AMCloud/vendor/phpoffice/phpword/src/PhpWord/Reader/Word2007/Document.php(58): PhpOffice\PhpWord\Reader\Word2007\AbstractPart->readTable(Object(PhpOffice\PhpWord\Shared\XMLReader), Object(DOMElement), Object(PhpOffice\PhpWord\Element\Section)) #7 /Library/WebServer/AMCloud/vendor/phpoffice/phpword/src/PhpWord/Reader/Word2007.php(94): PhpOffice\PhpWord\Reader\Word2007\Document->read(Object(PhpOffice\PhpWord\PhpWord)) #8 /Library/WebServer/AMCloud/vendor/phpoffice/phpword/src/PhpWord/Reader/Word2007.php(69): PhpOffice\PhpWord\Reader\Word2007->readPart(Object(PhpOffice\PhpWord\PhpWord), Array, 'Document', 'docs/newfile.do...', 'word/document.x...') #9 /Library/WebServer/AMCloud/vendor/phpoffice/phpword/src/PhpWord/IOFactory.php(78): PhpOffice\PhpWord\Reader\Word2007->load('docs/newfile.do...') #10 /Library/WebServer/AMCloud/cwd.php(148): PhpOffice\PhpWord\IOFactory::load('docs/newfile.do...') #11 {main} |
More here:
BadMethodCallException in AbstractContainer.php line 228: Has there been any movement on this? |
Any news? |
fixed in 0.14 |
docx file
http://www.filedropper.com/141228magmafaktura334andershermansen
error
PHP Fatal error: Uncaught exception 'BadMethodCallException' with message 'Cannot add PreserveText in Cell.' in /var/www/dyntest.dk/class/third-party/phpword/Element/AbstractContainer.php:276
Stack trace:
#0 /var/www/dyntest.dk/class/third-party/phpword/Element/AbstractContainer.php(119): PhpOffice\PhpWord\Element\AbstractContainer->checkValidity('PreserveText')
#1 [internal function]: PhpOffice\PhpWord\Element\AbstractContainer->addElement('PreserveText', '{ =SUM(ABOVE) }', NULL, Array)
#2 /var/www/dyntest.dk/class/third-party/phpword/Element/AbstractContainer.php(101): call_user_func_array(Array, Array)
#3 /var/www/dyntest.dk/class/third-party/phpword/Reader/Word2007/AbstractPart.php(137): PhpOffice\PhpWord\Element\AbstractContainer->__call('addPreserveText', Array)
#4 /var/www/dyntest.dk/class/third-party/phpword/Reader/Word2007/AbstractPart.php(137): PhpOffice\PhpWord\Element\Cell->addPreserveText('{ =SUM(ABOVE) }', NULL, Array)
#5 /var/www/dyntest.dk/class/third-party/phpword/Reader/Word2007/AbstractPart.php(294): PhpOff in /var/www/dyntest.dk/class/third-party/phpword/Element/AbstractContainer.php on line 276
Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.
The text was updated successfully, but these errors were encountered: