Forum Replies Created

Viewing 4 replies - 31 through 34 (of 34 total)
  • Thread Starter LordGoran

    (@lordgoran)

    It’s version 1.2 The WP MU install is 3.6.

    Like I said, in our Multisite install all users for all sites are in a single table. I was not the person that set this up. I’m coming in second hand, and it’s been updated a few times. So I’m guessing that the base install is very old and could be from when the Multisite was first available.

    Steve

    Thread Starter LordGoran

    (@lordgoran)

    By editing your code I got the email script to work.

    It took editing the table name for Users you have in your get_cats function to match the database structure I have set-up in my Word Press Multisite.

    So if anyone else has the same issue I did, at line 134 of your send_mail.php change ".$wpdb->prefix."users to the structure of your database. Like wp_users for example.

    Steve

    Thread Starter LordGoran

    (@lordgoran)

    In the Word Press Multi site database the table users does not exist. Instead the database is set up as follows:
    wp_users is the table for the entire multi site.
    wp_1_ would then be the prefix to the first word press website inside of the Multisite.

    So if your script is looking for wp_1_users it will never find wp_users.

    I’m testing an edit I did to your code.
    In the get_carts function I edited the code to look for a hard coded table name for wp_users and not the $wpdb->prefix.”users.

    I’ll update if it works.

    Steve

    Thread Starter LordGoran

    (@lordgoran)

    Okay, I did some digging into your plugin.
    After looking at your code I found the underlying problem.
    My site is built on the Word Press Multi-site.
    The database structure for pulling the user data is not the same as the stand along Word Press software.

    The error I was getting was Word Press’s way to say that it had a database error.

    Unless you have a version of your plugin that works for the WP Multisite, I guess I’m out of luck.

    Thanks!

Viewing 4 replies - 31 through 34 (of 34 total)