Page 1 of 2

[fixed] v2.10.10: After upgrade cannot create new message

PostPosted: 4:04pm, Thu 07 May, 2009
by woolef
Went from 2.10.9 to 2.10.10. All seems fine except when I go to create message or edit an old message I just get the tabs along the top of the edit pane (content/format/scheduling etc) but nothing below these. The footer is missing off the bottom too. This happens in FF3, IE7 and Chrome. I can still see the full edit window if I use my old install of 2.10.9 to view. I've attached a screen shot of what I can see.

Re: [V2.10.10] After upgrade can not create a new message

PostPosted: 4:09pm, Thu 07 May, 2009
by H2B2
Seems related to this thread viewtopic.php?p=61854#p61854

Did you try the solution proposed by primebus? See viewtopic.php?p=30998#p30998

Re: [V2.10.10] After upgrade can not create a new message

PostPosted: 4:31pm, Thu 07 May, 2009
by woolef
Thanks H2B2.

I hadn't seen that actually (wood for trees) but now I've tried what was suggested it still isn't working (I've changed it back again now). I'm running php 5.2.6 and MySQL5.0.51b if that's any help.

Re: [V2.10.10] After upgrade can not create a new message

PostPosted: 4:55pm, Thu 07 May, 2009
by H2B2
FCKeditor on v2.10.10 works fine for me with PHP 5.2.3, so I don't think the PHP version is causing this issue. A PHP setting might possibly be the culprit. In earlier versions the problem was often caused by ASP tags being enabled in php.ini. It should be set to asp_tags = Off

You might check that too.
Ref: viewtopic.php?p=48237#p48237

Re: [V2.10.10] After upgrade can not create a new message

PostPosted: 6:00pm, Thu 07 May, 2009
by woolef
Thanks, I'll get in touch with my host to see what it's set to.

Isn't it a bit strange that 2.10.9 works fine (and still does now) but 2.10.10 doesn't?

Re: [V2.10.10] After upgrade can not create a new message

PostPosted: 6:13pm, Thu 07 May, 2009
by woolef
asp_tags is set to off

Re: [V2.10.10] After upgrade can not create a new message

PostPosted: 8:45pm, Thu 07 May, 2009
by H2B2
woolef wrote:Isn't it a bit strange that 2.10.9 works fine (and still does now) but 2.10.10 doesn't?
Not necessarily when it comes to php settings, since certain global settings can be changed by using local overrides which can be placed in a local php.ini or .htaccess file. Thus, even if a directive were enabled in a global php.ini, it could have been disabled for your v2.10.9 by a local override. If that local override isn't present in your 2.10.10 directory, then the problem might occur only in that install.

However, assuming your host has disabled asp tags in the global php.ini, it would seem very unlikely that it would have been enabled by a local override in your 2.10.10 directory. So, I think we can eliminate the asp tags setting as a possible cause in your case. I'm not sure what else might cause this. Hopefully others will share their insights on this issue.

Re: [V2.10.10] After upgrade can not create a new message

PostPosted: 5:03pm, Sun 10 May, 2009
by taydeko
I found a solution to the same problem I was having. None of the other fixes worked. The issue was in the Send_Core.php file. On lines 1023 and 1024 of my version you will find:

// value="'.htmlentities($subject,ENT_QUOTES,'UTF-8').'" size=40></td></tr> --> previous code in line 1032
// value="'.htmlentities($from,ENT_QUOTES,'UTF-8').'" size=40></td></tr> --> previous code in line 1038

On line 1034 and 1040 are:

//value="'.htmlentities(iconv('ISO-8859-1','UTF-8',$subject),ENT_QUOTES,'UTF-8').'" size=40></td></tr>
value="'.htmlentities(iconv('ISO-8859-1','UTF-8',$from),ENT_QUOTES,'UTF-8').'" size=40></td></tr>

I am not sure why 1034 is commented out, but if you replace 1034 with the contents of 1023 without the comment, and replace 1040 with 1024 without the comment, the program works fine for me. So it looks like something is causing a problem in the "iconv('ISO-8859-1','UTF-8',$from)" bit of code.

So the resulting code starting at line 1030 looks like this:

$maincontent .= '
<tr><td>'.Help("subject").' '.$GLOBALS['I18N']->get("Subject").':</td>
<td><input type=text name="msgsubject"
value="'.htmlentities($subject,ENT_QUOTES,'UTF-8').'" size=40></td></tr>
<tr>
<td colspan=2>
</td></tr>
<tr><td>'.Help("from").' '.$GLOBALS['I18N']->get("fromline").':</td>
<td><input type=text name=from
value="'.htmlentities($from,ENT_QUOTES,'UTF-8').'" size=40></td></tr>
<tr><td colspan=2>
</td></tr>';

