Okay
  Public Ticket #2459860
Uncaught Error: Call to a member function getPossibleValuesType()
Closed

Comments

  • Pete Droll started the conversation

    On June 29th, we started receiving this error when configuring or viewing a page that contained a table with a Google Sheets data source:

    Error Details
    =============
    An error of type E_ERROR was caused in line 829 of the file /var/www/wp-content/plugins/wpdatatables/source/class.wpdatatable.php. Error message: Uncaught Error: Call to a member function getPossibleValuesType() on null in /var/www/wp-content/plugins/wpdatatables/source/class.wpdatatable.php:829
    Stack trace:
    #0 /var/www/wp-content/plugins/wpdatatables/source/class.wpdatatable.php(969): WPDataTable->createColumnsFromArr(Array, Array, Array)
    #1 /var/www/wp-content/plugins/wpdatatables/source/class.wpdatatable.php(2451): WPDataTable->arrayBasedConstruct(Array, Array)
    #2 /var/www/wp-content/plugins/wpdatatables/controllers/wdt_functions.php(422): WPDataTable->fillFromData(Object(stdClass), Array)
    #3 /var/www/wp-includes/shortcodes.php(343): wdtWpDataTableShortcodeHandler(Array, '', 'wpdatatable')
    #4 [internal function]: do_shortcode_tag(Array)
    #5 /var/www/wp-includes/shortcodes.php(218): preg_replace_callback('/\[(\[?)(wpdata...', 'do_shortcode_ta...', 'Let̵...')
    #6 /var/www/wp-includes/class-wp-hook.php(287): do_shortcode('Let̵...')
    #7 /var/www/wp-includes/plugin.php(206): WP_Hook->apply_filters('Let̵...', Array)
    #8 /var

    WordPress version 5.4.2
    Current theme: custom developed theme
    Current plugin: wpDataTables (version 2.1)
    PHP version 7.3.12

    We have since updated the affected webpage to use a table with an xlsx data source to work around the issue. I tried deleting and recreating the table from the same Google Sheet, but kept encountering an error when adding the URL for the Google Sheet to the table configuration.

    For what it's worth, while researching this issue, I noticed someone else report they saw this exact issue on June 29th as well: https://wordpress.org/support/topic/critical-error-87/

  •  2,572
    Aleksandar replied

    Hello Pete

    Thank you for reaching out to us.

    The issue has been resolved with the latest update of wpDataTables (3.0.1)

    Please download the full version from the email you received when you purchased the plugin (some hostings treat it as Spam, so please check your Spam folder as well). Also, you received an email with credentials for our store https://store.tms-plugins.com/login where you can download the full version fom.

    My suggestion is to update the plugin manually by following these steps:

    1.) Download zip from our store or from the email you received when you purchased the plugin

    2.) Use FTP to open /yourwordpressfolder/wp-content/plugins

    3.) Delete existing wpdatatables folder.

    4.) Upload the previously downloaded wpdatatables folder through FTP into "plugins" folder (unzip it)

    5.)  Go to WP-admin panel, open Plugins section.

    6.) Deactivate wpDataTables Plugin, and then activate it again.

    7.) Clear server and browser cache

    ____________________________________________________________________________________________

    If you are on hosting where you are not allowed to access your FTP, then follow these instructions:

    Please note that, before deleting the plugin from the Plugins page, it is recommended to enable the option "Prevent deleting tables in database" in main settings of the plugin if you want to keep your tables after deletion from the Plugins page. If you uncheck this option, all your tables will be deleted and you will need to create them again.

    1.) Download zip from our store or from the email you received when you purchased the plugin

    2.) Delete wpDataTables plugin from WordPress' Plugins page

    3) Click on Add new in top left of your Plugins page

    4) Click on Upload plugin in top left of your Plugins page

    5.) Choose the previously downloaded wpdatatables.zip file

    6.) When uploading is done, please Activate wpDataTables plugin

    7.) Clear server and browser cache.

    Please note that our plugin is around 14 MB in size, so if you are not able to upload it through WordPress plugins page, you will need to increase the following:

    upload_max_file size, 

    post_max_size,

    max_execution_time

    You should be able to find these values in your php.ini file or on your hosting panel. If you can't find it yourself please ask your hosting provider to provide it.

    Kind Regards, 

    Aleksandar Vuković
    [email protected]

    Rate my support

    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