Jump to content
MakeWebGames

Recommended Posts

Posted

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)

Posted

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

  • 4 weeks later...
Posted

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

Posted

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...

Posted

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

Posted

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)) {

Posted

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

Posted

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])) {

Posted

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

Posted

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.

Posted

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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...