I’ve exactly the same bug.
Edit :
I test on a multisite => bug. I try with a single site => it’s OK.
I found a quick fix but it’s not a good correction…
In file : user-access-manager/user-access-manager.php (line 110), I added a comment of this part of code:
if ($oUserAccessManager->isDatabaseUpdateNecessary()) { <? $sLink = 'admin.php?page=uam_setup';
add_action(
'admin_notices',
create_function(
'',
'echo \'<div id="message" class="error"><p><strong>'.
sprintf(TXT_UAM_NEED_DATABASE_UPDATE, $sLink).
'</strong></p></div>\';'
)
);
}
After that I check my database. It looks like update. I don’t know exactly what’s wrong but I think it’s a problem on multi site since WP 4.6. I check with UAM 1.2.6.7, I’ve the same problem.
YBM
(@ybmgryzzzgmailcom)
Hey there,
Thanks again for this post @deyneko. I have applied the fix @bakounine gave – thanks. And it worked. Is there anything the plugin authors say of this by any chance?
@gm_alex ?
Thanks again
I never had a response or an update of the plugin that fix it…
Hey,
what’s the exact bug? How can I reproduce it? Install Yoast, activate multi sites and than? What is if you update all the uam database for all wp instances?
Hey,
Thank you.
The symptom is quite simple. When you try to add a custom meta title or description and you save with the update button of the page (or post or other post type…), the data is not saved.
I update the last plugin version, to be sure. The data base looks like updated. But I don’t know how to check it or how to launch the upgrade of the tables.
I verify also on my multiblog : UAM activated in one blog and disabled on the other. YOAST work on the disabled UAM blog but not on the enabled blog.
I try to go here : admin.php?page=uam_setup I validate with option “no” because I don’t want to lose my data…
YBM
(@ybmgryzzzgmailcom)
Hi, Yeah, i second to what @bakounine says. So i updated this morning to latest Version 1.2.7.4 – because it was a quick fix to edit the plugin core code, it was replaced and i had to re comment :
/* if ($oUserAccessManager->isDatabaseUpdateNecessary()) {
$sLink = 'admin.php?page=uam_setup';
add_action(
'admin_notices',
create_function(
'',
'echo \'<div id="message" class="error"><p><strong>'.
sprintf(TXT_UAM_NEED_DATABASE_UPDATE, $sLink).
'</strong></p></div>\';'
)
);
}*/
Though this time, i can save the meta information but not the focus keyword. I will share this with Yoast as well as I am not sure with who the fix actually lies … I would love to be of more help though I am still learning coding too.
Thanks
We’ve had the same bug on a WordPress Multi-site install since about June/July. The titles and descriptions we write in the Yoast SEO Snippet Editor don’t get saved. We are forced to use batch editor.
Hi,
I was able to reproduce and fix the issue. Until the next release replace the function
public function isDatabaseUpdateNecessary() at the UserAccessManager.class.php file with the following:
public function isDatabaseUpdateNecessary()
{
$oDatabase = $this->getDatabase();
$aBlogIds = $this->_getBlogIds();
if ($aBlogIds !== array()
&& is_super_admin()
) {
foreach ($aBlogIds as $iBlogId) {
$sTable = $oDatabase->get_blog_prefix($iBlogId).'options';
$sSelect = "SELECT option_value FROM {$sTable} WHERE option_name = %s LIMIT 1";
$sSelect = $oDatabase->prepare($sSelect, 'uam_db_version');
$sCurrentDbVersion = $oDatabase->get_var($sSelect);
if (version_compare($sCurrentDbVersion, $this->_sUamDbVersion, '<')) {
return true;
}
}
}
$sCurrentDbVersion = $this->getWpOption('uam_db_version');
return version_compare($sCurrentDbVersion, $this->_sUamDbVersion, '<');
}
YBM
(@ybmgryzzzgmailcom)
Hey mate.
Thanks so much for looking into this and resolving. I am glad you figured it out and shared the update. I just ran the upgrade to V1.2.7.5 and i can save keyword and meta info.
Thanks again
Cheers