I get this error when trying to upgrade. It looks like it has to do with Utf8. Does anyone have a suggestion on how to fix this? I am in the process of upgrading several sites. For some reason my sites are using: latin1_swedish_ci . If I have to switch these to utf8 is there a way to do this through phpMyAdmin quickly? I am with a hosting service and can access my MySql database through phpMyAdmin.
If changing to utf8, phpMyAdmin has many to choose from would I just choose utf8_bin or utf8_unicode_ci?
Marc
edited by: marc@marcpare.com, datetimebrief
Watch
GitHub Core
Show your support for Zikula! Sign up at Github account and watch the Core project!
GitHub Modules
- rgasch created topic »Using PageUtil::addVar() to load script code« 11:48 AM
- michiel responded to »password problem« 10:01 AM
- mazdev responded to »Hide "Register new account" and change template to 3 col« 07:50 AM
- mesteele101 created topic »Zikula 1.3.3 - Site Search 1.5.2 - Unable to turn off plug-ins« 07:48 AM
- mesteele101 responded to »ERR (3): E_USER_ERROR: Smarty error: [in pagesvar:pagesitem2en line XXX]…« 25. May
- mazdev responded to »Pages 2.5.0 and updating - Page not found« 25. May
- mesteele101 responded to »Zikula 1.3.3 - Selecting a category in Pages not working« 25. May
Zikula Blog
- Anatomy of Open Source Projects on Mar 07
- Continuous Review on Mar 01
- Not Invented Here on Feb 24
- How to Contribute Your Code at Github on Jan 13
- 10 Steps to Coding-Nirvana: Tips for Successful Module Writing on Nov 12
- Submitting Bug Report Tickets That Get Results on Aug 17
- Cozi Tricks #1: Syntax Highlighting on Aug 07
Login
[solved] Fatal error: Call to undefined function mb_regex_encoding() in ...includes/pnAPI.php on line 76
-
- Rank: Softmore
- Registered: Dec 10, 2003
- Last visit: May 12, 2010
- Posts: 299
-
- Rank: Helper
- Registered: Sep 19, 2003
- Last visit: May 25, 2010
- Posts: 612
Export your full database and search and replace CHARSET=latin1 to CHARSET=utf8 and save back in UTF-8 encoding. Then drop all your tables in your live site and import your new UTF-8 encoded tables. This only covers your database. You may need to convert your modules?
Note: Sometimes it is very hard to import large databases. Make SURE you select all your tables in phpMyAdmin and repair prior to exporting. This will not only clean your database, but will slim it down. Sometimes it could decrease the size by 50%...
It's also possible that you may need to have your hosting site import your new database for you. It might be prudent to contact them and make sure they can do this for you. If they can then just do the conversion and transfer the completed .sql file to them and instruct them to replace the complete database for you. make SURE you keed an original backup just incase something goes wrong.
edited by: mesteele101, datetimebrief -
- Rank: Softmore
- Registered: Dec 10, 2003
- Last visit: May 12, 2010
- Posts: 299
Thanks for the info. When you say search and replace ... do I do this in a text editor? As you can tell this is a little new for me.
I am using Linux.
edited by: marc@marcpare.com, datetimebrief -
- Rank: Team Member
- Registered: May 03, 2004
- Last visit: May 31, 2010
- Posts: 511
If you use Linux you are gifted with the option to use the CLI for such nasty operations:
Code
cat dumpfile.sql | sed -e 's/CHARSET=latin1/CHARSET=utf8/g' > dumpfile.new.sql
Greetings,
Chris
--
an operating system must operate
development is life
my repo -
- Rank: Team Member
- Registered: May 03, 2004
- Last visit: May 31, 2010
- Posts: 511
slam
If you use Linux you are gifted with the option to use the CLI for such nasty operations:
Code
cat dumpfile.sql | sed -e 's/CHARSET=latin1/CHARSET=utf8/g' > dumpfile.new.sql
Specially with big files this is the only way to do it, because your editor might not be able to open them any more.
Greetings,
Chris
--
an operating system must operate
development is life
my repo -
- Rank: Softmore
- Registered: Dec 10, 2003
- Last visit: May 12, 2010
- Posts: 299
Thanks for the help. I have made the changes but still get the same message. Maybe it doesn't have to do with the utf8 settings. Could it be something else? -
- Rank: Helper
- Registered: Sep 19, 2003
- Last visit: May 25, 2010
- Posts: 612
slam
slam
If you use Linux you are gifted with the option to use the CLI for such nasty operations:
Code
cat dumpfile.sql | sed -e 's/CHARSET=latin1/CHARSET=utf8/g' > dumpfile.new.sql
Specially with big files this is the only way to do it, because your editor might not be able to open them any more.
Greetings,
Chris
If you are on Windows use 'Notepad ++. It's an amazing free editor! -
- Rank: Softmore
- Registered: Dec 10, 2003
- Last visit: May 12, 2010
- Posts: 299
Thanks for the help again.
I found this in other discussions:
http://community.zikula.org/module-Forum-viewtopic-topic-57285-start-0.htm
http://community.zikula.org/module-Forum-viewtopic-topic-57320-start-0.htm
http://community.zikula.org/module-Forum-viewtopic-topic-55964.htm
How would I know if multi-byte functions are enabled? My host uses PHP 5.2.11
Marc
edited by: marc@marcpare.com, datetimebrief -
- Rank: Software Foundation
- Registered: Jul 21, 2001
- Last visit: May 31, 2010
- Posts: 624
make a file called testinfo.php within side then call it from the browser. The search for mb_string. You absolutely need mb_string if you want to use Zikula. If your host doesn't support it, move hosts - most do.Code
<?php phpinfo;
Drak
--
Zikula Lead Developer
Board Member of the Zikula Foundation
Follow me on twitter.com/zikuladrak -
- Rank: Softmore
- Registered: Dec 10, 2003
- Last visit: May 12, 2010
- Posts: 299
Thanks for the help everyone. My hosting service corrected the problem and everything upgraded properly. The problem was with multi-byte functions being enabled under PHP.
Is there a way to tag the subject line of this thread as [SOLVED] ?
Marc
- Moderated by:
- Support
