News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

Db error / View the most recent posts on the forum

Started by Woden88, January 29, 2011, 04:16:49 PM

Previous topic - Next topic

Woden88

www.magmamagicmachine.it/forum
SMF rc4.0

Hi, I hope you can help me. At the firt, my forum link and SMF version I'm using, today a register this error:

When I press this link:
"View the most recent posts on the forum"
forum report me:
Fatal error: Call to undefined function: array_diff_key() in /home/mhd-01/www.magmamagicmachine.it/htdocs/forum/Sources/Recent.php on line 252

And than, today I received a mail from the site system:
There has been a problem with the database!
This is a notice email to let you know that SMF could not connect to the database, contact your host if this continues.

Why this problem? How can I rapair it?
Thank you so much,
Woden
Nunc per ludum dorsum nudum fero tui sceleris

kat

Your forum looks fine, for me.

That "Could not connect" error may have been because of something your host was doing.

That first error's not, though.

Have you installed any mods, recently?

Have you tried going to Admin>Forum maintenance and repairing errors?

Your site's CPanel and repaired the database there?

Woden88

I don't installed mods.
I tried from SMF admin-> forum: routine maint. and db maint.

The error there is still.

From my site's CPanel, where can i repaired the database? from phpmyadmin where?
In CPanel I do not see the function.
(i report you php v. 4, I can set v.5 if I need)

this is the line error:
$key = 'recent-' . $user_info['id'] . '-' . md5(serialize(array_diff_key($query_parameters, array('max_id_msg' => 0)))) . '-' . (int) $_REQUEST['start'];

Woden
Nunc per ludum dorsum nudum fero tui sceleris

Kays

Hi, your host must be using an older version of PHP. Download the attached file and install it using the package manager.

If at first you don't succeed, use a bigger hammer. If that fails, read the manual.
My Mods

Woden88

Thanx Kay.
I can set PHP vers. to 5. Now is 4.
Do you suggest me to change to v.5 or to install your attc. in php v4?
Thanx,
Woden
Nunc per ludum dorsum nudum fero tui sceleris

Woden88

I'm sorry Kays, if so, where should I install?
And than, I install it with package manager of my SMF, right?

Woden
Nunc per ludum dorsum nudum fero tui sceleris

Kays

If you could update to PHP 5, it  is recommended.

Yes use the package manager in the Admin CP to install that patch. The same way mods are installed.

If at first you don't succeed, use a bigger hammer. If that fails, read the manual.
My Mods

Woden88

Changed to PHP v.5, the error disappear!!!!
Thank you so much!

Woden
Nunc per ludum dorsum nudum fero tui sceleris

Kays


If at first you don't succeed, use a bigger hammer. If that fails, read the manual.
My Mods

Advertisement: