Author Topic: An unexpected error occured. Please try again later  (Read 347728 times)

0 Members and 1 Guest are viewing this topic.

Offline IBELIEVEINU

  • Pre-Newbie
  • Posts: 7
    • View Profile
Re: An unexpected error occured. Please try again later
« Reply #45 on: April 28, 2010, 04:15:08 AM »
I edited the db_mysql.php file with the change in the echo command and then the (isset), and I get the following errors when trying to run the install.php

The server encountered an unexpected condition which prevented it from fulfilling the request.
The script had an error or it did not produce any output. If there was an error, you should be able to see it in the error log.   thank you for any assistance.  It is like the installation does not happen at all?

Offline Nicky

  • Administrator
  • 4images Guru
  • *****
  • Posts: 3.195
    • View Profile
Re: An unexpected error occured. Please try again later
« Reply #46 on: April 28, 2010, 01:49:14 PM »
I edited the db_mysql.php file with the change in the echo command and then the (isset), and I get the following errors when trying to run the install.php

The server encountered an unexpected condition which prevented it from fulfilling the request.
The script had an error or it did not produce any output. If there was an error, you should be able to see it in the error log.   thank you for any assistance.  It is like the installation does not happen at all?

hi,
i think you are the guy who complains about the mysql server settings  :mrgreen: .

try this...

create new file named: mysqlconnect.php

put this into
Code: [Select]
<?php
mysql_connect
("MYSQL_SERVER_NAME""DATABASE_USERNAME""DATABASE_PASSWORD") or die(mysql_error());
echo 
"Connected to MySQL<br />";
mysql_select_db("4IMAGES_DATABASE") or die(mysql_error());
echo 
"Connected to Database";
?>

change:
MYSQL_SERVER_NAME to name of your mysql server host
DATABASE_USERNAME to name for your mysql username
DATABASE_PASSWORD to your mysql password
4IMAGES_DATABASE to name of your mysql 4images database
this details you should have from your HOST :)


upload the file to your 4images folder or where you want.. call it with http://domain/mysqlconnect.php

if you see this:
Quote
Connected to MySQL
Connected to Database

than it is everything fine.. those details should be used for the 4images installation (USE CLEAN ORIGINAL FILES!)..


IF mysqlconnect.php shows you similiar like this:

Quote
Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'DATABASE_USERNAME'@'localhost' (using password: YES) in /var/www/html/mysqlconnect.php  on line 2
Access denied for user 'DATABASE_USERNAME'@'localhost' (using password: YES)

you have still wrong details for the mysql server! again.. contact your host for the correct ones :)

remember: noone here is able to help you if you have wrong details..

gotcha?

good luck!
cheers
Nicky
Your first three "must do" before you ask a question ! (© by V@no)
- please read the Forum Rules ...
- please study the FAQ ...
- please try to Search for your answer ...

nicky.net 4 4images
Signature stolen from mawenzi

Offline dotchan

  • Pre-Newbie
  • Posts: 6
    • View Profile
Re: An unexpected error occured. Please try again later
« Reply #47 on: August 13, 2010, 11:58:21 PM »
I got the "Could not select database (database name)" error.  Except in the config.php file, it IS the correct database name.

ETA: Nevermind, was using the wrong host name.

Offline kiteloebi

  • Pre-Newbie
  • Posts: 1
    • View Profile
Re: An unexpected error occured. Please try again later
« Reply #48 on: October 26, 2010, 12:47:55 PM »
Hi,

I now tried everything but I don't get the gallery (new installation) running...  :cry:
After resolving the date_default_timezone issue and renaming config.new.php to config.php I now have the following error:

Bad SQL Query: SELECT setting_name, setting_value
        FROM 4images_settings
Table 'd00f17a6.4images_settings' doesn't exist


ERROR: Could not load configuration settings!

I already tried this with the mysqlconnect.php and seems to work properly. I inserted my db details into config.php.

Any help appreciated!

Offline juewei

  • Full Member
  • ***
  • Posts: 162
    • View Profile
Re: An unexpected error occured. Please try again later
« Reply #49 on: November 19, 2010, 08:55:43 PM »
Hallo,
ich habe folgend Fehler meldung
kann mir einer helfen?
Ich bin aber neuling und habe keine Ahnung

Bad SQL Query: INSERT INTO 4images_wordmatch (image_id, word_id, name_match, desc_match, keys_match)
              SELECT DISTINCT 234, word_id, 1, 1, 0
                FROM 4images_wordlist
                WHERE word_text = 'kino'Duplicate entry '234-218' for key 1


Rembrandt

  • Guest
Re: An unexpected error occured. Please try again later
« Reply #50 on: November 20, 2010, 05:54:09 AM »
...ich habe folgend Fehler meldung...
hast du die V1.7.9 ?
schau dir das mal an:  http://www.4homepages.de/forum/index.php?topic=28267.msg152898#msg152898

mfg Andi

Offline juewei

  • Full Member
  • ***
  • Posts: 162
    • View Profile
