Texture plugin - Not saving the edits

Dear All,

I have converted the .docx file by using docxconverter plugin and it generated .xml file. I am able to open the file in texture plugin successfully inside the OJS. I am able to edit the file also. However, I am unable to save the edits. The save button in the texture is not clickable. Any idea how to solve this problem? Your help is much appreciated. Thanks.

OJS version: 3.2.0.-1
Texture plugin version: 2.2.2.0
PHP version 7.2
docxconverter version 0.5.2

Error log:
PHP Warning: Declaration of TexturePlugin::register($category, $path) should be compatible with LazyLoadPlugin::register($category, $path, $mainContextId = NULL) in /home/indianfo/domains/scigreen.com/public_html/plugins/generic/texture/TexturePlugin.inc.php on line 141\n

Hi @Editor_JBPT

The warning message should not effect the behavior of the browser and is already fixed. How did you install texture plugin ?

For the saving question : Which internet browser are you using ? Are you using firefox or chrome ?

Dear Sir,

I have installed the texture plugin through the webhost file manager by the following procedure.

  1. Downloaded .tar.gz file from github and uploaded via file manager.
  2. Activated in the OJS.

Because, installing through OJS plugins gallery is not working for me. I have the same issue. The install or upgrade buttons are not clickable. No response after clicking the buttons.

I tried the texture edit saving in firefox and google chrome. Both gave me same result. No difference.

Thanks.

Somehow your texture version seems a little old, because you have the warning, which I fixed before releasing.

Can you please download this version and let me know, although the editing is not effected there.

https://github.com/pkp/texture/releases/download/v2.2.2.0/texture-v2.2.2.0.tar.gz

Can you F12 in Chrome or Firefox and let me know, if there is a javascript error in the console ?

Dear Sir,

Thanks for the reply with instructions. I have installed the texture plugin from your link. It is still behaving the same, not saving the edits. As you have said, I pressed F12 after I pressed the save button. Please see below the error messages displayed. I have used Google Chrome.

DevTools failed to parse SourceMap: http://www.scigreen.com/plugins/generic/texture/editor.js.map
TextureArchive.js:125 saving jats #document
sendRequest.js:29 PUT http://www.scigreen.com/index.php/JBPT/texture/json?submissionId=58&fileId=273&stageId=5 405 (Method Not Allowed)
(anonymous) @ sendRequest.js:29
sendRequest @ sendRequest.js:5
_createImages @ editor.js:57
write @ editor.js:115
_save @ PersistedDocumentArchive.js:278
save @ PersistedDocumentArchive.js:182
_save @ TextureAppChrome.js:102
_handleSave @ TextureAppChrome.js:36
send @ Component.js:585
execute @ SaveCommand.js:16
executeCommand @ CommandManager.js:41
executeCommand @ EditorSession.js:105
_executeCommand @ EditorPanel.js:104
send @ Component.js:585
executeCommand @ Tool.js:74
_onClick @ Tool.js:134
sendRequest.js:40 Method Not Allowed
_done @ sendRequest.js:40
xmlhttp.onreadystatechange @ sendRequest.js:18
XMLHttpRequest.send (async)
(anonymous) @ sendRequest.js:29
sendRequest @ sendRequest.js:5
_createImages @ editor.js:57
write @ editor.js:115
_save @ PersistedDocumentArchive.js:278
save @ PersistedDocumentArchive.js:182
_save @ TextureAppChrome.js:102
_handleSave @ TextureAppChrome.js:36
send @ Component.js:585
execute @ SaveCommand.js:16
executeCommand @ CommandManager.js:41
executeCommand @ EditorSession.js:105
_executeCommand @ EditorPanel.js:104
send @ Component.js:585
executeCommand @ Tool.js:74
_onClick @ Tool.js:134
TextureAppChrome.js:37 Error: Method Not Allowed
at _done (sendRequest.js:41)
at XMLHttpRequest.xmlhttp.onreadystatechange (sendRequest.js:18)

Dear Sir,

The problem is solved now. I am able to save the edits in texture plugin. Based on the recommendation from Alec Smecher (asmecher) to my other query (An unexpected error occurred. You may have been logged out. Please reload the page and try again - #19 by asmecher), I have asked my hosting company to allow the PUT requests for my website. They enabled it. After that, I am able to save the edits. Thanks a lot for your interactions.

1 Like