1
greenjoseph
problem with xoops
  • 2010/8/25 23:40

  • greenjoseph

  • Just popping in

  • Posts: 8

  • Since: 2010/8/24


hello evey body ,
I use xoops on my web site for a long time , but recently a message appared and I dont know what it means :

This page cannot be displayed due to an internal error.

You can provide the following information to the administrators of this site to help them solve the problem:

Error: Unable to connect to database

any one has a solution for thats ?

2
ghia
Re: problem with xoops
  • 2010/8/26 4:06

  • ghia

  • Community Support Member

  • Posts: 4953

  • Since: 2008/7/3 1


It means the database credentials in mainfile.php are no longer correct or the MySQL server on your site is down.
Check the data in mainfile.php and/or contact your hoster to see if they have eg moved the site between servers.

PS don't use text formatting for the entire message.

3
greenjoseph
Re: problem with xoops
  • 2010/8/26 17:02

  • greenjoseph

  • Just popping in

  • Posts: 8

  • Since: 2010/8/24


Ok , thansk I check the data in mainfile.php and they are correct.
I will contact the hoster

4
greenjoseph
Re: problem with xoops
  • 2010/8/29 0:51

  • greenjoseph

  • Just popping in

  • Posts: 8

  • Since: 2010/8/24


I check The mainfile page it correct, and I contact the hoster they say that there is no problem on the server.


plz :( any one have a solution?? :( :(

5
ghia
Re: problem with xoops
  • 2010/8/29 7:32

  • ghia

  • Community Support Member

  • Posts: 4953

  • Since: 2008/7/3 1


I still think you have a value in one of the definitions of mainfile.php that does not much the server.
You may test your database with this dbtest.php, that contains:
mysql_connect("MYSQLSERVER""USERNAME""PASSWORD") or die(mysql_error());
echo 
"Connected to MySQL";
mysql_select_db("DBNAME") or die(mysql_error());
echo 
"Connected to Database";
?>

You need to replace MYSQLSERVER by the server, probably localhost and DBNAME, USERNAME and PASSWORD by your values (get all 4 from mainfile.php).
What does it say?

6
greenjoseph
Re: problem with xoops
  • 2010/8/29 15:10

  • greenjoseph

  • Just popping in

  • Posts: 8

  • Since: 2010/8/24


I use it , this message apparead :

Connected to MySQL
Connected to Database

7
ghia
Re: problem with xoops
  • 2010/8/29 20:50

  • ghia

  • Community Support Member

  • Posts: 4953

  • Since: 2008/7/3 1


Strange, apparantly no reason to fail!
XOOPS, PHP, MySQL version?
Do you use custom PHP blocks with separate connections to the database (with similar code as the test program)?
In phpMyAdmin try to (Take backup first)
-enable debug
-disable the blocks (visibility 0)
-deactivate the modules (except system)
and see if the error goes away.


8
greenjoseph
Re: problem with xoops
  • 2010/9/4 21:18

  • greenjoseph

  • Just popping in

  • Posts: 8

  • Since: 2010/8/24


Thanks for your assistance , the problem was from the hoster , due to high load on MYSQL.
now its fixed , I use a new server.

Login

Who's Online

235 user(s) are online (76 user(s) are browsing Support Forums)


Members: 0


Guests: 235


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits