Skip to content
View in the app

A better way to browse. Learn more.

Froxlor Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

SQL Fehler beim Upgrade

Featured Replies

Hallo,

 

ich ersetzen einen CentOS 5.10 + SYSCP Server durch einen mit CentOS 6.5 und FROXLOR (latest stable). Es ist eine Neuinstallation und ich habe nach dem Einspielen des Dump der alten SYSCP Datenbank das tar-gz von FROXLOR gezogen, entpackt und die userdata.inc.php von SYSCP eingespielt.

Nach Aufruf der URL beginnt der Upgrade-Prozess und endet nun mit einem SQL Fehler:

 

Froxlor Aktualisierung

Updating from 0.9.7-svn1 to 0.9.7-svn2
Updating open_basedir due to security - issue

 

A database error occured

SQLSTATE[42000]: Syntax error or access violation: 1064 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 ''46' at line 1

#0 [internal function]: PDO->query('UPDATE `panel_d...')
#1 /var/kunden/webs/GastRaum/froxlor/lib/classes/database/class.Database.php(181): call_user_func_array(Array, Array)
#2 /var/kunden/webs/GastRaum/froxlor/install/updates/froxlor/0.9/update_0.9.inc.php(717): Database::__callStatic('query', Array)
#3 /var/kunden/webs/GastRaum/froxlor/install/updates/froxlor/0.9/update_0.9.inc.php(717): Database::query('UPDATE `panel_d...')
#4 /var/kunden/webs/GastRaum/froxlor/install/updatesql.php(46): include_once('/var/kunden/web...')
#5 /var/kunden/webs/GastRaum/froxlor/admin_updates.php(78): include_once('/var/kunden/web...')
#6 {main}

 

Kann mir hier bitte wer weiterhelfen? (auch die update_0.9.inc.php von eben gerade aus GIT hilft nicht)

 

Gr??e, Ronny

 

  • Author

Klar, steht ja da, Zeile 721 ist kaputt und zwar am Ende.

 

es muss lauten :

 

(int)$row['id'] . "'");

 

 

Gru?, Ronny

Jup, auch gerade so gesehen und gefixed:

- Database::query("UPDATE `".TABLE_PANEL_DOMAINS."` SET `openbasedir_path` = '1' WHERE `id` = '" . (int)$row['id'])."'";
+ Database::query("UPDATE `".TABLE_PANEL_DOMAINS."` SET `openbasedir_path` = '1' WHERE `id` = '" . (int)$row['id']."'");

Archived

This topic is now archived and is closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.