4images Forum & Community

4images Issues / Ausgaben => Installation, Update & Configuration => Topic started by: abstained on October 19, 2009, 10:51:41 PM

Title: Can't figure out the error on installation
Post by: abstained on October 19, 2009, 10:51:41 PM
An unexpected error occured. Please try again later.

I get that error, I tried changing the line on db_mysql.php and it still said the same thing. I am admin and have created the mysql database. I use hosting from startlogic.com if that helps. It's either I need to do something more with the database (I set all permissions) or I do not have the right database name and/or username. I tried using just the names, and adding my cpanel login name to the beginning of it, and nothing works.

Is there any suggestions on what I could try? I contacted the host to ask but figure I might get a faster help here. Thanks!
Title: Re: Can't figure out the error on installation
Post by: V@no on October 20, 2009, 04:51:30 AM
Hello and welcome to 4images forum. I agree, the database errors should not be hidden during the installation. This has been added to the list of fixes/features for next version.

In includes/db_mysql.php find:
      if (isset($user_info['user_level']) && $user_info['user_level'] == ADMIN){

Replace it with:
      if (!defined("4IMAGES_ACTIVE") || (isset($user_info['user_level']) && $user_info['user_level'] == ADMIN)){