Problem vid skapande av artikel

Events happening in the community are now at Drupal community events on www.drupal.org.
WhiplashInfo's picture

När jag försöker skapa en artikel får jag följande felmeddelande:

Warning: htmlspecialchars(): Invalid multibyte sequence in argument i check_plain() (rad 1552 av D:\Documents\My Web Sites\Drupal 7.2 Developer release1\includes\bootstrap.inc).
PDOException: i dblog_watchdog() (rad 157 av D:\Documents\My Web Sites\Drupal 7.2 Developer release1\modules\dblog\dblog.module).

Jag har försökt finna info som hjälper mig, men hittills gått bet på det.

Jag har fotat av loggen, som en bifogad png-fil.
Tack / Tomas

AttachmentSize
111214 DrupalError.PNG44.89 KB

Comments

Låter som om du har en

Orjan's picture

Låter som om du har en aldeles för gammal core-version. Uppgradera till 7.10 så är det troligen löst.

Nej, jag har den senaste

WhiplashInfo's picture

Nej,
jag har den senaste versionen av D7.2 dev

This is a known problem and

carlmcdade's picture

This is a known problem and as of yet has not been resolved because sometimes it is hard to replicate. Drupal has a problem with multibyte characters in the check_plain() function. It seems that each occurance of this is different. Search module and others use some non-multibyte character PHP functions. Some modules use check_plain() in a way that they come across lots of multbyte characters from different character sets. Given the clue that the module involved is dblog, the log reporting module, I would say that your log file contains some multibyte characters that do not agree with the check_plain() function. Probably due to a the content of the post or a logged event.

Try this: after posting the content go to the log table and truncate/empty it. This should remove the problematic characters.

Upgrading may not work since this problem still exists in head. If you are a coder you might try some of the fixes and patches (manually) in this post. http://drupal.org/node/987472

Thanks for the advice, Carl.

WhiplashInfo's picture

Thanks for the advice, Carl. I will follow your advice and come back with the results.
By the way, I am using Drupal 7.11 Dev.
Tanks / Tomas

Jag kan inte hitta loggen i databasen

WhiplashInfo's picture

Jag har öppnat databasen men hittar inte logg tabellen. Vad heter den tabellen?

Carl, Jag har nu lyckats

WhiplashInfo's picture

Carl,
Jag har nu lyckats applicerat patchen "drupal-search_multibyte_error_with_long_test-987472-48" från den tråd som du hänvisade till

This is a known problem and as of yet has not been resolved because sometimes it is hard to replicate. Drupal has a problem with multibyte characters in the check_plain() function. It seems that each occurance of this is different. Search module and others use some non-multibyte character PHP functions. Some modules use check_plain() in a way that they come across lots of multbyte characters from different character sets. Given the clue that the module involved is dblog, the log reporting module, I would say that your log file contains some multibyte characters that do not agree with the check_plain() function. Probably due to a the content of the post or a logged event.

Det hade ingen effekt så vitt jag kunde se, och jag har postat ett meddelande om det i den tråden - se #50

Som framgår av den posten har jag nu provat med två av varandra oberoende installationer av Drupal 7.10 och hamant på samma felmeddelande.

Tomas

Tabellen för loggmeddelanden

jakeru's picture

Tabellen för loggmeddelanden lagras i tabellen watchdog. Den kan du trunkera. Alla loggmeddelanden tas då bort.

Trunkerat så att endast en

WhiplashInfo's picture

Trunkerat så att endast en rad med NULL fanns kvar. Det hjälpte dock inte, så nu skall jag försöka mig på att implementera en patch. Har aldrig gjort det förr, så jag är tacksam för råd över hur det går till.
Tomas

Mitt förslag är att prova och

göran's picture

Mitt förslag är att prova och köra D 7.10.
Om du har en 7.11 dev finns alltid risken för att det är något (som blivit) galet innan den nya versionen är klar.

(Blir osäker när jag läser i tråden om vilken D7 version du har problem med).

Jag hade dock något liknande problem i 7.2, minns att det försvann när 7.4 kom men inte exakt vad det var.

// Göran

OK - testat med 7.10

WhiplashInfo's picture

Nu har jag kört 7.10 versionen men problemet kvarstår. JAg har dessutom försökt att använda olika redigerare, TinyMC, Plain osv, utan att det löst problemet.

Tomas

Ser olika ut beroende på inloggning eller ej.

WhiplashInfo's picture

Av en slump upptcäkte jag att sidan ser helt olika ut beroende på om jag är inloggad eller ej.

Hur gick det, har du prövat

göran's picture

Hur gick det, har du prövat med en extern server? Vad det samma fel då också isf?

// Göran

Nej - jag har inte prövat då

WhiplashInfo's picture

Nej - jag har inte prövat då tilldelat minne är för litet hos mitt webbhotell - endast 48 MB

När jag tittade en gång till

göran's picture

När jag tittade en gång till på din log-dump upptäckte jag att du verkar sakna ett vettigt värdnamn, jag har t ex 127.0.0.1 på alla mina felmeddelanden när jag jämför med min logg. I din logg står det ::1 för värdnamnet och det tror jag inte är rätt.

Kan det vara så att felet rör någon inställning i din lokala serverprogramvara?
(Du verkar köra på pc - och det saknar jag erfarenhet av, men kolla de lokala skrivrättigheterna )

Har du testat med en extern host - blir resultatet samma då också?

// Göran

::1 är i ipv6 motsvarande

Orjan's picture

::1 är i ipv6 motsvarande 127.0.0.1 i ipv4

Hittade en lösning ...

WhiplashInfo's picture

Jag htitade en lösning på problemet i denna tråd:
http://drupal.org/node/1090290#comment-4485492

Jag implementerade lightstrings lösning och det funkade.

Sweden

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds: