Error when trying to save from edit profile.

I just upgraded to 7.1 from 7.0.9. Everything appears smooth so far except for an error message after clicking the save button from the edit profile page. I get the following error:

 

Fatal error: Call to undefined function ForbidenEmailProvider() in /home/www/mysite.com/inc/classes/BxDolProfileFields.php(388) : runtime-created function on line 1


Anyone know how I can get in the right direction to fixing this?

Quote · 11 Feb 2013

My guess is you have a 3'rd party email filter installed.

I am guessing the eval for the email address profile field is not at default.

One of the things you need to keep in mind when upgrading dolphin is any mods that have source code changes.

When you upgrade dolphin the upgrade replaces it's files. Not all of them. Just the ones that were updated. This means any mods you have installed that required source code changes will have to be reinstalled. The source change part of it.



https://www.deanbassett.com
Quote · 11 Feb 2013

Thanks Deano. I am trying to think. I did a decent job at keeping inventory and version numbers of all my installed mods but I am missing a couple in my list. The only thing I can think of right off is Modzzz ultimate notifier, ibdw deny unconfirmed. Im not bad at messing around in code if I know what I am looking for. I am going to need to backtrack to see what might effect this.  Deano do you know what or where I should check?

Quote · 11 Feb 2013

It looks like I may also have something called Automatic Confirmation Emails. It consist of nothing more than a DB query.

 

INSERT INTO `sys_options` (`Name` ,`VALUE` ,`kateg` ,`desc` ,`Type` ,`check` ,`err_text` ,`order_in_kateg` ,`AvailableValues`)
VALUES ('confirmation_email_period', '2', '1', 'Time period for sending confirmation emails to uncofirmed profiles (in days)', 'digit', '', '', NULL , '');
INSERT INTO `sys_cron_jobs` (`id` ,`name` ,`time` ,`class` ,`file` ,`eval`)
VALUES (NULL , 'auto_conf_emails', '0 1 * * *', '', '', '$iPeriod = $GLOBALS[''MySQL'']->getParam(''confirmation_email_period''); $aProfilesToConfirm = $GLOBALS[''MySQL'']->getAll("SELECT `ID` FROM `Profiles` WHERE `Status` = ''Unconfirmed'' AND (`Couple`=0 OR `Couple` > `ID`) AND (TO_DAYS(NOW()) - TO_DAYS(`DateReg`)) % {$iPeriod} = 0"); foreach ($aProfilesToConfirm as $aProfile) activation_mail($aProfile[''ID''], 0);');

Quote · 11 Feb 2013

You need to look in the fields builder.

The email address field for the forms.

The eval function should be this as default.

return (bool) preg_match('/^([a-z0-9+_-.]+)@([a-z0-9+_-.]+)$/i', $arg0);

My guess is yours is different. I am guessing you used code contained in this topic post. http://www.boonex.com/forums/topic/spam-spam-spam-spam-IDEA-.htm because that is where the ForbidenEmailProvider() function your missing is mentioned.

https://www.deanbassett.com
Quote · 11 Feb 2013

Your right Deano I did. I forgot about this. This modification worked great too its a shame I assume its no longer compatible.  The blank page with the error page is gone but now the page just reloads with visible content and a new error at the top of the template.

 

Warning: preg_match() [function.preg-match]: Compilation failed: range out of order in character class at offset 12 in /home/www/mysite.com/inc/classes/BxDolProfileFields.php(388) : runtime-created function on line 1



Quote · 11 Feb 2013

My guess is there is a problem with that eval code you used. Perhaps it did not paste properly.

Take it out completely to see if the error goes away. If not, then there is another field besides the email address.

https://www.deanbassett.com
Quote · 11 Feb 2013

You've saved the day for me yet again. Thanks Deano. I always keep an eye out on your work

Quote · 11 Feb 2013
 
 
Below is the legacy version of the Boonex site, maintained for Dolphin.Pro 7.x support.
The new Dolphin solution is powered by UNA Community Management System.