Title: PHP Notices in debug.log
Last modified: September 11, 2016

---

# PHP Notices in debug.log

 *  [allegroclub](https://wordpress.org/support/users/allegroclub/)
 * (@allegroclub)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/php-notices-in-debug-log/)
 * 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](https://wordpress.org/support/users/edward_plainview/)
 * (@edward_plainview)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/php-notices-in-debug-log/#post-8172178)
 * 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](https://wordpress.org/support/users/allegroclub/)
 * (@allegroclub)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/php-notices-in-debug-log/#post-8175498)
 * 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](https://wordpress.org/support/users/edward_plainview/)
 * (@edward_plainview)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/php-notices-in-debug-log/#post-8175506)
 * 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](https://wordpress.org/support/users/allegroclub/)
 * (@allegroclub)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/php-notices-in-debug-log/#post-8175820)
 * It is a fresh install. It was yesterday.
 * Based on [https://codex.wordpress.org/Converting_Database_Character_Sets](https://codex.wordpress.org/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.

 * ![](https://ps.w.org/threewp-broadcast/assets/icon.svg?rev=1013783)
 * [Broadcast](https://wordpress.org/plugins/threewp-broadcast/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/threewp-broadcast/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/threewp-broadcast/)
 * [Active Topics](https://wordpress.org/support/plugin/threewp-broadcast/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/threewp-broadcast/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/threewp-broadcast/reviews/)

 * 4 replies
 * 2 participants
 * Last reply from: [allegroclub](https://wordpress.org/support/users/allegroclub/)
 * Last activity: [9 years, 9 months ago](https://wordpress.org/support/topic/php-notices-in-debug-log/#post-8175820)
 * Status: not resolved