[solved] Column 'filename' cannot be part of FULLTEXT index
Post new topic   Reply to topic   Printer Friendly Page     Forum IndexInstallation Issues
Author Message
warden
Silver Supporter


Joined: Dec 16, 2004
Posts: 196
Location: North Carolina

PostPost subject: [solved] Column 'filename' cannot be part of FULLTEXT index
Posted: Wed Jun 24, 2009 3:38 pm
Reply with quote

While updgrading a site from 9.1.2 to 9.2.1, I got this error message:

Quote:
On /install.php
While executing query "ALTER TABLE cms_cpg_pictures CHANGE caption caption TEXT NOT NULL"

the following error occured: Column 'filename' cannot be part of FULLTEXT index

In: /home/account/public_html/domain.info/includes/classes/installer.php on line: 115

I guess the "Fulltext index" is what I don't understand.

The sql server is version 5.x and the storage engine is MyISAM as referenced by this thread.

Ideas anyone? I have updated a couple of 9.2.1 sites before and never saw this error message. Thanks for any replies, ideas, or suggestions.

_________________


warden's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Back to top
View user's profile Visit poster's website
Phoenix
Site Admin


Joined: Apr 19, 2004
Posts: 8729
Location: Netizen

PostPost subject: Re: Column 'filename' cannot be part of FULLTEXT index
Posted: Wed Jun 24, 2009 10:38 pm
Reply with quote

It means you have mixed collations in your table(s) and may also encounter further issues.

"fulltext" is the type used by the "search" index.

_________________
DonationsPro for DragonflyCMS, SMF, MyBB, vBulletin

Phoenix's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Back to top
View user's profile Visit poster's website
warden
Silver Supporter


Joined: Dec 16, 2004
Posts: 196
Location: North Carolina

PostPost subject: Re: [solved] Column 'filename' cannot be part of FULLTEXT index
Posted: Thu Jun 25, 2009 3:11 pm
Reply with quote

Thanks Phoenix.

Is there any way to repair the db or work around this? I noticed that the colums are latin1_swedish and the table collations are ut8f_general_ci. Does this have anything to do with the issue?

_________________


warden's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Back to top
View user's profile Visit poster's website
warden
Silver Supporter


Joined: Dec 16, 2004
Posts: 196
Location: North Carolina

PostPost subject: Re: [solved] Column 'filename' cannot be part of FULLTEXT i
Posted: Thu Jun 25, 2009 5:14 pm
Reply with quote

I did not solve it, but I did find a workaround.

I have a virtual machine (virtualbox) with a LAMP stack configured. I exported the same DF v.9.1.2 database into the vm phpmyadmin, then went through the db upgrade. Once exported from the vm phpmyadmin, it imported fine within the commercial phpmyadmin on a shared hosting server.

_________________


warden's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Back to top
View user's profile Visit poster's website
layingback
Forum Admin


Joined: Apr 19, 2004
Posts: 952

PostPost subject: Re: [solved] Column 'filename' cannot be part of FULLTEXT index
Posted: Fri Jun 26, 2009 6:18 am
Reply with quote

Sooner or later you will have to fix it, as it will keep comimg back to bite you.

The collations need to be set to ut8f_general_ci (the actual data is already utf8).

Do a search on collations for lots of help. It's in the wiki too.

_________________
Pro_News: The complete module for Dragonfly - now available as version 3.3

layingback's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
2.6 - 3.6 / 1.3.42 - 2.2.12 / 5.0.92 - 5.1.37 - 5.1.54 / 4.4.49 - 5.2.17 - 5.3 / 9.2.1
Back to top
View user's profile Visit poster's website
rlgura
1000+ Posts Club


Joined: Mar 27, 2006
Posts: 1148
Location: Cleveland, OH USA

PostPost subject: Re: [solved] Column 'filename' cannot be part of FULLTEXT index
Posted: Fri Jun 26, 2009 4:36 pm
Reply with quote

the export/import/export/import Warden did may have straightened up the collation issue. What I normally do for that problem is export the db, open the sql export file in a good text editor and do a find/replace for the collation (changing latin1_swedish to ut8f_general_ci), then re-import the data into a clean db (with default collation set to ut8f_general_ci).

Sounds like a lot of work, but it's actually pretty quick...

_________________
Admin - Great Lakes Web Designs
Theme Designer - WebSite Guru Designs
Site Admin - Families with Food Allergies

rlgura's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Linux 2.6.27-grsec/Apache 2.2.11/MySQL 5.0.67-community-log/PHP 5.2.8/DF 9.2.1
Back to top
View user's profile Visit poster's website
layingback
Forum Admin


Joined: Apr 19, 2004
Posts: 952

PostPost subject: Re: [solved] Column 'filename' cannot be part of FULLTEXT index
Posted: Fri Jun 26, 2009 5:58 pm
Reply with quote

Good thought!
_________________
Pro_News: The complete module for Dragonfly - now available as version 3.3

layingback's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
2.6 - 3.6 / 1.3.42 - 2.2.12 / 5.0.92 - 5.1.37 - 5.1.54 / 4.4.49 - 5.2.17 - 5.3 / 9.2.1
Back to top
View user's profile Visit poster's website
warden
Silver Supporter


Joined: Dec 16, 2004
Posts: 196
Location: North Carolina

PostPost subject: Re: [solved] Column 'filename' cannot be part of FULLTEXT index
Posted: Fri Jun 26, 2009 10:41 pm
Reply with quote

Thanks for the info guys. I know the collation stuff is not easy to grasp, but I will be a tester to see how it works out. This is an older db that was originally created in 8.2c, then upgraded to 9.0.6.1 and then 9.1.2. There was a big collation issue between 9061 and 912, and I used rlgura's method above to straighten it out so that it would upgrade. I had forgotten about that method. It is a time saver!

Thanks again.

_________________


warden's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Back to top
View user's profile Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic   Printer Friendly Page     Forum IndexInstallation Issues All times are GMT
Page 1 of 1


Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum

stopsoftwarepatents.eu petition banner
User Info [x]

Welcome Anonymous

Nickname
Password
(Register)

Last CVS commits [x]

Languages [x]

Community [x]

Support for DragonflyCMS in a other languages:

Deutsch
Español

X-links [x]
UltraEdit Browse Happy logo Firefox MySQL PostgreSQL Valid CSS! Valid XHTML 1.0! Unicode Encoded Badge NukeBiz Resources Raven DragonflyCMS Dedicated Now InsideSupport Lampe Berger

Preview theme [x]
Each user can view the site with a different theme.
Themes marked with a * also change the forum look.


You are seeing squares or questionmarks on this page?

All content of this website is copyrighted by the Creative Commons NC-SA
The logos and trademarks used on this site are the property of their respective owners
We are not responsible for comments posted by our users, as they are the property of the poster.
Our server runs on a P3 1.2GHz with 512MB RAM with no accelerators
Support GoPHP5.org
This page generated in 0.3221 seconds with 16 DB Queries in 0.0325 seconds
Memory Usage: 2.93 MB
Interactive software released under GNU GPL, Code Credits, Privacy Policy