1
Stitch19
Line 34 problem, imediately HELP needed ?
  • 2005/2/26 9:40

  • Stitch19

  • Just popping in

  • Posts: 81

  • Since: 2004/12/18


Hi, when i woke up and went to my site this appears:

This page cannot be displayed due to an internal error.

If you are the administrator of this site, please visit the XOOPS Troubleshooting Page for assistance.

Error [Xoops]: Unable to connect to database in file class/database/databasefactory.php line 34


So i go to file database.php and find the 34 line:

}
$instance =& new $class();
$instance->setLogger(XoopsLogger::instance());
$instance->setPrefix(XOOPS_DB_PREFIX);
if (!$instance->connect()) {
trigger_error("Unable to connect to database",


So waht to do please ?

2
irmtfan
Re: Line 34 problem, imediately HELP needed ????????????
  • 2005/2/26 10:05

  • irmtfan

  • Module Developer

  • Posts: 3419

  • Since: 2003/12/7


hi Stitch19
please search with these keyword: "class/database/databasefactory.php line 34"
and you find the answer in faq section:
Error [Xoops]: Unable to connect to database in file class/database/databasefactory.php line 34

3
Stitch19
Re: Line 34 problem, imediately HELP needed ????????????
  • 2005/2/26 11:08

  • Stitch19

  • Just popping in

  • Posts: 81

  • Since: 2004/12/18


ok, we have sent e-mail to our hosting provider, but if they made the problem wqill we have our database with our users and files ???

4
Stitch19
Re: Line 34 problem, imediately HELP needed ????????????
  • 2005/2/26 12:54

  • Stitch19

  • Just popping in

  • Posts: 81

  • Since: 2004/12/18


i don't know what happend now but our site is working now but with some problems.

when i type my user name and password i sign in normal but when i try to go somewere else exept the homepage a message appears on the screen an tells
"
Sorry, you don't have the permission to access this area.

If the page does not automatically reload, please click here
"

does any body knows how to fix this?

5
Stitch19
Re: Line 34 problem, imediately HELP needed ????????????
  • 2005/2/26 14:07

  • Stitch19

  • Just popping in

  • Posts: 81

  • Since: 2004/12/18


Quote:

Stitch19 wrote:
i don't know what happend now but our site is working now but with some problems.

when i type my user name and password i sign in normal but when i try to go somewere else exept the homepage a message appears on the screen an tells
"
Sorry, you don't have the permission to access this area.

If the page does not automatically reload, please click here
"

does any body knows how to fix this?

yes please any help ???

6
McJagger
Re: Line 34 problem, imediately HELP needed ????????????
  • 2005/2/26 14:43

  • McJagger

  • Just popping in

  • Posts: 20

  • Since: 2004/12/11


Well, seems to be an error with the permissions (that are stored - who could guess - in the database)

I Could think of two things:

* Your User ain't webmaster any more (can be fixed in the xoops_users database table)
* The webmaster has no access to the areas (can be fixed in xoops_group_permission)

If you don't know how to edit your database, gotohttp://www.phpmyadmin.net , download phpmyadmin and install it on your webspace.

Hope I could help.

7
Stitch19
Re: Line 34 problem, imediately HELP needed ????????????
  • 2005/2/26 14:52

  • Stitch19

  • Just popping in

  • Posts: 81

  • Since: 2004/12/18


Quote:

McJagger wrote:
Well, seems to be an error with the permissions (that are stored - who could guess - in the database)

I Could think of two things:

* Your User ain't webmaster any more (can be fixed in the xoops_users database table)
* The webmaster has no access to the areas (can be fixed in xoops_group_permission)

If you don't know how to edit your database, gotohttp://www.phpmyadmin.net , download phpmyadmin and install it on your webspace.

Hope I could help.

yes that may be the problem, but i log in succesfully, but if i press on any link in my site (forum) it say that i do not have the premission, how cani log in and then i can not go anywhere ???, i will try the link....

8
irmtfan
Re: Line 34 problem, imediately HELP needed ????????????
  • 2005/2/26 15:16

  • irmtfan

  • Module Developer

  • Posts: 3419

  • Since: 2003/12/7


Stitch19 if you dont touch anything and thsi problem in permission occure after MySQL server down please contact to your server again maybe some rows in database changed or something like this.
anyway you can check the permissions directly via phpmyadmin

9
Stitch19
Re: Line 34 problem, imediately HELP needed ????????????
  • 2005/2/26 16:07

  • Stitch19

  • Just popping in

  • Posts: 81

  • Since: 2004/12/18


Quote:

irmtfan wrote:
Stitch19 if you dont touch anything and thsi problem in permission occure after MySQL server down please contact to your server again maybe some rows in database changed or something like this.
anyway you can check the permissions directly via phpmyadmin

thanks, i am checking it now, anyway i have cotacted with my hosting company and i am expecting their help or answer....

10
Stitch19
Re: Line 34 problem, imediately HELP needed ????????????
  • 2005/2/26 16:19

  • Stitch19

  • Just popping in

  • Posts: 81

  • Since: 2004/12/18


Quote:

McJagger wrote:
Well, seems to be an error with the permissions (that are stored - who could guess - in the database)

I Could think of two things:

* Your User ain't webmaster any more (can be fixed in the xoops_users database table)
* The webmaster has no access to the areas (can be fixed in xoops_group_permission)

If you don't know how to edit your database, gotohttp://www.phpmyadmin.net , download phpmyadmin and install it on your webspace.

Hope I could help.


i have phpmyadmin and i can i acces to "xoops_users" database and "xoops_group_permisions" table what i have to do to fix it

Login

Who's Online

200 user(s) are online (124 user(s) are browsing Support Forums)


Members: 0


Guests: 200


more...

Donat-O-Meter

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

Latest GitHub Commits