tylerdigital / acf-tablepress

An ACF field to select a tablepress table
GNU General Public License v3.0
10 stars 4 forks source link

PHP Fatal error: Uncaught Error: Call to undefined method TablePress_Admin_Controller #7

Open ghost opened 4 years ago

ghost commented 4 years ago

Hey there,

When copying a page I got this error.

Error:

PHP Fatal error: Uncaught Error: Call to undefined method TablePress_Admin_Controller::shortcode_table() in /wp-content/plugins/tablepress/controllers/template-tag-functions.php:28

Stack trace:\n#0 /wp-content/plugins/acf-tablepress/tablepress-v5.php(97)

The plugin Yoast Duplicate Post was used for copying pages.

List of plugins involved: ACF TablePress ACF - TablePress Yoast Duplicate Post

Result: Instead of landing on the new duplicated page, you get a 404 error. However, when returning to the Pages overview, the page was duplicated correctly. Still, it is a very visible error that disturbs the workflow.

On pages without a table, it does not throw the error.

Solution: My solution for this problem was to install Duplicate Page and Post, a different duplicating plugin.

I don't have a direct request for you. But I wanted to notify you about this error and prevent others from spending time troubleshooting this.