-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
bin/update.sh think i have older version of roundcube #7034
Comments
Strange. I'm unable to reproduce. What RCMAIL_VERSION do you see in program/include/iniset.php line 34? What is the result of
on your database? What database engine and version? |
iniset.php file contains this from start and on line 23 is rcmail_version all queries i have made on phpmyadmin from sql console
result of mysql queries
and
this last as system version i have inserted manual as describe before but update.sh script still dont know from where think that i have earlier version of RC Mysql version php version this is like im use update.sh
and i type ? then script starts update DB like i described |
Looks fine. I have no idea what's going on here. Do you have more databases, maybe it's connecting to another one?
|
I dont use db_prefix in config i have only one DB for roundcube named "pocztaroundcube" after command u gave me
and table system, cell value is inserted with
so strange, i dont know from where scripts get information about roundcube version :) but my DB is from 1.4.0 so its OK for now. |
The code is in the following file. Could you try the script again with this patch applied? --- a/program/include/rcmail_utils.php
+++ b/program/include/rcmail_utils.php
@@ -109,7 +109,8 @@ class rcmail_utils
}
$db = self::db();
-
+print_r($db->table_name('system'));
+print_r($db->list_tables());
// Read DB schema version from database (if 'system' table exists)
if (in_array($db->table_name('system'), (array)$db->list_tables())) {
$db->query("SELECT `value`"
@@ -119,6 +120,8 @@ class rcmail_utils
$row = $db->fetch_array();
$version = preg_replace('/[^0-9]/', '', $row[0]);
+print_r($row);
+print_r($version);
}
// DB version not found, but release version is specified |
where apply this patch? updatedb.sh ? ok i see patch apply to program/include/rcmail_utils.php OK after patch
and system is inserted again with 2013042700 |
Ok, we've got something. It looks like it does not list any tables in the database. Could you enable sql_debug and provide the log when you run the script? |
config with // log driver: 'syslog', 'stdout' or 'file'. // Log SQL queries
|
Here's the problem. How does your |
|
You should remove ';charset=utf8'. This is not supported syntax, and this part is not needed anyway. |
done
problem solved, sorry dont know why i have used this on dsnw, maybe update script should check $config['db_dsnw'] configuration typo to avoid that problems in future. Thanks for Your hard work helping me solve this problem |
Fixed. |
i have check my DB and campare with mysql files to upgrade in instalation and it seems my DB version is from 2016112200 but update.sh scripts dont know it even when i manual chaned in system table to 2016112200 update.sh is trying update DB from 2013042700
So i have looked at these DB upgrade sql files and manual updated my DB from 2018021600 to 2019092900
and setup system version to 2019092900. When running bin/update.sh again and type ? what version i have still script dont know i have 1.4.0 and trying update my DB from 2013042700
Originally posted by @studiowena in #7032 (comment)
The text was updated successfully, but these errors were encountered: