Menu

#305 "Missing input" when trying to edit styles

6.4.11
closed
None
6.4.1
Bug
7.3
Linux
2021-08-31
2020-12-31
Joachim
No

Hi Mark and Stéphane,

when I try to edit an existing style (tried my own as well as Chicago) I get the message "Missing input" when saving the style.

I tried to add page numbers to web articles if there are some, like %S. %%pages%, %%| after the year. But even attempts to other modifications of a style got the "Missing input" statement.

The same problem with 6.3.10 on my production server, BTW.

Best wishes for the new year
Joachim

Related

News: 2021/01/wikindx-v641-released
Bugs and feature requests : #305

Discussion

1 2 > >> (Page 1 of 2)
  • Stéphane Aulery

    Hi,

    Someone else pointed it out as well. Mark wants to completely rework the plugin, but I don't know if we can just fix this little error in 6.4.1.

    Regards,

     
  • Mark Grimshaw

    Mark Grimshaw - 2020-12-31
    • assigned_to: Mark Grimshaw
     
  • Mark Grimshaw

    Mark Grimshaw - 2020-12-31

    Hi Joachim,

    I'll merge this with bug https://sourceforge.net/p/wikindx/v5bugs/249/.

    As noted there, I intend to rewrite the interface for style editing/creation in te new year so hopefully these bugs will disappear.

    Best wishes for the new year to you too,

    Mark

     
    • Stéphane Aulery

      Hi Mark,

      I think the problem is a mismatch between the style language name in xml and the list of locales available. I forget to keep the old list only for this specific case.

      I can provide a fake language list of previous language codes instead. And in a future version migrate style definition to new locales.

      Regards,

       
      • Mark Grimshaw

        Mark Grimshaw - 2021-01-08

        I've discovered and corrected an issue to do with uppercasing of the xml file name (uppercasing it meant that the style no longer displayed in the select box – lowercase it and it appears and can be used).

        But I think there's also something wrong with the validation code – checking that required fields are present and this gives a missing input message. I noticed this yesterday and know what the issue is and will try to fix it tomorrow.

        As agreed, this will be a quick fix for a 6.4.1 release after which I will rewrite the plugin's interface.

        Mark

         
        • Stéphane Aulery

          So, there are two errors. I fixed the language error with commit [r1145].

           

          Related

          Commit: [r1145]

  • Mark Grimshaw

    Mark Grimshaw - 2021-01-08

    At least two errors. I will check throughly though.

    Mark

     
  • Mark Grimshaw

    Mark Grimshaw - 2021-01-08

    Actually, Stéphane, I think you are right. The issue is to do with locales. I'll correct this tomorrow including bug 308.

    Mark

     
    • Stéphane Aulery

      308 is not urgent and changes the XML format. Better to keep it for another version. I have already done the minimum for the language.

       
  • Mark Grimshaw

    Mark Grimshaw - 2021-01-09

    The fix is now in SVN and ready for the 6.4.1 release.

    Mark

     
  • Mark Grimshaw

    Mark Grimshaw - 2021-01-09
    • status: open --> pending
    • Target: Unknown --> 6.4.1
     
  • Stéphane Aulery

    • status: pending --> closed
     
  • Joachim

    Joachim - 2021-02-07

    Hi Mark,

    unfortunately, I have to reopen the issue. I'm getting "Missing input" even with 6.4.1. I tried the same modification as in my original post.

    The Amin Styles Plugin is up to date, v. 382, updated with the Administer Components function.

    Best
    Joachim

     
    • Mark Grimshaw

      Mark Grimshaw - 2021-02-08

      Hi Joachim,

      Sorry for this. I will check once I've finished with other work. Regarding which, did you get a message here on SF about an add-in for Word? I posted yesterday asking if you used Word and were willing to test the add-in (insert references from a wikindx into Word) but that post appears to have disappeared.

      Regards,

      Mark

       
  • Mark Grimshaw

    Mark Grimshaw - 2021-02-08
    • status: closed --> open
    • Target: 6.4.1 --> Next
    • Found in: 6.4.0 --> 6.4.1
     
  • Stéphane Aulery

    • Target: Next --> Unknown
     
  • Mark Grimshaw

    Mark Grimshaw - 2021-08-28

    Hi Joachim,

    I've now completely rewritten the adminstyle plugin:
    1. Complete rewrite of the interface, breaking up the one long form into several smaller forms.
    2. Work on making style compilation faster.
    3. Copy a complete resource template (e.g., copy the book_article variables to the book_chapter variables).
    4. Within a resource template, copy the bibliography template to the footnote template.
    5. Reduce useless compilation. For example, if the style is endnote, then no need to input in-text citation variables.
    6. When creating a style, default values are supplied.

    There is also stronger validation and checks for missing inputs. Hopefully, it all works for you now (if you want to check in SVN – you will need to install the complete SVN for wikindx and the plugin on a test server).

    Mark

     
    • Joachim

      Joachim - 2021-08-28

      Hi Mark,

      sounds great, will try to test it! Will my existing styles work with the plugin?

      Best
      Joachim

       
  • Mark Grimshaw

    Mark Grimshaw - 2021-08-28

    They certainly will Joachim (but as always back-up just in case). WIKINDX v6.4.10 (which you're running on your production server) updated the XML style files so ensure, if you copy styles across, they are from that server and not from an earlier version where they have not yet been updated. I attach a screenshot of the new interface.

    Mark

     
  • Joachim

    Joachim - 2021-08-28

    Tried to start the SVN version, but got a lot of errors:

    Directory /var/www/wikindx-svn/cache has not been created. Check permissions.
    Directory /var/www/wikindx-svn/cache/files has not been created. Check permissions.
    Directory /var/www/wikindx-svn/cache/attachments has not been created. Check permissions.
    Directory /var/www/wikindx-svn/cache/languages has not been created. Check permissions.
    Directory /var/www/wikindx-svn/cache/plugins has not been created. Check permissions.
    Directory /var/www/wikindx-svn/cache/styles has not been created. Check permissions.
    Directory /var/www/wikindx-svn/cache/templates has not been created. Check permissions.
    Directory /var/www/wikindx-svn/cache/plugins/adminstyle has not been created. Check permissions.
    Directory /var/www/wikindx-svn/cache/plugins/backupmysql has not been created. Check permissions.
    Directory /var/www/wikindx-svn/cache/plugins/chooselanguage has not been created. Check permissions.
    Directory /var/www/wikindx-svn/cache/plugins/dbadminer has not been created. Check permissions.
    Directory /var/www/wikindx-svn/cache/plugins/debugtools has not been created. Check permissions.
    Directory /var/www/wikindx-svn/cache/plugins/ideagen has not been created. Check permissions.
    Directory /var/www/wikindx-svn/cache/plugins/localedescription has not been created. Check permissions.
    Directory /var/www/wikindx-svn/cache/plugins/repairkit has not been created. Check permissions.
    Directory /var/www/wikindx-svn/cache/plugins/soundexplorer has not been created. Check permissions.
    Directory /var/www/wikindx-svn/cache/plugins/visualize has not been created. Check permissions.
    Directory /var/www/wikindx-svn/cache/plugins/wordprocessor has not been created. Check permissions.
    Directory /var/www/wikindx-svn/cache/plugins/xpdftotext has not been created. Check permissions.
    
    Warning: file_put_contents(/var/www/wikindx-svn/cache/components.json): failed to open stream: No such file or directory in /var/www/wikindx-svn/core/libs/FILE.php on line 1653
    
    Warning: file_put_contents(/var/www/wikindx-svn/cache/languages/locales_system.json): failed to open stream: ��� ������ ����� ��� �������� in /var/www/wikindx-svn/core/libs/LOCALES.php on line 122
    The /var/www/wikindx-svn/cache/languages/locales_system.json file doesn't exist.
    
    As long as this error will not be corrected, only the English (United Kingdom) (en_GB) language will be available.
    
    
    Warning: file_put_contents(/var/www/wikindx-svn/cache/components.json): failed to open stream: ��� ������ ����� ��� �������� in /var/www/wikindx-svn/core/libs/FILE.php on line 1653
    
    Warning: Invalid argument supplied for foreach() in /var/www/wikindx-svn/core/libs/UTILS.php on line 129
    
    Warning: Invalid argument supplied for foreach() in /var/www/wikindx-svn/core/libs/LOCALES.php on line 265
    
    Warning: file_put_contents(/var/www/wikindx-svn/cache/components.json): failed to open stream: No such file or directory in /var/www/wikindx-svn/core/libs/FILE.php on line 1653
    
    Warning: Invalid argument supplied for foreach() in /var/www/wikindx-svn/core/libs/UTILS.php on line 129
    
    Warning: Invalid argument supplied for foreach() in /var/www/wikindx-svn/core/bibcitation/LOADSTYLE.php on line 39
    
    Warning: fopen(/var/www/wikindx-svn/cache/styles/apa): failed to open stream: No such file or directory in /var/www/wikindx-svn/core/bibcitation/PARSEXML.php on line 115
    
    Warning: file_put_contents(/var/www/wikindx-svn/cache/components.json): failed to open stream: No such file or directory in /var/www/wikindx-svn/core/libs/FILE.php on line 1653
    
    Warning: Invalid argument supplied for foreach() in /var/www/wikindx-svn/core/libs/UTILS.php on line 129
    
    Warning: Invalid argument supplied for foreach() in /var/www/wikindx-svn/core/bibcitation/LOADSTYLE.php on line 39
    
    Notice: Undefined index: apa in /var/www/wikindx-svn/core/libs/CLOSE.php on line 61
    
    Warning: file_put_contents(/var/www/wikindx-svn/cache/components.json): failed to open stream: No such file or directory in /var/www/wikindx-svn/core/libs/FILE.php on line 1653
    
    Warning: Invalid argument supplied for foreach() in /var/www/wikindx-svn/core/libs/UTILS.php on line 129
    
    Warning: Invalid argument supplied for foreach() in /var/www/wikindx-svn/core/libs/TEMPLATE.php on line 254
    
    Warning: mkdir(): Permission denied in /var/www/wikindx-svn/core/libs/TEMPLATE.php on line 337
    Unable to create directory
    
    /var/www/wikindx-svn/cache/templates/default/compile
    Warning: mkdir(): Permission denied in /var/www/wikindx-svn/core/libs/TEMPLATE.php on line 337
    Unable to create directory
    
    /var/www/wikindx-svn/cache/templates/default/cache
    Warning: file_put_contents(/var/www/wikindx-svn/cache/languages/locales_system.json): failed to open stream: No such file or directory in /var/www/wikindx-svn/core/libs/LOCALES.php on line 122
    The /var/www/wikindx-svn/cache/languages/locales_system.json file doesn't exist.
    
    As long as this error will not be corrected, only the English (United Kingdom) (en_GB) language will be available.
    
    
    Warning: file_put_contents(/var/www/wikindx-svn/cache/components.json): failed to open stream: No such file or directory in /var/www/wikindx-svn/core/libs/FILE.php on line 1653
    
    Warning: Invalid argument supplied for foreach() in /var/www/wikindx-svn/core/libs/UTILS.php on line 129
    
    Warning: Invalid argument supplied for foreach() in /var/www/wikindx-svn/core/startup/LOADPLUGINS.php on line 30
    
    Fatal error: Uncaught --> Smarty: unable to create directory /var/www/wikindx-svn/cache/templates/default/compile <-- thrown in /var/www/wikindx-svn/components/vendor/smarty/libs/sysplugins/smarty_internal_runtime_writefile.php on line 51
    

    Did I do something wrong? I downloaded the latest version via svn checkout https://svn.code.sf.net/p/wikindx/svn/trunk wikindx-svn, did chown -R www-data: * and find . -type f | xargs chmod 644, created a config.php with the appropriate patrameters, created a copy of the production database under a new name and let the web server use the SVN version.

    Joachim

     
  • Mark Grimshaw

    Mark Grimshaw - 2021-08-28

    Hi Joachim,

    I will leave that to Stéphane to deal with.

    However, what happens if you do a
    chmod -R 644
    on wikindx-svn or, if that doesn't work, even
    chmod -R 777
    ?

    Mark

     
    • Stéphane Aulery

      Hi Joachim,

      Do on your root folder, because use a defferent unix user/group.

      chmod -R 777

      Regards,

      28 août 2021 17:57 "Mark Grimshaw" sirfragalot@users.sourceforge.net a écrit:

      Hi Joachim,

      I will leave that to Stéphane to deal with.

      However, what happens if you do a
      chmod -R 644
      on wikindx-svn or, if that doesn't work, even
      chmod -R 777
      ?

      Mark


      [v5bugs:#305] "Missing input" when trying to edit styles

      Status: open
      Target: Unknown
      Found in: 6.4.1
      Created: Thu Dec 31, 2020 11:22 AM UTC by Joachim
      Last Updated: Sat Aug 28, 2021 03:25 PM UTC
      Owner: Mark Grimshaw

      Hi Mark and Stéphane,

      when I try to edit an existing style (tried my own as well as Chicago) I get the message "Missing
      input" when saving the style.

      I tried to add page numbers to web articles if there are some, like %S. %%pages%, %%| after the
      year. But even attempts to other modifications of a style got the "Missing input" statement.

      The same problem with 6.3.10 on my production server, BTW.

      Best wishes for the new year
      Joachim


      Sent from sourceforge.net because you indicated interest in
      https://sourceforge.net/p/wikindx/v5bugs/305

      To unsubscribe from further messages, please visit https://sourceforge.net/auth/subscriptions

      --
      Stéphane Aulery

       

      Related

      Bugs and feature requests : #305

      • Joachim

        Joachim - 2021-08-29

        I prefer the two find commands:

        find . type -f | xargs chmod 664
        find . type -d | xargs chmod 775
        

        Just a little bit more security, I think.

        Joachim

         
  • Joachim

    Joachim - 2021-08-29

    OK, I didn't consider the root directory, which had the wrong permissions.

    I tampered around successfully with my style, the bug is fixed! And the interface is much more usable than the former one – thank you very much!

    I've worked a while with the SVN release now, no problems so far.

    Best
    Joachim

     
    • Mark Grimshaw

      Mark Grimshaw - 2021-08-29

      That's very good to know Joachim. Thanks for testing. Just a few other things to sort out and then we will release 6.4.11 which is compatible with the updated plugin.

      Mark

       
1 2 > >> (Page 1 of 2)

Log in to post a comment.