Title: TablePress-Extensions: tablepress-table-auto-update
Last modified: August 20, 2016

---

# TablePress-Extensions: tablepress-table-auto-update

 *  Resolved [golferdude99](https://wordpress.org/support/users/golferdude99/)
 * (@golferdude99)
 * [13 years, 5 months ago](https://wordpress.org/support/topic/tablepress-extensions-tablepress-table-auto-update/)
 * Hi Tobias:
 * Love your Plugin.
 * I just installed the tablepress-table-auto-update extension and acivated.
 * I get the following error in my WP log:
    **PHP Fatal error: Call to undefined
   function download_url() in wp-content/plugins/tablepress_ext/tablepress-table-
   auto-update.php on line 134**
 * Here’s what I did
 * 1) I have created a folder tablepress_ext in the plugin folder
    2) Copied tablepress-
   table-auto-update.php and tables.php to this new folder 3) Activated the plugin
   4) Edited the tables.php to include the table ID and URL to the csv file. ————————‘
   id’ => ‘7’, ‘auto_update’ => true, ‘source_type’ => ‘url’, ‘source_format’ =>‘
   csv’, ‘source’ => ‘[http://xxx.com/wp-content/uploads/csv/xxx.csv&#8217](http://xxx.com/wp-content/uploads/csv/xxx.csv&#8217);
 * ————————————-
    I get the above error every 15 minutes (when the cron job runs)
 * Any help to resolve this would be much appreciated.
 * regards
 * GolferDude
 * [http://wordpress.org/extend/plugins/tablepress/](http://wordpress.org/extend/plugins/tablepress/)

Viewing 15 replies - 1 through 15 (of 19 total)

1 [2](https://wordpress.org/support/topic/tablepress-extensions-tablepress-table-auto-update/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/tablepress-extensions-tablepress-table-auto-update/page/2/?output_format=md)

 *  Plugin Author [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * (@tobiasbg)
 * [13 years, 5 months ago](https://wordpress.org/support/topic/tablepress-extensions-tablepress-table-auto-update/#post-3315116)
 * Hi,
 * thanks for this information!
 * Looks like the Extension is using a function that is not available at all times.
   
   I’ll fix that and release a new version. I’m actually already working on the 
   Extension, as it will be getting a user interface, so that it’s no longer necessary
   to edit that tables.php file 🙂
 * Regards,
    Tobias
 *  Thread Starter [golferdude99](https://wordpress.org/support/users/golferdude99/)
 * (@golferdude99)
 * [13 years, 5 months ago](https://wordpress.org/support/topic/tablepress-extensions-tablepress-table-auto-update/#post-3315239)
 * Hi Tobias:
 * Thanks for the reply. Much appreciated.
 * Look forward to the update extension.
 * I’ll be more that happy to test it out and provide feedback.
 * Regards,
 * GolferDude
 *  Plugin Author [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * (@tobiasbg)
 * [13 years, 5 months ago](https://wordpress.org/support/topic/tablepress-extensions-tablepress-table-auto-update/#post-3315243)
 * Hi,
 * thanks, great to hear that! 🙂
 * I’ll let you know here once the next version is ready.
 * Regards,
    Tobias
 *  Plugin Author [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * (@tobiasbg)
 * [13 years, 5 months ago](https://wordpress.org/support/topic/tablepress-extensions-tablepress-table-auto-update/#post-3315294)
 * Hi,
 * good news: I was able to fix that problem, and also implemented a nice user interface,
   so that manually editing that tables.php file is no longer necessary 🙂
 * I’d be more than happy if you would test the new version. To do that, please
   
   1. Deactivate the current version of the Extension (in case it is still activated).
   2. Download the new version from [http://tablepress.org/download/extension/tablepress-table-auto-update.zip](http://tablepress.org/download/extension/tablepress-table-auto-update.zip)
   and replace your current version with that. 3. Activate the new version.
 * You will then see the user interface in the lower part of the “Import” screen.
   You can activate auto import for each table individually there and make the necessary
   settings. Additionally, you can use this screen to check when the last auto update
   happened.
 * Please let me know if you have problems!
 * Regards,
    Tobias
 *  Thread Starter [golferdude99](https://wordpress.org/support/users/golferdude99/)
 * (@golferdude99)
 * [13 years, 5 months ago](https://wordpress.org/support/topic/tablepress-extensions-tablepress-table-auto-update/#post-3315295)
 * Hi Tobias:
 * Thanks for the update.
 * Deactivated and deleted the old extension
 * Installed and activated. the new one
 * Unfortunately the Import Tab/Import a Table Menu does not load when this extension
   is activated.
 * Tried it with Chrome and Opera browsers
 * I deactivated the extension and now the Import tab works.
 * regards,
 * GolferDude
 *  Plugin Author [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * (@tobiasbg)
 * [13 years, 5 months ago](https://wordpress.org/support/topic/tablepress-extensions-tablepress-table-auto-update/#post-3315297)
 * Hi,
 * thanks for testing this. Not sure what I did wrong this time…
 * With “does not load”, do you mean that it is completely white?
    That indicates
   that there’s a PHP problem somewhere. Can you please try again after setting 
   the “WP_DEBUG” constant to true in your wp-config.php file? After that, there
   should at least be an error message visible on that page.
 * Thanks!
    Tobias
 *  Thread Starter [golferdude99](https://wordpress.org/support/users/golferdude99/)
 * (@golferdude99)
 * [13 years, 5 months ago](https://wordpress.org/support/topic/tablepress-extensions-tablepress-table-auto-update/#post-3315298)
 * Hi Tobias:
 * Yes, the page is completely white.
 * Here’s the message (after WP-debug enabled)
 * Fatal error: Call to undefined method TablePress_Auto_Import_View::process_action_messages()
   in xyz/plugins/tablepress-table-auto-update/view-auto-import.php on line 42
 * Hope this helps.
 * GolferDude
 *  Plugin Author [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * (@tobiasbg)
 * [13 years, 5 months ago](https://wordpress.org/support/topic/tablepress-extensions-tablepress-table-auto-update/#post-3315300)
 * Hi,
 * argh, of course… I’ve been developing the Table Auto Update Extension while already
   using the current development version of TablePress. And I’ve used a function
   that is not yet part of TablePress 0.8.1-beta, which you are using.
 * So, to use the Table Auto Update Extension, one more step is necessary:
    First,
   download the current development version of TablePress from [http://tablepress.org/download/tablepress-dev.zip](http://tablepress.org/download/tablepress-dev.zip),
   extract it, and replace the folder on your server with this new one. Then, download
   [http://tablepress.org/download/extension/tablepress-table-auto-update.zip](http://tablepress.org/download/extension/tablepress-table-auto-update.zip)
   again (I added another feature this morning: You can now choose how often the
   auto update shall happen.) and re-install that.
 * If you don’t see any errors then, you can also set WP_DEBUG back to false.
 * Regards,
    Tobias
 *  Thread Starter [golferdude99](https://wordpress.org/support/users/golferdude99/)
 * (@golferdude99)
 * [13 years, 5 months ago](https://wordpress.org/support/topic/tablepress-extensions-tablepress-table-auto-update/#post-3315312)
 * Hi Tobias:
 * Sorry for the delay in getting back to you.
 * The Auto Update extension now works great.
 * The new UI to select the update interval is brilliant.
 * AMAZING plugin and great support.
 * I have an automated task that creates and updated CSV file every night and uploads
   to my host.
 * Now with the TablePress plugin this data is published automatically.
 * Thank you very much.
 * Best Regards,
 * GolferDude
 *  Plugin Author [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * (@tobiasbg)
 * [13 years, 5 months ago](https://wordpress.org/support/topic/tablepress-extensions-tablepress-table-auto-update/#post-3315313)
 * Hi,
 * ah, that’s great news 🙂 Thanks for testing this! Good to hear that it works,
   and that you like it 🙂
 * Best wishes,
    Tobias
 * P.S.: In case you haven’t, please rate the plugin here in the plugin directory.
   Thanks!
 *  [cj1490](https://wordpress.org/support/users/cj1490/)
 * (@cj1490)
 * [13 years ago](https://wordpress.org/support/topic/tablepress-extensions-tablepress-table-auto-update/#post-3315349)
 * Hello again Tobias! Can you perhaps add a force update button that the user can
   press? Is that doable? Also, I think I need the auto updating to be lesser than
   15 mins if possible 🙂
 *  [cj1490](https://wordpress.org/support/users/cj1490/)
 * (@cj1490)
 * [13 years ago](https://wordpress.org/support/topic/tablepress-extensions-tablepress-table-auto-update/#post-3315350)
 * Hello Tobias I am sorry if I am asking question after question. But I think my
   Auto update extension isn’t working.
 * I have the URL that points directly to a csv file. I even imported a table using
   the URL import method and it worked with the same URL. Now I also used the said
   URL in the auto update configuration and 23 mins have passed not even a single
   auto update triggered.
 * Any thoughts on how to check what is the problem?
 *  Plugin Author [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * (@tobiasbg)
 * [13 years ago](https://wordpress.org/support/topic/tablepress-extensions-tablepress-table-auto-update/#post-3315352)
 * Hi,
 * thanks for your question.
 * A “Force update” button is not really necessary, as an update is triggered every
   time that the configuration is saved. So that’s basically a “Force update” button.
 * To have the auto update take place in shorter intervals, you can simply modify
   the code of the Extension.
 * Now about the actual update process: The Extension uses the WP_Cron functionality
   to trigger the update check, i.e. the check whether the interval has passed. 
   This WP_Cron method requires users visiting the site, as then a page view triggers
   the code for the check.
    What you describe is therefore the expected behavior
   for sites on local test servers or “new” sites that don’t have regular visitors.
   If nobody visits the site, no update is performed.
 * Regards,
    Tobias
 *  [cj1490](https://wordpress.org/support/users/cj1490/)
 * (@cj1490)
 * [13 years ago](https://wordpress.org/support/topic/tablepress-extensions-tablepress-table-auto-update/#post-3315353)
 * I see.. how can a new site manage to trigger the auto update? Do I have to update
   the table manually first and wait for the site to get about a handful of regular
   visitors for the trigger to happen? Because currently the site is getting about
   2 visitors? me (the admin) and a friend. 🙂
 * Also you mentioned that whenever the configuration is saved, the tables get updated?
   Is this true even if I have a “new” site?
 *  Plugin Author [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * (@tobiasbg)
 * [13 years ago](https://wordpress.org/support/topic/tablepress-extensions-tablepress-table-auto-update/#post-3315354)
 * Hi,
 * you could also set up a real server cron job to replace the WP_Cron functionality.
   That would give the best results.
 * A quick search found these tutorials:
    [http://wpdailybits.com/blog/replace-wordpress-cron-with-real-cron-job/74](http://wpdailybits.com/blog/replace-wordpress-cron-with-real-cron-job/74)
   [http://bitswapping.com/2010/10/using-cron-to-trigger-wp-cron-php/](http://bitswapping.com/2010/10/using-cron-to-trigger-wp-cron-php/)
   I have never done this before though, so I can’t help with specifics.
 * Regards,
    Tobias

Viewing 15 replies - 1 through 15 (of 19 total)

1 [2](https://wordpress.org/support/topic/tablepress-extensions-tablepress-table-auto-update/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/tablepress-extensions-tablepress-table-auto-update/page/2/?output_format=md)

The topic ‘TablePress-Extensions: tablepress-table-auto-update’ is closed to new
replies.

 * ![](https://ps.w.org/tablepress/assets/icon.svg?rev=3192944)
 * [TablePress - Tables in WordPress made easy](https://wordpress.org/plugins/tablepress/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/tablepress/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/tablepress/)
 * [Active Topics](https://wordpress.org/support/plugin/tablepress/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/tablepress/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/tablepress/reviews/)

 * 19 replies
 * 4 participants
 * Last reply from: [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * Last activity: [12 years, 10 months ago](https://wordpress.org/support/topic/tablepress-extensions-tablepress-table-auto-update/page/2/#post-3315365)
 * Status: resolved