• Resolved rswebmaster

    (@rswebmaster)


    Hi,
    Fatal error: Uncaught Error: Call to a member function show() on null in /web/htdocs/www.runalltogether.eu/home/wp-content/plugins/wp-data-access/WPDataProjects/WPDP.php:229 Stack trace: #0 /web/htdocs/www.runalltogether.eu/home/wp-content/plugins/wp-data-access/WPDataProjects/WPDP.php(189): WPDataProjects\WPDP->add_content() #1 /web/htdocs/www.runalltogether.eu/home/wp-includes/class-wp-hook.php(286): WPDataProjects\WPDP->data_projects_page(”) #2 /web/htdocs/www.runalltogether.eu/home/wp-includes/class-wp-hook.php(310): WP_Hook->apply_filters(”, Array) #3 /web/htdocs/www.runalltogether.eu/home/wp-includes/plugin.php(465): WP_Hook->do_action(Array) #4 /web/htdocs/www.runalltogether.eu/home/wp-admin/admin.php(253): do_action(‘wp-data-access_…’) #5 {main} thrown in /web/htdocs/www.runalltogether.eu/home/wp-content/plugins/wp-data-access/WPDataProjects/WPDP.php on line 229

Viewing 11 replies - 1 through 11 (of 11 total)
  • Plugin Author Passionate Programmer Peter

    (@peterschulznl)

    Hi rswebmaster,

    Looks like you’re missing the plugin data project tables. Can you please check if all the repository table are available?

    This is how:
    – in the plugin menu navigate to “Manage Plugin”
    – click tab “Manage Repository”

    If there are any tables missing, you should see a message and a button to (re)create them. Please let me know if this solves your problem.

    Best regards,
    Peter

    Thread Starter rswebmaster

    (@rswebmaster)

    Hi Peter,
    the table wp261_wpda_menu_items is not found and two its triggers wp261_wpda_menu_items_before_insert and wp261_wpda_menu_items_before_update have not found.

    I see only the button “Recreate WP Data Access repository”.
    I have tried to re-create the repository several times but there is always an issue.

    Regards
    R

    Plugin Author Passionate Programmer Peter

    (@peterschulznl)

    Hi R,

    What message do you get? Are the other plugin tables available? (wp261_wpda_table_design, wp261_wpdp_project, wp261_wpdp_page, wp261_wpdp_table) Or are they missing as well? Do you have permission to create tables?

    The missing table is certainly the problem. Let’s find out why…

    Best regards,
    Peter

    Thread Starter rswebmaster

    (@rswebmaster)

    Hi Peter,
    all the other table you listed were found, the only one not found is the wp261_wpda_menu_items table and its triggers as already mentioned.

    Below some pictures, I hope it helps
    https://www.runalltogether.eu/wp-content/uploads/2019/04/WP_DATA_ACCESS_err.png
    https://www.runalltogether.eu/wp-content/uploads/2019/04/WP_DATA_ACCESS.png

    I have tried to re-create the repository several times but there is always this issue.

    Regards
    R

    Plugin Author Passionate Programmer Peter

    (@peterschulznl)

    Hi R,

    I’m interested in the error message you get when you try to create the table. Below you’ll find the create table script for the menu items table. Can you please copy this statement in a script and run that script from the data explorer? When you uncheck the hide errors checkbox you should see the error on your dashboard.

    CREATE TABLE wp261_wpda_menu_items (
    menu_name VARCHAR(100) NOT NULL,
    menu_table_name VARCHAR(64) NOT NULL,
    menu_capability VARCHAR(100) NOT NULL,
    menu_slug VARCHAR(100),
    PRIMARY KEY (menu_name, menu_table_name, menu_capability)
    );

    Best regards,
    Peter

    Thread Starter rswebmaster

    (@rswebmaster)

    Hi Peter,
    I have created a blank .sql file format and copied and pasted your script.
    When trying to import from Data Explorer section I receive the following error.
    https://www.runalltogether.eu/wp-content/uploads/2019/04/WP_DATA_ACCESS_import_error-1.png
    Could you please send the script file?

    Regards
    R

    Plugin Author Passionate Programmer Peter

    (@peterschulznl)

    Hi R,

    You can download the script from the link below:
    https://drive.google.com/file/d/1rtHDhhbvgUfJcdMIL8FiCK-G8Xf1MW-z/view?usp=sharing

    But that should result in the same error. Did you uncheck the “Hide errors” checkbox? I expected to see a MySQL error message. Do you have access to the MySQL command line? It looks like a database problem to me.

    Best regards,
    Peter

    Thread Starter rswebmaster

    (@rswebmaster)

    Hi Peter,
    running the script in the mySQL interface of my hosting (Aruba), I received the error message shown in the picture. I hope it helps.

    https://www.runalltogether.eu/wp-content/uploads/2019/04/WP_DATA_ACCESS_import_error_SQL.png

    Without the Primary key I am to create the table. Now I have deleted it.

    Regards
    R

    Plugin Author Passionate Programmer Peter

    (@peterschulznl)

    Hi R,

    This is a limitation of the MySQL version 5.6 and prior. Can you update to version 5.7 or higher? That would solve the problem.

    You can also create the table without the primary key. Without the primary key you will not be able to use the dashboard menus feature, but you will be able to use the other features.

    Best regards,
    Peter

    Thread Starter rswebmaster

    (@rswebmaster)

    Hi Peter,
    unfortunately, I cannot update the MySQL version of my hosting.
    I will try to create the table as you suggested.
    Thanks for your support

    Regards
    R

    Plugin Author Passionate Programmer Peter

    (@peterschulznl)

    Hi R,

    I will close this topic. In the next release I’ll change the create table script to prevent future users with older MySQL installation having the same problem. Thank you for pointing out this issue!

    Best regards,
    Peter

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘Message: Some features of WP Data Access are currently not available’ is closed to new replies.