Warning: mysql_real_escape_string(): Access denied for user ''@'localhost' (using password: NO) in /home/acil/public_html/blog/wp-content/plugins/statpress-reloaded/statpress.php on line 1806

Warning: mysql_real_escape_string(): A link to the server could not be established in /home/acil/public_html/blog/wp-content/plugins/statpress-reloaded/statpress.php on line 1806

Warning: mysql_real_escape_string(): Access denied for user ''@'localhost' (using password: NO) in /home/acil/public_html/blog/wp-content/plugins/statpress-reloaded/statpress.php on line 1806

Warning: mysql_real_escape_string(): A link to the server could not be established in /home/acil/public_html/blog/wp-content/plugins/statpress-reloaded/statpress.php on line 1806

Warning: mysql_real_escape_string(): Access denied for user ''@'localhost' (using password: NO) in /home/acil/public_html/blog/wp-content/plugins/statpress-reloaded/statpress.php on line 1806

Warning: mysql_real_escape_string(): A link to the server could not be established in /home/acil/public_html/blog/wp-content/plugins/statpress-reloaded/statpress.php on line 1806

Warning: mysql_real_escape_string(): Access denied for user ''@'localhost' (using password: NO) in /home/acil/public_html/blog/wp-content/plugins/statpress-reloaded/statpress.php on line 1806

Warning: mysql_real_escape_string(): A link to the server could not be established in /home/acil/public_html/blog/wp-content/plugins/statpress-reloaded/statpress.php on line 1806

Warning: mysql_real_escape_string(): Access denied for user ''@'localhost' (using password: NO) in /home/acil/public_html/blog/wp-content/plugins/statpress-reloaded/statpress.php on line 1806

Warning: mysql_real_escape_string(): A link to the server could not be established in /home/acil/public_html/blog/wp-content/plugins/statpress-reloaded/statpress.php on line 1806

Warning: mysql_real_escape_string(): Access denied for user ''@'localhost' (using password: NO) in /home/acil/public_html/blog/wp-content/plugins/statpress-reloaded/statpress.php on line 1806

Warning: mysql_real_escape_string(): A link to the server could not be established in /home/acil/public_html/blog/wp-content/plugins/statpress-reloaded/statpress.php on line 1806
Cara Memperbaiki Error Deprecated: Function ereg() is deprecated in
Tuesday, January 01st, 2013 | Author:

Beberapa minggu yang lalu blog saya mengalami kecelakaan script.  Saya tidak tahu secara pasti apa yang menyebabkannya. Di halaman utamanya keluar pesan error seperti Deprecated: Function ereg() is deprecated in /home/aaa/public_html/blog/wp-content/plugins/statpress-reloaded/statpress.php on line 1719.

deprecated-function-ereg-is-deprecated-in

Setelah saya menelusuri  di beberapa website  via Google, akhirnya saya menemukan beberapa solusi dan menggabungkannya.  Untuk lebih mudahnya, saya buat per-step ya?

1. Login ke Cpanel hosting anda.

2. Masuk ke file manager dan cari file yang error, dalam kasus ini nama file-nya statpress.php

3. Setelah itu, anda cari baris dari pesan kesalahan. Misal baris 1719.

4. Backup terlebih dahulu script yang akan dimodifikasi. Bisa dengan menyimpan file tersebut ke dalam komputer atau memberikan tanda statement (/* kode script */) di awal dan di akhir script yang akan di backup.

backup script statpress.php

5. Jika sudah, sekarang anda cari fungsi php dari eregi.  contoh:

if (eregi(“.ico$”, $urlRequested))

kemudian gantikan eregi dengan preg_match. Untuk konstanta atau nilai sebuah variabel, anda perlu menambahkan slash (/) di awal dan di akhir variabel nilai. kemudian ditambahkan i. Hasilnya seperti dibawah ini.

if (preg_match(“/.ico$/i”, $urlRequested))

6.  Untuk kesalahan yang diakibatkan oleh fungsi ereg, perubahannya seperti berikut:

if (ereg(‘^([0-9]{1,3}\.){3}[0-9]{1,3}$’, $host))

berubah menjadi

if (preg_match(‘/^([0-9]{1,3}\.){3}[0-9]{1,3}$/’, $host))

7. Simpan file tersebut dan refresh halaman utama anda.

Dengan begitu cara tersebut akan mengatasi permasalahan pada blog anda. Semoga!


Possibly Related Posts:


Category: ICT
You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.
  1. rasyid says:

    ane udah langsung coba gan, its work, makasih gan buat tipsnya. mantap banget nih

    [Reply]

Leave a Reply

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

NoFollow Plugin made by Web Hosting

Check Google Page Rank