Forum Replies Created
-
AuthorPosts
-
March 29, 2016 at 4:37 pm in reply to: WP-Admin "No items found" on Plugin Page after Migration #6140
scottnationwidechildrens
ParticipantUPDATE: FIX
Okay, I have the following fix if anyone runs across this in their own journey. Essentially, the class variables need updated to public in two file locations:
\classes\class.swpm-fb-forms-list.php
\classes\class.swpm-form-builder.phpIn class.swpm-fb-forms-list.php, find the following code:
class SwpmFbFormsList extends WP_List_Table { public $errors;After public $errors; add:
public $field_table_name; public $form_table_name; public $multivalue_table_name;In class.swpm-form-builder.php find the following code:
public function __construct() { global $wpdb; $this->field_table_name = $wpdb->prefix . 'swpm_form_builder_fields'; $this->form_table_name = $wpdb->prefix . 'swpm_form_builder_forms'; $this->custom_table_name = $wpdb->prefix . 'swpm_form_builder_custom';And add the following just above public function __construct() {:
public $field_table_name; public $form_table_name; public $multivalue_table_name;I’m not sure why the class variables are not public in the original release of the plugin–but I suspect it started breaking after WordPress updated to 4.4.2.
Cheers,
ScottMarch 29, 2016 at 3:30 pm in reply to: WP-Admin "No items found" on Plugin Page after Migration #6139scottnationwidechildrens
ParticipantIt looks as though:
$this->field_table_name
Isn’t being passed through as a variable on the query. If I create a variable for:
$tablename = $wpdb->prefix . “swpm_form_builder_forms”;
and run the query:
$count = $wpdb->get_var(“SELECT COUNT(*) FROM $tablename”);
I receive the correct count of forms in the admin page.
My question is, is there a way to update the query:
$count = $wpdb->get_var(“SELECT COUNT(*) FROM $this->form_table_name” );
to use the correct ‘$this’ variable–because that’s where it’s failing.
I’m on PHP 5.6.9 if that makes a difference. In addition, I can print ‘$this->form_table_name’ and receive ‘wp_swpm_form_builder_forms’ on the all_forms.php page–so the variable is slightly working–just not in the queries.
Please help, thanks!
March 28, 2016 at 8:05 pm in reply to: WP-Admin "No items found" on Plugin Page after Migration #6128scottnationwidechildrens
ParticipantAnd here is the output with WP-Debug enabled…
March 28, 2016 at 7:20 pm in reply to: WP-Admin "No items found" on Plugin Page after Migration #6123scottnationwidechildrens
ParticipantAll of those tables exist and there are two forms in the database…
I added some code to the views\all_forms.php file to report the number of forms and as you can see from the screenshot below, it’s reporting two forms…

I’ve dropped the database, uninstalled the plugin, re-added on multiple installations all with the same result. All of this happened after the upgrade to WordPress 4.2.2.
Some assistance would be greatly appreciated.
Thanks,
ScottMarch 18, 2016 at 2:18 pm in reply to: WP-Admin "No items found" on Plugin Page after Migration #5971scottnationwidechildrens
ParticipantThere were no issues importing the DB on dev, stage, prod or DR and all are experiencing the same issue with this plugin. Different database snapshots have been used and the issue remains.
Thanks.
March 17, 2016 at 6:48 pm in reply to: WP-Admin "No items found" on Plugin Page after Migration #5948scottnationwidechildrens
ParticipantIs there not any SUPPORT for this plugin?
March 16, 2016 at 1:06 pm in reply to: WP-Admin "No items found" on Plugin Page after Migration #5909scottnationwidechildrens
ParticipantHi, which two forms are you referring to? The image above shows no forms created using the Form Builder add-on.
Hello, yes that is the reason I am requesting assistance–there are two forms that are being used, but they are not showing up in WP-Admin.
Edit: – Here are the forms in the database…

-
AuthorPosts