• 375/5000
    Hello!
    First of all thank you very much for this plugin, I use it for years. But I’m having problems with the configuration page, the first problem is that I have hundreds of empty lines in the Document List Configuration. second that the changes I make are not being saved. Can you help me? I made a backup but I am afraid to restore the settings and lose hundreds of files

    • This topic was modified 4 years, 6 months ago by x4ndon.
Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author bhaldie

    (@bhaldie)

    1. Open mdocs-pataches.php
    2. Add this update_option(‘mdocs-displayed-file-info’, array()); under this:
    Old

    function mdocs_run_patch() {

    New

    function mdocs_run_patch() {
    update_option(‘mdocs-displayed-file-info’, array());

    3. Goto Memphis Docs > Options > Settings
    4. Scroll to bottom of page
    5. Press Save Button
    6. Remove the new line from the file.

    g

    (@gciprian)

    mdocs v3.10.10

    In mdocs-patches.php there is already that line of code.
    <?php
    function mdocs_run_patch() {
    if(MDOCS_VERSION == ‘3.9.19’ || MDOCS_VERSION == ‘3.9.20’) {
    // 3.9.19 patch 1
    register_setting(‘mdocs-patch-vars’, ‘mdocs-v3-9-19-patch-var-1’);
    add_option(‘mdocs-v3-9-19-patch-var-1’,false);
    if(get_option(‘mdocs-v3-9-19-patch-var-1’) == false && is_array(get_option(‘mdocs-list’))) {
    update_option(‘mdocs-displayed-file-info’, array());
    update_option(‘mdocs-v3-9-19-patch-var-1’, true);
    }
    }
    }

    I also tried your code as specified and doesn’t work. The empty lines still there and can’t save anything starting from Document List Configuration | Controls the style of the document list table.

    Plugin Author bhaldie

    (@bhaldie)

    yes that is expected but following the guide exactly fixes the issue. Your problem is you can’t save.

    Please disable all other plugins and activate a default theme and try again.

    I’m having this same issue. HUNDREDS of empty lines in the Document List Configuration with no way to remove them.

    Disabling all other plugins won’t work, we have 14 customer sites running in multi-tenant. This one site is the only one that has this issue.

    Please provide a less krufty solution! I’ve been looking through the database to find where the empty lines are being stored, but the wpx_options table is a bunch of giant json fields.

    Any help would be great! Of note, I am able to save, just can’t get rid of all of the empty lines.

    Also, maybe a brief explanation of why this happened? We need to avoid this with our other customers’ sites that are using the same plugin.

    • This reply was modified 4 years, 5 months ago by karlkuehnfn.
    Plugin Author bhaldie

    (@bhaldie)

    if you follow this simple steps you will fix the issue without a problem.

    1. Open mdocs-pataches.php
    2. Add this update_option(‘mdocs-displayed-file-info’, array()); under this:
    Old

    function mdocs_run_patch() {

    New

    function mdocs_run_patch() {
    update_option(‘mdocs-displayed-file-info’, array());

    3. Goto Memphis Docs > Options > Settings
    4. Scroll to bottom of page
    5. Press Save Button
    6. Remove the new line from the file.

    Other this this guide you would have to uninstall then reinstall the plugin again, which would remove all current files so not recommended.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Admin Page Error, Don’t save changes and hundreds of empty lines’ is closed to new replies.