ez projects / ezsurvey_ezp4 / forum / general / working in 4.1 beta? / re: working in 4.1 beta?
You need to be logged in to post messages in the forums. New users may register here.
Member since: Posts: 9 |
Tuesday 10 March 2009 7:54:58 pm I was testing this extension for a new possible project. Because 4.1 will be released in one week, I'm using 4.1beta1 / ez components 2008.2 for testing.
I get following error when trying to create a "Single/Multiple Choice" attribute: Fatal error: Class 'eZDOMDocument' not found in /var/www/ezpublish-4.1.0beta1/extension/ezsurvey/modules/survey/classes/ezsurveymultiplechoice.php on line 188 Fatal error: eZ Publish did not finish its request The execution of eZ Publish was abruptly ended, the debug output is present below. Line 188 is: $doc = new eZDOMDocument(); Same error with Formreciever: Fatal error: Class 'eZDOMDocument' not found in /var/www/ezpublish-4.1.0beta1/extension/ezsurvey/modules/survey/classes/ezsurveyreceiver.php on line 144 I will test it in a ezp 4.0.x install if there are the same errors... but any comments are welcome... eZ Partner in Madrid (Spain) |
|
|
Member since: Posts: 39 |
Wednesday 11 March 2009 11:10:12 am Seems like the library for ezxml (lib/ezxml) are removed for eZ Publish 4.1beta1. This means that xml handling in eZ Survey need to be rewritten.
|
|
|
Member since: Posts: 39 |
Monday 16 March 2009 4:58:10 pm I've rewritten the xml handling to use DomDocument instead of eZDomDocument.
The changes are added to svn rev. 63. http://svn.projects.ez.no/ezsurvey_ezp4/trunk/extension/ezsurvey Feel free to test the version with 4.1.beta1. This version should also be backwards compatible. |
|
Member since: Posts: 8 |
Wednesday 03 June 2009 3:07:39 pm Hello,
Sorry to mention, but calls to ezxml library exist in classes files, e.g. the following file still use eZXML class ezsurveyformattedparagraph.php - 1 occurrence Shall create the patch and post it here soon. Regards |
|
Member since: Posts: 8 |
Wednesday 03 June 2009 5:22:29 pm Index: extension/ezsurvey/modules/survey/classes/ezsurveyformattedparagraph.php =================================================================== --- extension/ezsurvey/modules/survey/classes/ezsurveyformattedparagraph.php (revision 65) +++ extension/ezsurvey/modules/survey/classes/ezsurveyformattedparagraph.php (working copy) @@ -104,9 +104,9 @@ $domString = preg_replace( "#</line>#", "\n", $domString ); $domString = preg_replace( "#<paragraph>#", "\n\n", $domString ); - $xml = new eZXML(); - $tmpDom = $xml->domTree( $domString, array( 'CharsetConversion' => false ) ); - $domString = eZXMLTextType::domString( $tmpDom ); + $dom = new DOMDocument( '1.0', 'utf-8' ); + $dom->loadXML( $domString ); + $domString = eZXMLTextType::domString( $dom ); $this->setAttribute( 'text', $domString ); } The only question is whether Formatted Paragraph entry really is used. I haven't seen it in the list of available attributes for survey. |
|
|
Member since: Posts: 39 |
Wednesday 03 June 2009 6:36:02 pm Hi,
The Formatted Paragraph entry is not used in eZ Survey and is the only survey attribute that is not used. The attribute was created for the first eZ Survey module for eZ Publish 3 but had to much issues, so I decided to not have it included in this version. However, if you want to experiment, you can enable the survey attribute here: extension/ezsurvey/settings/ezsurvey.ini.append.php [QuestionTypeSettings_ezsurvey] QuestionTypeList[]=formattedparagraph |
You need to be logged in to post messages in the forums. New users may register here.