Someone who knows a lot more about the program and php would have to fix the problem with iconv or explain why it is better, but for now this works.

Ted

Re: [V2.10.10] After upgrade can not create a new message

PostPosted: 12:07am, Mon 11 May, 2009
by H2B2
Thanks for sharing your solution Ted!

taydeko wrote: So it looks like something is causing a problem in the "iconv('ISO-8859-1','UTF-8',$from)" bit of code.
I believe iconv was applied to solve an issue with special characters if the database was set to ISO-8859-1 instead of UTF-8. I'm not sure whether this was a good solution for that issue, as I'd rather opt for a solution that didn't hardcode the charset anywhere in the phpList script, but that is another topic.
See also: http://mantis.phplist.com/view.php?id=1644

EDIT: Filed this bug report on the issue: http://mantis.phplist.com/view.php?id=15287

It would still be useful to find out why this seems to occur in some installations and not in others. If charset encoding is somehow at play here, then I wonder if you could check what charset is used in your database. As you may know, you can easily collect these settings by using the following query in phpMyAdmin:
SHOW VARIABLES LIKE 'character_set_%'

In my case this will yield the following result:
character_set_client utf8
character_set_connection utf8
character_set_database utf8
character_set_results utf8
character_set_server latin1
character_set_system utf8

Re: [V2.10.10] After upgrade can not create a new message

PostPosted: 9:31am, Mon 11 May, 2009
by woolef
Brilliant Ted & H2B2, many thanks to you both! That's fixed my FCKeditor window.

My encoding follows;

character_set_client: utf8
character_set_connection: utf8
character_set_database: latin1
character_set_filesystem: binary
character_set_results: utf8
character_set_server: latin1
character_set_system: utf8

Re: [fixed] v2.10.10: After upgrade cannot create new message

PostPosted: 1:40am, Wed 13 May, 2009
by H2B2
It appears that just uncommenting line 1034 (i.e., removing the // at the start of the line) in admin/send_core.php should be enough to fix this issue:
Code: Select all
//value="'.htmlentities(iconv('ISO-8859-1','UTF-8',$subject),ENT_QUOTES,'UTF-8').'" size=40></td></tr>

ref: viewtopic.php?p=62062#p62062

So, I guess this might well be just a typo instead of an issue with iconv. Even so, I have my doubts regarding the use of iconv to fix encoding issues. For instance, what would its behaviour be if the input fields were not in ISO-8859-1 but in ISO-8859-7 ?

Re: [fixed] v2.10.10: After upgrade cannot create new message

PostPosted: 8:57am, Wed 13 May, 2009
by woolef
Sorry, not for me. I changed my file back to original and uncommented 1034 but got the same result. ie. just tabs, no editor.

I then changed the individual lines by substituting first one, reverting, then substituting the second. My editor window would not reappear until I had substituted both 1034 and 1040.

Hope that makes sense :/

Re: [fixed] v2.10.10: After upgrade cannot create new message

PostPosted: 2:10pm, Wed 13 May, 2009
by H2B2
Thanks for the feedback. Could you view (in your web browser) the HTML source code of one of your admin pages and check which charset encoding is used as "Content-Type", like for instance:
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />

Re: [fixed] v2.10.10: After upgrade cannot create new message

PostPosted: 9:52pm, Wed 13 May, 2009
by eweriuer
Mine is <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />

I tried 3 solutions:
  • uncomment 1034 in admin/send-core.php
  • change the 1034-1040 lines with 1024-1025 in admin/send-core.php
  • change LoadScript in /lists/admin/FCKeditor/editor/fckeditor.html

Unfortunaly none of theme worked for me :(

Is there a final solution?

Re: [fixed] v2.10.10: After upgrade cannot create new message

PostPosted: 7:07pm, Thu 14 May, 2009
by H2B2
eweriuer wrote:I tried 3 solutions:
  • uncomment 1034 in admin/send-core.php
  • change the 1034-1040 lines with 1024-1025 in admin/send-core.php
  • change LoadScript in /lists/admin/FCKeditor/editor/fckeditor.html

Have your tried applying change number 2 ("change the 1034-1040 lines with 1024-1025 in admin/send-core.php") as a constant modification, and then:
a) check that asp tags are off (viewtopic.php?p=61877#p61877)
b) try changing the LoadScript (viewtopic.php?p=30998#p30998)