Okay
  Public Ticket #1277095
Can't update Table Settings
Closed

Comments

  •  2
    tcghs started the conversation

    Since upgrading to WPDataTables 2.0, I am unable to update any of the settings of an existing table - see screenshot attached.  Happens when I try to update anything - display setting, tool settings, etc.

  •  1,846
    Miloš replied

    Hi tcghs,
    Thank you for your purchase.

    In regards to a site on your hosting account, the cause of the 406 error is usually due to a mod_security rule on the server.

    Mod_security is a security module in the Apache web server that is enabled by default on all hosting accounts.

    Apache web server, scans for violations of the rules it has set.

    If an action occurs that violates one of these rules, the server will throw a 406 error.

    1. If you’re receiving this message when trying to save wpDataTable based on MySQL query from your WP Admin,

    it means your hosting provider is restricting access to some of WordPress’ native functionality.

    To solve it, contact your hosting provider to ask them to remove this restriction.

    2. Adding the following to the top of your .htaccess file. (This should be a temporary measure.

    You could try it just to see if it will work, but you probably don’t want to leave it.)

    <IfModule mod_security.c>

    SecFilterEngine OffSec

    FilterScanPOST Off

    </IfModule>

    3. Backup your .htaccess file if you have one in the public_html directory.

    Open the .htaccess file with any text editor and observe the lines between the “# BEGIN WordPress” and “# END WordPress” tags.

    Make sure the lines look somewhat like the following. If not then update the file with the following content and upload it to the ‘public_html’ directory.

    # BEGIN WordPress

    <IfModule mod_rewrite.c>

    RewriteEngine On

    RewriteBase /

    RewriteCond %{REQUEST_FILENAME} !-f

    RewriteCond %{REQUEST_FILENAME} !-d

    RewriteRule . /index.php [L]

    </IfModule>

    # END WordPress

    Best regards.

    Kind Regards, 

    Miloš Jovanović
    [email protected]

    Rate my support

    Try our FREE mapping plugin! MapSVG - easy Google maps, interactive SVG maps and floor plans, choropleth maps and much more - https://wordpress.org/plugins/mapsvg-lite-interactive-vector-maps/

    wpDataTables: FAQ | Facebook | Twitter | InstagramFront-end and back-end demo | Docs

    Amelia: FAQ | Facebook | Twitter | InstagramAmelia demo sites | Docs | Discord Community

    You can try wpDataTables add-ons before purchasing on these sandbox sites:

    Powerful Filters | Gravity Forms Integration for wpDataTables | Formidable Forms Integration for wpDataTables | Master-Detail Tables

  •  2
    tcghs replied

    Hi, Bogdan,

    1.  I'm receiving the error just by trying to apply disabling Table Tools - not from any SQL - does this still indicate a server issue?

    2. Added to my .htacess - doesn't seem to make any difference - do I need to do anything special to activate the .htacess changes?

    3.  My .htacess file has what you included but also some additional commands (from woocommerce?)

    # BEGIN WordPress
    AddHandler application/x-httpd-php70s .php
    <IfModule mod_expires.c>
    	ExpiresActive On
    	ExpiresByType image/jpg "access plus 1 year"
    	ExpiresByType image/jpeg "access plus 1 year"
    	ExpiresByType image/gif "access plus 1 year"
    	ExpiresByType image/png "access plus 1 year"
    	ExpiresByType text/css "access plus 1 month"
    	ExpiresByType application/pdf "access plus 1 month"
    	ExpiresByType text/javascript "access plus 1 month"
    	ExpiresByType text/html "access plus 2 hours"
    	ExpiresByType image/x-icon "access plus 1 year"
    	ExpiresDefault "access plus 6 hours"
    </IfModule>
    Options -Indexes
    Header set X-Endurance-Cache-Level "2"
    <IfModule mod_rewrite.c>
    	RewriteEngine On
    	RewriteBase /
    	RewriteRule ^/wp-content/endurance-page-cache/ - [L]
    	RewriteCond %{REQUEST_METHOD} !POST
    	RewriteCond %{QUERY_STRING} !.*=.*
    	RewriteCond %{HTTP_COOKIE} !(wordpress_test_cookie|comment_author|wp\-postpass|wordpress_logged_in|wptouch_switch_toggle|wp_woocommerce_session_) [NC]
    	RewriteCond %{DOCUMENT_ROOT}/wp-content/endurance-page-cache/$1/_index.html -f
    	RewriteRule ^(.*)$ /wp-content/endurance-page-cache/$1/_index.html [L]
    </IfModule>
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>
    # END WordPress

    Does this appear OK?

    Thanks,
    Mike

  •  1,846
    Miloš replied

    Hi Mike

    I noticed that you entered twice mod_ rewrite ( attachment) 

    My suggestion will be to contact the hosting provided and ask them to make all necessary changes.

    Best regards.

    Kind Regards, 

    Miloš Jovanović
    [email protected]

    Rate my support

    Try our FREE mapping plugin! MapSVG - easy Google maps, interactive SVG maps and floor plans, choropleth maps and much more - https://wordpress.org/plugins/mapsvg-lite-interactive-vector-maps/

    wpDataTables: FAQ | Facebook | Twitter | InstagramFront-end and back-end demo | Docs

    Amelia: FAQ | Facebook | Twitter | InstagramAmelia demo sites | Docs | Discord Community

    You can try wpDataTables add-ons before purchasing on these sandbox sites:

    Powerful Filters | Gravity Forms Integration for wpDataTables | Formidable Forms Integration for wpDataTables | Master-Detail Tables