Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#13 2007-11-26 15:52:09

wet
Developer Emeritus
From: Schoerfling, Austria
Registered: 2005-06-06
Posts: 3,323
Website Mastodon

Re: rvm_latin1_to_utf8 (v0.5)

No umlauts were harmed during the transition of my older sites, but I received these warnings:

Warning: Invalid argument supplied for foreach() in /home/www/.../textpattern/lib/txplib_misc.php(535) : eval()'d code on line 99

Warning: Invalid argument supplied for foreach() in /home/www/.../textpattern/lib/txplib_misc.php(535) : eval()'d code on line 99

I think this stems from the indexless txp_discuss_ipban and txp_discuss_nonce tables.

Offline

#14 2007-11-26 15:59:37

ruud
Developer Emeritus
From: a galaxy far far away
Registered: 2006-06-04
Posts: 5,068
Website

Re: rvm_latin1_to_utf8 (v0.5)

Thanks Robert. You’re right, getRows returns FALSE if there are no results, unlike safe_rows (which I can’t use here). I’ll fix that. Strange that it didn’t give me any warnings (PHP 4.3).

Last edited by ruud (2007-11-26 17:35:12)

Offline

#15 2007-11-26 21:45:24

ruud
Developer Emeritus
From: a galaxy far far away
Registered: 2006-06-04
Posts: 5,068
Website

Re: rvm_latin1_to_utf8 (v0.5)

Version 0.2 has been uploaded, see first post in this topic for more information.

Offline

#16 2007-11-27 06:12:52

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,011
Website GitHub Mastodon Twitter

Re: rvm_latin1_to_utf8 (v0.5)

Hi ruud… Just used 0.2 to convert the remaining 2 tables. THe conversion seems that it happened just fine but the following error was returned.

Warning: Invalid argument supplied for foreach() in /users/home/mine/domains/hblack.net/web/public/hblack/textpattern/lib/txplib_head.php on line 220
The db is still using latin1

Regardless of the error all seems fine though.

Last edited by colak (2007-11-29 08:24:16)


Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.

Offline

#17 2007-11-27 08:52:06

ruud
Developer Emeritus
From: a galaxy far far away
Registered: 2006-06-04
Posts: 5,068
Website

Re: rvm_latin1_to_utf8 (v0.5)

Textpattern doesn’t create the database, just the tables, so I think it should not try changing the database.

Can anyone confirm the error that Yiannis is getting? I can’t reproduce it and the array used in that foreach loop looks okay, so I’m wondering what is causing the error.
Yiannis, which PHP version and TXP version are you using… and where exactlly on the page does the error appear?

Last edited by ruud (2007-11-27 09:20:56)

Offline

#18 2007-11-27 11:54:49

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,011
Website GitHub Mastodon Twitter

Re: rvm_latin1_to_utf8 (v0.5)

Hi ruud

I am using txp version: 4.0.5 (r2466), PHP version: 5.1.4 and MySQL: 4.1.18

The error appeared on the page which came up after converting the tables.


Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.

Offline

#19 2007-11-27 12:00:46

ruud
Developer Emeritus
From: a galaxy far far away
Registered: 2006-06-04
Posts: 5,068
Website

Re: rvm_latin1_to_utf8 (v0.5)

Hmm… so it doesn’t show on the page that allows you to check which tables to convert, but only shows on the final page that shows the message about successfully updating the tables? If so (which makes it even stranger, unless it’s a conflict with another plugin), where exactly on that page does the error show…. at the top, or at the bottom, below/above which part of the page?

Last edited by ruud (2007-11-27 12:07:21)

Offline

#20 2007-11-27 13:05:38

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,011
Website GitHub Mastodon Twitter

Re: rvm_latin1_to_utf8 (v0.5)

Hi ruud.

It showed just under the header. In the white part of the page.

If you like, I can reinstall from the backup and grand you access if it is of help to you. The site works just fine though.


Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.

Offline

#21 2007-11-27 13:08:36

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,011
Website GitHub Mastodon Twitter

Re: rvm_latin1_to_utf8 (v0.5)

Hmmm… Would it be because my config file was already on utf8 from the previous conversion?


Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.

Offline

#22 2007-11-27 13:16:11

ruud
Developer Emeritus
From: a galaxy far far away
Registered: 2006-06-04
Posts: 5,068
Website

Re: rvm_latin1_to_utf8 (v0.5)

No, the error you mentioned is in the part that creates the tabs at the top (part of core TXP, not the plugin, really), so it can’t be related to the config.php file.

Having direct access would certainly help to track down what’s causing it.

Offline

#23 2007-11-27 16:36:08

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,011
Website GitHub Mastodon Twitter

Re: rvm_latin1_to_utf8 (v0.5)

I just reinstalled the old db on the site and also added you as a publisher… So do expect a mail:)

>Edit You will also need access to the ftp to change the config file, I’ll send you the l/p just now…

Last edited by colak (2007-11-27 16:40:38)


Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.

Offline

#24 2007-11-27 22:49:48

ruud
Developer Emeritus
From: a galaxy far far away
Registered: 2006-06-04
Posts: 5,068
Website

Re: rvm_latin1_to_utf8 (v0.5)

version 0.3 is available that fixes the PHP warning Yiannis found. Thanks for letting me log in on your website and test a few things. That helped a lot.

Offline

Board footer

Powered by FluxBB