[Résolu] wp-views causing PHP Fatal error call to a member function on a non object
This support ticket is created Il y a 7 années et 3 mois. There's a good chance that you are reading advice that it now obsolete.
This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.
Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.
No supporters are available to work today on Toolset forum. Feel free to create tickets and we will handle it as soon as we are online. Thank you for your understanding.
I am hosted with WP Engine and they're highlighting a PHP error apparently caused by wp-views
PHP Fatal error: Call to a member function get_template_id() on a non-object in /nas/content/live/blueprintmw1/wp-content/plugins/wp-views/embedded/inc/wpv-shortcodes.php on line 2598
The shortcodes file has not been modified in any way in my child theme and I am using Toolset Starter, so please help me to understand how to correct this error. Example page:
hidden link
I can send you any login details or files that you require.
Hello. Thank you for contacting the Toolset support.
I checked the URL you shared with me but the page is loaded without displaying any error:
=> hidden link
Have you disabled the views plugin?
1)
Could you please share exact steps to reproduce this error or clean install?
2)
Could you please try to resolve your issue by deactivating all third-party plugins as well as the default theme to check for any possible conflicts with any of the plugins or themes?
3)
*** Please make a FULL BACKUP of your database and website.***
I would also eventually need to request temporary access (WP-Admin and FTP) to your site. Preferably to a test site where the problem has been replicated if possible in order to be of better help and check if some configurations might need to be changed.
I would additionally need your permission to de- and re-activate Plugins and the Theme, and to change configurations on the site. This is also a reason the backup is really important. If you agree to this, please use the form fields I have enabled below to provide temporary access details (wp-admin and FTP).
I have set the next reply to private which means only you and I have access to it.
Thanks for sharing information. Yes - I would like to have steps to reproduce this issue and where they seen it. I'll wait for your answer and as soon as we will have enough information I will start to debug this issue further.
This is Mohammed: The Toolset support team leader.
I'm posting here to inform you that the issue can be fixed by uploading this file: hidden link to the root directory in Views plugin replacing the file with the same name.
Can you please test if this fixes the issue and let us get your feedback?
Thank you so much for such a simple way to fix this. Please confirm whether the file you sent (wp-views.php) should be saved and then re-uploaded after each future update of the Toolset software?
Kind regards,
Andy
This ticket is now closed. If you're a WPML client and need related help, please open a new support ticket.