Membership Plugin

WordPress Membership Plugin

  • Home
  • Documentation
  • Addons
  • Support
    • Quick Setup
    • Documentation
    • Premium Addon Support
    • Paid Support
    • Support Forum
    • Support Forum Search
    • Forum Login
    • Forum Registration
  • Contact
You are here: Home

scottnationwidechildrens

  • Profile
  • Topics Started
  • Replies Created
  • Engagements
  • Favorites

Forum Replies Created

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • March 29, 2016 at 4:37 pm in reply to: WP-Admin "No items found" on Plugin Page after Migration #6140
    scottnationwidechildrens
    Participant

    UPDATE: 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.php

    In 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,
    Scott

    March 29, 2016 at 3:30 pm in reply to: WP-Admin "No items found" on Plugin Page after Migration #6139
    scottnationwidechildrens
    Participant

    It 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 #6128
    scottnationwidechildrens
    Participant

    And here is the output with WP-Debug enabled…

    Image

    March 28, 2016 at 7:20 pm in reply to: WP-Admin "No items found" on Plugin Page after Migration #6123
    scottnationwidechildrens
    Participant

    All 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…

    Admin Page

    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,
    Scott

    March 18, 2016 at 2:18 pm in reply to: WP-Admin "No items found" on Plugin Page after Migration #5971
    scottnationwidechildrens
    Participant

    There 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 #5948
    scottnationwidechildrens
    Participant

    Is 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 #5909
    scottnationwidechildrens
    Participant

    Hi, 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…

    Database Form

  • Author
    Posts
Viewing 7 posts - 1 through 7 (of 7 total)
Next Page »

Please read this message before using our plugin.

Search

Featured Addons and Extensions

  • Membership Form Builder Addon
  • Member Directory Listing Addon
  • WooCommerce Payment Integration
  • Member Data Exporter Addon

Documentation

  • Documentation Index Page

Copyright © 2026 | Simple Membership Plugin | Privacy Policy