Re: An unexpected error occured. Please try again later
« Reply #51 on: December 10, 2010, 08:01:57 PM »

Hallo als Admin habe ich folgend Fehlermeldung, kann mir einer helfen?
Fehlermeldung
DB Error: Bad SQL Query: UPDATE 4images_users SET user_t_images = 13 WHERE user_id = 1 Unknown column 'user_t_images' in 'field list'

ich habe heute die Buddy-Liste eingebaut funktioniert auch so weit nur unter Profil bekomme ich diese Fehlermeldung für jeden Buddy.
Danke
Jürgen

Offline athena

  • Pre-Newbie
  • Posts: 1
    • View Profile
Re: An unexpected error occured. Please try again later
« Reply #52 on: December 12, 2010, 02:17:08 PM »
Hallo,
ich habe folgend Fehler meldung
kann mir einer helfen?
Ich bin aber neuling und habe keine Ahnung

 puma shoes

Offline kubiczek

  • Full Member
  • ***
  • Posts: 212
    • View Profile
    • Gross Peterwitz
Re: An unexpected error occured. Please try again later
« Reply #53 on: January 04, 2011, 08:12:14 AM »
Hallo,

wenn ich als admin die Suchfunktion benutze  erscheint beim anklicken in der details Ansicht folgende Meldung.

DB Error: Bad SQL Query: SELECT image_id, cat_id, image_name, image_media_file, image_thumb_file FROM friedhof_images WHERE image_active = 1 AND image_id IN (2188, 2189, 2186, 2187) ORDER BY , image_id
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ' image_id' at line 6

was kann das sein?
http://www.grosspeterwitz.org/friedhof/4images/search.php?l=deutsch

gruß

Rembrandt

  • Guest
Re: An unexpected error occured. Please try again later
« Reply #54 on: January 04, 2011, 11:11:22 AM »
...
was kann das sein?
...
schau mal in deinen code ob du bei:
 ORDER BY image_id 
tatsächlich einen beistrich drinnen hast der gehört weg.

Offline kubiczek

  • Full Member
  • ***
  • Posts: 212
    • View Profile
    • Gross Peterwitz
Re: An unexpected error occured. Please try again later
« Reply #55 on: January 04, 2011, 03:04:36 PM »
Danke,

in der der details.php
ist tatächlich ein komma reingerutscht
if (!empty($sql_where_query)) {
    
$sql "SELECT image_id, cat_id, image_name, image_media_file, image_thumb_file
            FROM "
.IMAGES_TABLE."
            WHERE image_active = 1
            
$sql_where_query
            
$cat_id_sql
             ORDER BY "
.$cat_cache[$cat_id]['sort_field']." ".$cat_cache[$cat_id]['sort_order'].", image_id ".$cat_cache[$cat_id]['sort_order'];
    
$in_mode 1;


ersetzen durch
if (!empty($sql_where_query)) {
    
$sql "SELECT image_id, cat_id, image_name, image_media_file, image_thumb_file
            FROM "
.IMAGES_TABLE."
            WHERE image_active = 1
            
$sql_where_query
            
$cat_id_sql
             ORDER BY "
.$cat_cache[$cat_id]['sort_field']." ".$cat_cache[$cat_id]['sort_order']." image_id ".$cat_cache[$cat_id]['sort_order'];
    
$in_mode 1;


mfg kubiczek


Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Administrator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: An unexpected error occured. Please try again later
« Reply #56 on: January 04, 2011, 05:39:31 PM »
It's caused by incorrect implementation of [Mod] Create Sort Order for each category from Admin Panel mod. Re-do steps in global.php
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)

Offline the_zoker_09

  • Pre-Newbie
  • Posts: 1
    • View Profile
Re: An unexpected error occured. Please try again later
« Reply #57 on: May 03, 2011, 04:27:35 PM »
I have the same Error: An unexpected error occurred. Please try again later.
But after the Installation.
It`s only for the Admin Panel.
And I changed the
Quote
includes/db_mysql.php
, but I dont get any information.

You can have my data via PN to control if all things are right.

Thank you
the_zoker_09

Offline Brösel

  • Pre-Newbie
  • Posts: 9
    • View Profile
Re: An unexpected error occured. Please try again later
« Reply #58 on: May 22, 2011, 10:38:47 AM »
Hallo,

auch ich habe seit gestern dieses Problem und kann den Fehler nicht beheben.
Hatte gerade neue Bilder hochgeladen und danach kam dann diese Fehlermeldung.

Wäre sehr dankbar wenn auch mir jemand helfen könnte. Würde auch die Zugangsdaten per PN versenden zum nachschauen.

Vielen Dank!

Gruß Patrick

Rembrandt

  • Guest
Re: An unexpected error occured. Please try again later
« Reply #59 on: May 22, 2011, 10:46:04 AM »
Hi!
...auch ich habe seit gestern dieses Problem und kann den Fehler nicht beheben.
...
und was hast du gemacht, vielleicht einen mod installiert?

mfg Andi