[SOLVED] Errors after installing Butterfly script. I Need some help...

by 6 replies
8
Hello,

I know that this is an old script, but I want to use it.

I already posted on their forum, but this forum is almost dead

I'm not a programmer, but I know to play a bit with copy/paste on to the codes

I managed to install bfm on hostagator account after importing the db from an older PHP script instalation

Ok, now after install I have this errors on to the top of admin area:

"Warning: date() [function.date]: It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'America/Chicago' for 'CST/-6.0/no DST' instead in" folowing locations:

/admin/inc.bottom.php on line 44
/admin/members.php on line 791
/admin/members.php on line 798
/admin/members.php on line 804
/admin/members.php on line 814
/admin/members.php on line 821
/admin/members.php on line 827
/admin/a.adm.main.php on line 157
/admin/a.adm.main.php on line 161
/admin/a.adm.main.php on line 165
/admin/a.adm.main.php on line 169
/admin/a.adm.main.php on line 173
/admin/a.adm.main.php on line 177
/admin/a.adm.main.php on line 431

&

Deprecated: Function ereg_replace() is deprecated in /lib/inc.general.functions.php on line 577
Deprecated: Function ereg_replace() is deprecated in /lib/inc.general.functions.php on line 579
Deprecated: Function ereg_replace() is deprecated in /lib/inc.general.functions.php on line 581
Deprecated: Function ereg_replace() is deprecated in /lib/inc.general.functions.php on line 577
Deprecated: Function ereg_replace() is deprecated in /lib/inc.general.functions.php on line 579
Deprecated: Function ereg_replace() is deprecated in /lib/inc.general.functions.php on line 581

Any advice?

Thank you,
Gelu
#programming #butterfly #errors #installing #script
    • [ 1 ] Thanks
    • [1] reply
    • I have changed "ereg_replace" with "preg_replace" and I've used "//" instead "".

      This problem is solved now, but still I have the "Warning: date() [function.date]:" problem

      Thank you
      Gelu
      • [1] reply
  • Specify the timezone before you run the date function

    date_default_timezone_set('UTC');

    http://wordpress.org/support/topic/p...stems-timezone
    • [ 1 ] Thanks
    • [1] reply
    • Thank you Andrew

      This is not WP, but your answer helped me somehow

      So how I solved

      I put this code at the top of each file that had the error

      date_default_timezone_set('UTC');
  • Yeah not a problem, I just googled your error and that's the first that came up.

    I would advise finding a file that is already included() or required() in all your pages (possibly a config.php file) and put the date timezone declaration in there, so it isn't spread across multiple pages.

    Glad I could help.

Next Topics on Trending Feed