Tell a friend error (deprecated)

Register an Account
Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old 11-16-2009, 07:55 AM
New Pligger
Pligg Version: 1.0.0
 
Join Date: Apr 2009
Posts: 9
Hi, the tell a friend option on my website does not seem to work. It worked fine for a long time, but now I get errors every time I try to send my story to any email address.

I have searched the forums, but I can`t see that anybody have got the same errors that I do. The errors are like this

"Deprecated: Function ereg() is deprecated in /customers/mystic.no/mystic.no/httpd.www/libs/utils.php on line 123

Deprecated: Function ereg() is deprecated in /customers/mystic.no/mystic.no/httpd.www/libs/utils.php on line 131

Deprecated: Function ereg() is deprecated in /customers/mystic.no/mystic.no/httpd.www/libs/utils.php on line 135

Deprecated: Function ereg() is deprecated in /customers/mystic.no/mystic.no/httpd.www/libs/utils.php on line 141

Deprecated: Function ereg() is deprecated in /customers/mystic.no/mystic.no/httpd.www/libs/utils.php on line 141"


My website is mystic.no. Hope someone can help me with this. "Tell a friend" is a great option=)
Reply With Quote
  #2 (permalink)  
Old 11-19-2009, 04:23 PM
New Pligger
Pligg Version: 1.0.0
 
Join Date: Apr 2009
Posts: 9
It would be great if someone had any suggestions for the error on my site. I have tried to figure out the problem myself, but to no help.

Thanks
Reply With Quote
  #3 (permalink)  
Old 09-02-2011, 04:53 PM
New Pligger
Pligg Version: 1.1.2
 
Join Date: Aug 2011
Posts: 1
There shouldn't be any problem about those warnings. Deprecated error only means that the function will soon stop working. Tell a friend to one of your emails and it should work as it did for me. For the error display part, your PHP config should prevent those warnings from appearing on your site in your php.ini file with :

display_errors = Off

or :

error_reporting = E_ALL & ~E_DEPRECATED & ~E_NOTICE
display_errors = On

If you can't figure out how to turn off those errors/this is already set to off and still shows the errors, you can try writing this in settings.php :

error_reporting(E_ALL ^ E_NOTICE ^ E_DEPRECATED);

should fix the problem

Otherwise, you can easily change the functions by using preg_match (the replacement for ereg).
NOTE : Pligg programmers this problem should be fixed as soon as possible in case the PHP development team decides removes the ereg functionnality.

Last edited by Superhelperteam; 09-02-2011 at 05:07 PM.
Reply With Quote
  #4 (permalink)  
Old 09-02-2011, 06:05 PM
Yankidank's Avatar
Pligg Founder/Coder/Designer
Pligg Version: SVN
Pligg Template: Wistie
 
Join Date: Dec 2005
Location: Ocala, FL
Posts: 4,934
Send a message via AIM to Yankidank
Added to bug list

The Twitter Module for Pligg CMS!
Register, Login, and Submit Stories with Twitter. An absolute MUST HAVE for all Pligg sites!
Reply With Quote
Reply

Tags
deprecated, tell a friend

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Google Friend Connect chuckroast Free Modules 17 04-08-2010 07:01 AM
How to Avoid Spamming through Tell a Friend Form The Edifier Questions and Comments 4 12-28-2009 05:51 AM
More Friend Related Modules atrandom Questions and Comments 2 07-30-2009 01:39 PM
[SOLVED] Tell a friend and message a friend bugs redwine Questions and Comments 5 09-22-2007 08:14 PM
Friend Module BuG searched&destroyed :) AnAlienHolakres3 Questions and Comments 0 09-08-2007 02:22 PM


Pligg Modules and Pligg Templates from Pligg Pro Find support on the Pligg CMS Forum - 24 hours a day! Make a donation to support Pligg CMS development