Jump to content
MakeWebGames

mccodes v2 Installer help


Unreal

Recommended Posts

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)

Link to comment
Share on other sites

  • 4 weeks later...

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

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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