Author Topic: Can't figure out the error on installation  (Read 3300 times)

0 Members and 1 Guest are viewing this topic.

Offline abstained

  • Pre-Newbie
  • Posts: 1
    • View Profile
Can't figure out the error on installation
« 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!

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: Can't figure out the error on installation
« Reply #1 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)){
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)