• I notice this error is being logged in debug.log when I visit any page in wp-admin.
    PHP Notice: Use of undefined constant MULTISITE - assumed 'MULTISITE' in /home/xxxxx/wp-content/plugins/threewp-broadcast/src/sdk/wordpress/base.php on line 97
    PHP Notice: Use of undefined constant MULTISITE - assumed 'MULTISITE' in /home/xxxxx/wp-content/plugins/threewp-broadcast/src/sdk/wordpress/base.php on line 96
    PHP Notice: Undefined index: ID in /home/xxxxx/wp-content/plugins/threewp-broadcast/src/traits/broadcasting.php on line 708

    The site is fresh install from v4.6.1 with multisite.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author edward_plainview

    (@edward_plainview)

    According to my wp-config.php, that should be defined in your wp-config.php, according to the instructions for converting a single blog to a network.

    Does it not exist there?

    Thread Starter allegroclub

    (@allegroclub)

    It seems to. Maybe I missed one line of code when I copy.. Let me reinstall it…

    Anyways, I notice that the collation of table generated by this plugin is latin1_swedish_ci, instead of utf8mb4_unicode_ci used by tables generated by wordpress. Can you fix it in the code?

    Plugin Author edward_plainview

    (@edward_plainview)

    How old is your Broadcast install?

    The code has the following:

    ENGINE=MyISAM DEFAULT CHARSET=latin1;

    but order doesn’t matter much anyway since the table is not sorted using text at all.

    Thread Starter allegroclub

    (@allegroclub)

    It is a fresh install. It was yesterday.

    Based on https://codex.www.ads-software.com/Converting_Database_Character_Sets:

    Beginning with Version 2.2, both the database character set and the collation can be defined in the wp-config.php file. Setting the DB_CHARSET and DB_COLLATE values in wp-config.php causes WordPress to create the database with the appropriate charset settings. The default is UTF8, the standard charset for modern data which supports all internet-friendly languages.

    I believe your code has not updated for such changes. My wp-config setting for database:

    /** Database Charset to use in creating database tables. */
    define('DB_CHARSET', 'utf8mb4');
    
    /** The Database Collate type. Don't change this if in doubt. */
    define('DB_COLLATE', '');
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘PHP Notices in debug.log’ is closed to new replies.