Please upgrade here. These earlier versions are no longer being updated and have security issues.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
Bonk updating 2.0.18 to 2.1
Konquet
✭✭
Hello!
Is my first updating try and well, i have bonk! Good \O/ hahaha. I know what is the problem but dont know how to fix. The problem is database query (SQL, i think).
Fatal Error in Gdn_Database.Query();
Can't DROP 'FK_Comment_DiscussionID'; check that column/key exists|Gdn_Database|Query|drop index FK_Comment_DiscussionID on GDN_Comment
I follow this instructions to upgrade and is obvius i fail
http://vanillaforums.org/page/UpgradeInstructions
How can i add my old database (I have some backups) to my "new forum" ?
Really thanks!
0
Comments
Ok so back up the data base real good. Save the other stuff too in another folder. Or backup.
Copy the content of the config.php and save it somewhere in a text file.
Erase the contents of the config.php
FTP to overwrite the entire app with new version.
copy the configurations from the text file you saved with the config.php configurations into the blank config.php
Replace the app version on that to 2.1.b1
Remove incompatible add ons that you know will not work in this version.
Erase all the content from the cache Smarty compile you can remove that extra cache folder that they included inside of Smarty. Likely to make sure it was included in the installation but it does nothing as far as I know.
If you copy other files over make sure they don't have .DS Store , erase that. If I can think of anything else I let you know.
hope this works for you this way you still have the same data base and all the info from the other config. It worked for me , but there is more information on github-vanillaforums
https://github.com/vanillaforums/Garden/issues
❌ ✊ ♥. ¸. ••. ¸♥¸. ••. ¸♥ ✊ ❌
Is the same overwriting the config.php with my old version? I save config.php and replace.
no because the config.php starts out blank in fact there is not a config.php in the application download. Not until after setup using the UI. So it will not overwrite the config.php because it does not contain one to be able to do so.
There is a bug which for some reason the config.php is not being populated with configurations settings in the dashboard. You will need to put in all of the configurations manually and enable it manually. Just make sure all the info that has to be the same like data base host name and user and password are the same as the old config.
❌ ✊ ♥. ¸. ••. ¸♥¸. ••. ¸♥ ✊ ❌
Ok, now i try whay u tell me. When i copy/paste cofing.php data have bonk again but before this i see the menu instalation from 2.1b.
So now, this is my question... But i dont know how to ask in english.
¿Puedo en el menu de instalacion agregar el usuario y nombre de la base de datos ? ¿No se sobreescribira en blanco?
en el azulito ? si tambien se puede si los tienes. Ese es el UI el user interface for setup .
Lo que no quiere jalar del dashboard es habilitar los plugins y temas, te va a dar un fatal error , bueno si te da ya sabes lo que puedes hacer manualmente.
Tienes que asegurarte que solo copies al config los datos de los plugins y el tema osea no copies todo el config completo. Deja que despues del set up se llena con algunas cosas, entonces le metes mano.
Le vas metiendo cosas poco a poco. Usa las nuevas configuraciones del config-defaults y se las metes a mano al config.
❌ ✊ ♥. ¸. ••. ¸♥¸. ••. ¸♥ ✊ ❌
Se, que los plugings me van a dar error, por que tienen la version anterior. El problema es que no me coge la base de datos SQL. Hice tambien como comentas, de copiar los datos y no el archivo por completo, pero tampoco, me sigue dando el mismo error.
Lo que no quiero es perder los datos de la bd. Lo de mas es reemplazable.
Ahora lo hago con el menu azulito, como te comento y a ver si funciona.
No uses la misma entonces, conviene hacer una nueva y remplazar los datos después.
❌ ✊ ♥. ¸. ••. ¸♥¸. ••. ¸♥ ✊ ❌
que mas dice el Bonk ? internal error o que ?
❌ ✊ ♥. ¸. ••. ¸♥¸. ••. ¸♥ ✊ ❌
No los plugins con los que viene el programa osea ni el default ni nada jala desde el dashboard. No se graban las habilitaciones. Los tienes que habilitar en el config.php pero ni aparecen en el config.php pr eso los tienes que copiar, aparte ya casi todos los plugins se han modernizado y ya jalan casi todos con esta y la vieja versión. son los mismos plugins.
❌ ✊ ♥. ¸. ••. ¸♥¸. ••. ¸♥ ✊ ❌
Ahora estaba en el menu de instalacion azulito y me dice :
Can't DROP 'FK_Comment_DiscussionID'; check that column/key exists|Gdn_Database|Query|drop index FK_Comment_DiscussionID on GDN_Comment
AL intentar crearlo. Voy a crear una nueva como dices y luego las reemplazo a ver que tal :=))
espera ya existe un parche para eso dejame buscarlo
❌ ✊ ♥. ¸. ••. ¸♥¸. ••. ¸♥ ✊ ❌
ok, a la espera estoy
Ok eso tiene que ver con mysql que te indica que quieres borrar un table que ya existe que ya tiene llave . Tienes que Drop PK pero estudiado mas porque no quieres borrar un table. Tienes que añadir o hacer lugar borrando.
This error means that you are trying to delete a key which is being used by another table.
You must create a new table.
Tienes que crear un nuevo table.
❌ ✊ ♥. ¸. ••. ¸♥¸. ••. ¸♥ ✊ ❌
Voy a probar a crear una DB nueva y luego cuando este el foro creado, intento cambiarlas. Ahora te comentare como fue )
Tambien hay algo mas que saber.
There's not a single command in MySQL which will check for the existence of a column and create it if it does not already exist. You would need to do that in two steps:
http://dev.mysql.com/doc/refman/5.5/en/describe.html
http://dev.mysql.com/doc/refman/5.5/en/columns-table.html
You could make this easier by wrapping the logic above in a server stored procedure, so that all you have to do from the client side is:
CALL addColumnIfNotExists('schema_name', 'tbl', 'col_name', 'column definition');
Aqui hay algo sobre un parche para ip address too long eso tambien afecta las tablas.
http://vanillaforums.org/discussion/comment/162186/#Comment_162186
❌ ✊ ♥. ¸. ••. ¸♥¸. ••. ¸♥ ✊ ❌
Bueno, he hecho lo siguiente.
He creado una base de datos para la instalacion y todo ha ido bien. He conseguido entrar al foro, luego de esto, he ido al ftp y he reemplazado el config.php que estaba en blanco por el config.php que tenia guardado. Ahora el foro funciona, tengo los pluging y algunas cosas. Pero no hay datos.. el foro esta vacio, por lo que sigue sin pillarme la BD SQL...
Voy a leerme lo que me has puesto mas arriba )
Creo que tienes que importar la base de datos no? ósea usando el import button en el dashboard. Pero como te digo, algo anda mal con el dashboard que no se guardan solas las configuraciones. Checa que los datos en el config esten bien.
❌ ✊ ♥. ¸. ••. ¸♥¸. ••. ¸♥ ✊ ❌
Lo he borrado y voy a poner la 2.0.18. No me quiero arriegar a perder la base de datos, puesto que aunque soy el admin y lo mantengo, no es mio.
Si fuese el mio, me arriesgaba a mas cosas. Pero yo instalare la 2.1 desde 0 directamente en mi futura comunidad :=))
Eso es lo mejor y se se lo recomiendo a todos hasta que arreglen los problemas con este. Porque no es fácil hacer que jale y luego menos con el temor de perder datos. Esperate unos meses mas ya mero saldrá. La verdad que no es tan diferente solo tiene dos tres cosas nuevas .
❌ ✊ ♥. ¸. ••. ¸♥¸. ••. ¸♥ ✊ ❌
la idea era ponerlo, testearlo y ayudar a reportar errores. Pero visto el riesgo... mejor no.