Unreal Posted October 18, 2011 Share Posted October 18, 2011 I keep getting this error after i enter all the details Any idea why Quote Link to comment Share on other sites More sharing options...
gurpreet Posted October 18, 2011 Share Posted October 18, 2011 As it says, ereg is deprecated so you need to replace those with properly formatted preg_match's Also make sure your db username and password and that is correct Quote Link to comment Share on other sites More sharing options...
H4x0r666 Posted October 18, 2011 Share Posted October 18, 2011 you've entered the wrong settings to connect your database on the localhost, or you havent changed it at all :P make sure they are correct^^ and the preg_match's arent a big deal, also it worked for me even after having those errors. (if you wanne fix it, search up my older posts about preg/ereg stuff.. it wasnt that hard xD) Quote Link to comment Share on other sites More sharing options...
sniko Posted October 18, 2011 Share Posted October 18, 2011 I think Danny696 did make a better installation file for mccodes. I am going on memory, which may serve me incorrectly. Any who, gurpreet hit the nail on the head :) As it says, ereg is deprecated so you need to replace those with properly formatted preg_match's Also make sure your db username and password and that is correct Quote Link to comment Share on other sites More sharing options...
Snake Posted November 15, 2011 Share Posted November 15, 2011 Not sure how old this post is,but i'm having the same install problem,but it only says it for line 6....which has the ereg deprecated error....replacing ereg,and eregi with preg_match doesn't help...unless i'm replacing ereg wrong....need the fix for this....any more info would be greatly appreciated. Respect Snake Quote Link to comment Share on other sites More sharing options...
Dominion Posted November 15, 2011 Share Posted November 15, 2011 To be honest you're only going to use the installer once. It works. Ignore errors like this. In general it's bad advice, however in this case it would still do the job, and you only end up deleting the installer... Quote Link to comment Share on other sites More sharing options...
Snake Posted November 15, 2011 Share Posted November 15, 2011 Can't just ignore this error....mainly because i don't get the login after the 3rd step errors from the ereg thing....thanks...guess i'll look elsewhere for a mccrappy code solution Quote Link to comment Share on other sites More sharing options...
Uridium Posted November 16, 2011 Share Posted November 16, 2011 Just change any mention of ereg to preg_match and you should be ok Quote Link to comment Share on other sites More sharing options...
Snake Posted November 16, 2011 Share Posted November 16, 2011 did that...didn't help Quote Link to comment Share on other sites More sharing options...
Dominion Posted November 16, 2011 Share Posted November 16, 2011 Try posting the file, or at least the part that you feel is creating the problem? Quote Link to comment Share on other sites More sharing options...
Snake Posted November 16, 2011 Share Posted November 16, 2011 Deprecated: Function ereg() is deprecated in......installer.php on line 6....this is the error this is line 6 if (!ereg("^[^@]{1,64}@[^@]{1,255}$", $email)) { Quote Link to comment Share on other sites More sharing options...
Uridium Posted November 16, 2011 Share Posted November 16, 2011 on line 6 change to >> if (!preg_match("/^[^@]{1,64}@[^@]{1,255}$/", $email)) { Quote Link to comment Share on other sites More sharing options...
Snake Posted November 16, 2011 Share Posted November 16, 2011 thanks,that worked,but now i have the same ereg error for line 14....which is if (!ereg("^(([A-Za-z0-9!#$%&'*+/=?^_`{|}~-][A-Za-z0-9!#$%&'*+/=?^_`{|}~\.-]{0,63})|(\"[^(\\|\")]{0,62}\"))$", $local_array[$i])) { actually i think this is lines 14 and 15....but getting the same error....changing just ereg to preg_match on the 14 line makes it say admin e-mail invalid Quote Link to comment Share on other sites More sharing options...
Uridium Posted November 16, 2011 Share Posted November 16, 2011 Snake for line 14 do the same as above just add pregmatch and a / before the first ^ and one before $" so its $/" if (!preg_match("/^(([A-Za-z0-9!#$%&'*+/=?^_`{|}~-][A-Za-z0-9!#$%&'*+/=?^_`{|}~\.-]{0,63})|(\"[^(\\|\")]{0,62}\"))$/", $local_array[$i])) { Quote Link to comment Share on other sites More sharing options...
Snake Posted November 16, 2011 Share Posted November 16, 2011 that ended up the same error...saying admin e-mail was invalid....using the bit of code you have here Quote Link to comment Share on other sites More sharing options...
Uridium Posted November 16, 2011 Share Posted November 16, 2011 send your installer.php to me via inbox Quote Link to comment Share on other sites More sharing options...
Snake Posted November 17, 2011 Share Posted November 17, 2011 if (!ereg("^(([A-Za-z0-9!#$%&'*+/=?^_`{|}~-][A-Za-z0-9!#$%&'*+/=?^_`{|}~\.-]{0,63})|(\"[^(\\|\")]{0,62}\"))$", $local_array[$i])) { return false; } } if (!ereg("^\[?[0-9\.]+\]?$", $email_array[1])) { here is the rest of the ereg i think will error within the installer.php file....tried sending the file text to you illusions,but char limit would not allow it this bit of code is all the ereg thats in it Quote Link to comment Share on other sites More sharing options...
Neon Posted November 17, 2011 Share Posted November 17, 2011 Illusions has already explained how to fix this yourself. ereg has been deprecated since 5.3, soooo you had ample warning. Either way he explained it. The parameters don't change. Just rename ereg to preg_match and add backslash at end and beginning (still inside " tho). Except, I never used ereg myself. Maybe the actual expressions have to be different. You'll have to see. Quote Link to comment Share on other sites More sharing options...
Snake Posted November 17, 2011 Share Posted November 17, 2011 i know about the ereg being useless,or not used in php 5 now....and i did it as he said....got admin e-mail invalid...same **** i been getting from changing ereg to preg_match....and adding the / and $ where he said to add it....doesn't work.....nothing i've tried has helped me get through the 3rd step of install Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.