This forum is for questions about upgrading an existing Drupal site. Don't forget to read the UPGRADE.txt file that comes with every Drupal download.

Character set problem - simple solution?

Hello, I'm experiencing the following difficulty moving my database from latin1 to utf8.

I began developing my first Drupal site (4.6.5) using Mysql 4.1, and knowing nothing about character sets The characters sets in use at that time were:

Client, connection, results, system: utf8
database, server: latin1

Accented characters showed up fine in Drupal, but scrambled in PHPMYADMIN. I now know that this is because I had utf8 data stored in a latin1 database. Instead of leaving well-enough alone (doh!), I wanted everything to show up properly in both Drupal and in PHPMYADMIN. Thinking I had the answer, I decided to move to a utf8 database.

Here's what I did:

1. Created a new (empty) database, with character set utf8.
2. Exported the data definition and data from my working database to a text file. Edited the file to change charset of the table definitions from latin1 to utf8, and changed the encoding of the file itself to be utf8.
3. Did an import to the new (empty) database using the "mysql" command.

Results:

I now have the following Character sets:

Client, connection, results, system, database: utf8
server: latin1

All the tables and columns have default character set utf8. In PHPMYADMIN, all the accented characters are displaying properly. Looks beautiful. So far so good.

The problem is that now when I connect the new database to Drupal, the special characters show up as garbage. It's a terrible mess, because not only to accented characters show up as garbage, it breaks the html and the page itself doesn't render properly.

When a wrong password is entered to login:in_array() [function.in-array]: Wrong datatype for second argument in (...)/common.inc

When people typ in the wrong password to log in, they get this error since the upgrades :

in_array() [function.in-array]: Wrong datatype for second argument in /home/user/dreamgate/www/includes/common.inc(1813) : eval()'d code on line 4.

in_array() [function.in-array]: Wrong datatype for second argument in /home/user/dreamgate/www/includes/common.inc(1813) : eval()'d code on line 15.

The website is http://www.dreamgate.be

Can you please point me to where (and how) I should fix this ?

Thanks !

Filemanager modules problems when moving a site

I recently moved my site from one server to another successfully except for some Acidfree and filemanager problems. These all seem related to filemanger.

1. When as administrator, I try to click on setting -> filemanger, I get the following error on the cleared display:

Fatal error: Call to undefined function: form_textfield() in /opt/lampp/htdocs/public_html/modules/filemanager/filemanager.module on line 680

2. When I try to add a photo to an acidfree album, I get the following error on the cleared display:

upgade from 4.7CVS(Dec 2005) to 4.7beta4

Hello,

I try to upgrage my 4.7CVS version installed on my computed for testing purpose. I can't get to it.

first i have a warning message at the firt run :

# warning: Cannot modify header information - headers already sent by (output started at c:\programme\easyphp1-8\www\drupal470\includes\database.mysql.inc:118) in c:\programme\easyphp1-8\www\drupal470\includes\common.inc on line 139.
# warning: Cannot modify header information - headers already sent by (output started at c:\programme\easyphp1-8\www\drupal470\includes\database.mysql.inc:118) in c:\programme\easyphp1-8\www\drupal470\includes\common.inc on line 1

and when i enter my username and loggin i 've got this result :

Page not found

* warning: Cannot modify header information - headers already sent by (output started at c:\programme\easyphp1-8\www\drupal470\includes\database.mysql.inc:118) in c:\programme\easyphp1-8\www\drupal470\includes\common.inc on line 139.
* warning: Cannot modify header information - headers already sent by (output started at c:\programme\easyphp1-8\www\drupal470\includes\database.mysql.inc:118) in c:\programme\easyphp1-8\www\drupal470\includes\common.inc on line 139.
* user warning: Illegal mix of collations (latin1_swedish_ci,IMPLICIT) and (utf8_general_ci,COERCIBLE) for operation '=' query: SELECT * FROM users WHERE status = 1 AND name = LOWER('npenel') in c:\programme\easyphp1-8\www\drupal470\includes\database.mysql.inc on line 118.

Allowed html tag documentation disappeared

I don't know if this is an upgrade problem, but suddenly I don't see a list of "allowed html tags" when I edit a story or blog entry. I recently upgraded to 4.6.5.

What I'm expecting is the list with things like <em> and <strong> and so forth. Could I have accidentally turned this off?

Thanks for any help.

[edit: -sepeck: added code tags around em and strong]

Upgrade 4.6.3 to 4.6.5 using Fantastico removes all added modules, themes, files, menus

I just upgraded mu Drupal 4.6.3 site to 4.6.5 using the Fantastico installer on Bluehost. Fortunately I tried this on my test installation first, because everything went wrong. Although the "Upgrading from Drupal 4.6.3 to 4.6.5" states that there should be no problem, because no database changes are involved.

My test site now shows plain HTMl without any theme applied. My uploaded themes and modules are missing, my own logo file is missing, my own menus disappeared.

Pages

Subscribe with RSS Subscribe to RSS - Upgrading Drupal