Wordpress Themes - WP Forum at BFA
There will be no more development for Atahualpa (or any other theme), and no support. Also no new registrations. I turned off the donation system. I may turn the forum to read only if it gets abused for spam. Unfortunately I have no time for the forum or the themes. Thanks a lot to the people who helped in all these years, especially Larry and of course: Paul. Take care and stay healthy -- Flynn, Atahualpa developer, Sep 2021

Wordpress Themes - WP Forum at BFA » WordPress Themes » Atahualpa 3 Wordpress theme » New Versions, & Updating »

[SOLVED] Deprecated: Function eregi() is deprecated on line 367


  #1  
Old Mar 21, 2012, 07:50 AM
briancolin
 
2 posts · Oct 2010
I recently updated my PHP and now I am getting this error on Deprecated: Function eregi() is deprecated on line 367 in my bfa_ata_admin.

Here's the code
echo ( eregi("color", $value['id']) ? 'class="color" ' : '' ) .
'name="' . $value['id'] . '" id="' . $value['id'] . '" type="' . $value['type'] . '" value="';

I've tried searching for the answer, but I can only hack some php.... so everything I try results in another error. If anyone has dealt with this and could help, I would really appreciate it.

Thanks
  #2  
Old Mar 21, 2012, 07:52 AM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
what did you update your PHP to? ie what version?
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #3  
Old Mar 21, 2012, 08:00 AM
briancolin
 
2 posts · Oct 2010
Thanks for the quick response Juggledad. I upgraded to PHP5

One of my friends got out of a meeting faster than I thought they would and they came up with this and it fixed it:

$regx = "color";

echo ( preg_match("#$regx#i", $value['id']) ? 'class="color" ' : '' ) .
'name="' . $value['id'] . '" id="' . $value['id'] . '" type="' . $value['type'] . '" value="';

Last edited by briancolin; Mar 21, 2012 at 08:07 AM.

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Error: Function eregi() is deprecated ljwahl New Versions, & Updating 6 Apr 14, 2012 05:26 AM
[SOLVED] Notices on undefined indexes, variables and deprecated functions Knut Sparhell New Versions, & Updating 1 Jan 3, 2011 08:07 AM
Deprecated: Function eregi() when installing theme now mendocinotim New Versions, & Updating 5 Oct 13, 2010 08:04 AM
[SOLVED] Black Line Above/Below Header and White Line Before Body Mande Header configuration & styling 1 Sep 9, 2010 08:54 AM
How to change dotted border line in the layout to solid line? araneum Atahualpa 3 Wordpress theme 1 Feb 21, 2009 06:40 PM


All times are GMT -6. The time now is 01:55 AM.


Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.