cancel
Showing results for 
Search instead for 
Did you mean: 

4.2.f and alfresco-rm, break Wiki ? Forum ?

hoteia
Champ in-the-making
Champ in-the-making
Hi,

I'm using 4.2.f with wcmqs amp, wiki, forum. works good.

I had try the alfresco-rm AMP 2.1.a, but it is not what i need, so i had undeploy this amp and it looks like this break :

- the wiki : i can't create a new page or rename the main page
Javascript error when i try to create a page (log a the end of this message) : TypeError: j.json is null

- forum : i can create message, but can't delete it

So i try to redeploy 2.1.a, but this new version doesn't fix the issues. I try to upgrade with the 2.1.1. Nothing happends.

And i can't find anything because alfresco webapp doesn't throw any error message, same thing for the share webapp , no error message in the log files Smiley Sad

<code>
(function(){var e=YAHOO.util.Dom,d=YAHOO.util.Event;var a=Alfresco.util.encodeHTML;Alfresco.WikiCreateForm=function(g){Alfresco.WikiCreateForm.superclass.constructor.call(this,"Alfresco.WikiCreateForm",g,["button","container","connection","editor"]);return this};YAHOO.extend(Alfresco.WikiCreateForm,Alfresco.component.Base,{options:{siteId:"",locale:""},_showUnloadDialog:true,onReady:function f(){this.tagLibrary=new Alfresco.module.TagLibrary(this.id);this.tagLibrary.setOptions({siteId:this.options.siteId});this.widgets.editor=Alfresco.util.createImageEditor(this.id+"-content",{height:300,width:600,inline_styles:false,convert_fonts_to_spans:false,theme:"advanced",plugins:"table,visualchars,emotions,advhr,print,directionality,fullscreen,insertdatetime",theme_advanced_buttons1:"bold,italic,underline,strikethrough,|,justifyleft,justifycenter,justifyright,justifyfull,|,formatselect,fontselect,fontsizeselect,forecolor",theme_advanced_buttons2:"bullist,numlist,|,outdent,indent,blockquote,|,undo,redo,|,link,unlink,anchor,alfresco-imagelibrary,alfresco-linklibrary,image,cleanup,help,code,removeformat,|,insertdate,inserttime",theme_advanced_buttons3:"tablecontrols,|,hr,removeformat,visualaid,|,sub,sup,|,charmap,emotions,advhr,|,print,|,ltr,rtl,|,fullscreen",theme_advanced_toolbar_location:"top",theme_advanced_toolbar_align:"left",theme_advanced_statusbar_location:"bottom",theme_advanced_path:false,theme_advanced_resizing:true,theme_advanced_default_foreground_color:"#000000",extended_valid_elements:"style[type]",valid_children:"+body[style]",siteId:this.options.siteId,language:this.options.locale});var j=this;var g=function(){return j._showUnloadDialog};this.widgets.editor.addPageUnloadBehaviour(this.msg("message.unsavedChanges.wiki"),g);this.widgets.editor.render();this.widgets.saveButton=new YAHOO.widget.Button(this.id+"-save-button",{type:"submit"});Alfresco.util.createYUIButton(this,"cancel-button",null,{type:"link"});this.widgets.form=new Alfresco.forms.Form(this.id+"-form");var h=this.widgets.form;h.addValidation(this.id+"-title",Alfresco.forms.validation.mandatory,null,"blur");h.addValidation(this.id+"-title",Alfresco.forms.validation.wikiTitle,null,"keyup");h.addValidation(this.id+"-title",Alfresco.forms.validation.length,{max:256,crop:true},"keyup");h.setSubmitElements(this.widgets.saveButton);h.setAJAXSubmit(true,{successCallback:{fn:this.onPageCreated,scope:this},failureCallback:{fn:this.onPageCreateFailed,scope:this}});h.setSubmitAsJSON(true);h.setAjaxSubmitMethod(Alfresco.util.Ajax.PUT);h.doBeforeFormSubmit={fn:function i(l,m){this.widgets.saveButton.set("disabled",true);this.widgets.editor.save();this.tagLibrary.updateForm(this.id+"-form","tags");var k=e.get(this.id+"-tag-input-field");if(k){k.disabled=true}var n=e.get(this.id+"-title").value;n=n.replace(/\s+/g,"_");l.action=Alfresco.constants.PROXY_URI+"slingshot/wiki/page/"+this.options.siteId+"/"+encodeURIComponent(n);this.widgets.savingMessage=Alfresco.util.PopupManager.displayMessage({displayTime:0,text:'<span class="wait">'+a(this.msg("message.saving"))+"</span>",noEscape:true})},scope:this};this.tagLibrary.initialize(h);h.init();e.get(this.id+"-title").focus()},onPageCreated:function c(h){var i="Main_Page";var g=YAHOO.lang.JSON.parse(h.serverResponse.responseText);if(g){i=g.title}this._showUnloadDialog=false;window.location=Alfresco.constants.URL_PAGECONTEXT+"site/"+this.options.siteId+"/wiki-page?title="+encodeURIComponent(i)},onPageCreateFailed:function b(j){if(this.widgets.savingMessage){this.widgets.savingMessage.destroy();this.widgets.savingMessage=null}var i=j.config.dataObj.pageTitle;var h=this;if(j.serverResponse.status===409){Alfresco.util.PopupManager.displayPrompt({title:this.msg("message.failure.title"),text:this.msg("message.failure.duplicate",i),buttons:[{text:this.msg("button.ok"),handler:function(){this.destroy();e.get(h.id+"-title").focus()},isDefault:true}]})}else{if(j.serverResponse.status==401){Alfresco.util.PopupManager.displayPrompt({title:this.msg("message.sessionTimeout.title"),text:this.msg("message.sessionTimeout.text")})}else{Alfresco.util.PopupManager.displayPrompt({title:this.msg("message.failure"),text:j.json.message})}}var g=e.get(this.id+"-tag-input-field");if(g){g.disabled=false}}})})();
<code>
2 REPLIES 2

hoteia
Champ in-the-making
Champ in-the-making

I can undeploy the RM module with
java -jar ./bin/alfresco-mmt.jar uninstall org_alfresco_module_rm /…./apache-tomcat-7.0.32/webapps/alfresco.war
java -jar ./bin/alfresco-mmt.jar uninstall org_alfresco_module_rm_share /…./apache-tomcat-7.0.32/webapps/share.war

But there is some script SQL to clean the alfresco-rm AMP 2.1.* ?

hoteia
Champ in-the-making
Champ in-the-making
Do you know the packages i can add to the debug mode log to identify the issue ?
Getting started

Tags


Find what you came for

We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.