Hi,
I’ve got PHP7, and mysql functions are deprecated since php5.5.0.
You should replace all mysql functions to mysqli.
As well, i replaced the mysql_query & mysql_fetch_objects into a wpdb->get_results and a foreach loop.
Replace in admin_user_messages_settings.php these lines:
// TEST
$resultSettings = $wpdb->get_results( $querySettings );
$num_rowsSettings = count($resultSettings);
//$resultSettings = mysqli_query($querySettings);
//$num_rowsSettings = mysqli_num_rows($resultSettings);
if ($num_rowsSettings >= ‘1’) {
//while($rowSettings = mysqli_fetch_object($resultSettings)) {
foreach ( $resultSettings as $rowSettings ) {
if ($rowSettings->item == ‘table_color_header’) {
$aum_tablecolorheader = $rowSettings->value;
I saw that we’ve got the same error when trying to display the shortcodes pages.
We need to update the loop as well.
I’ll update all the code, if you are interested, i could send over the files.
http://jcdarocha.fr
Have a nice day,
jean-Charles
I’ve fixed all the plugin.
Go and download it here:
http://jcdarocha.fr/docs/plugin/admin-user-messages/admin-user-messages.zip
It now works on PHP7 and WP 4.4.3
have a nice day and thx for your work!
Thank you jcarocha, I am so sorry, that I couldn’t do it by myself, because of many other projects, but I think I will shortly.