[SOLVED] XML_RPC Plugin does not accept html

Creating and modifying plugins.
OnIce
Regular
Posts: 9
Joined: Mon Oct 13, 2008 11:19 pm

[SOLVED] XML_RPC Plugin does not accept html

Post by OnIce »

Hi,

I have a problem using the XML_RPC Plugin.
I tried posting via MS Live Writer and it does not really work well because HTML tags are not passed to the blog.

Something like:

Code: Select all

<p>Here is my sentence</p>
looks like phere is my sentence/p

German Umlaute are only shown correctly if I set Live Writer to HTML instead of XHTML. Umlaute don't work at all in the heading - which is why I guess something with recoding or parsing doesn't work...

I am using the latest XML_RPC Plugin (from Spartacus) - my guess is that my php installation is missing some important feature for parsing html - but I have no clue which one that could be. Can anyone tell my what the plugin requires in order to work properly?

Serendipity 1.3 / PHP 5.2.6-pl7-gentoo

Everything else works fine - just the ignoring of html obviously screws up the whole article.

Thanks!
Last edited by OnIce on Sun Oct 26, 2008 7:37 pm, edited 1 time in total.
OnIce
Regular
Posts: 9
Joined: Mon Oct 13, 2008 11:19 pm

Post by OnIce »

If nobody knows a solution, is maybe someone (who is using xmlrpc) willing to post the output of phpinfo - that way I could compare if my php installation is missing some features...

Thanks!
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Hi!

Does posting HTML to your blog entries work if you use the s9y interface?

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
OnIce
Regular
Posts: 9
Joined: Mon Oct 13, 2008 11:19 pm

Post by OnIce »

Yes it does... supporting Umlaute (everywhere) and HTML.
With WYSIWYG and regular frontend.

Do I need a wlwmanifest.xml? I thought it is only necessary for "fine tuning" Live Writer... The blog get's recognized as serendipity - but is not working as any other API either...

Anyway: If I use an wlwmanifest.xml (as found for serendipity) Umlaute in the title are supported... but not in the article - if I set WLW to HTML (instead of XHTML) it also puts the Umlaute correct into the article.

Only "<" and ">" always stripped... so no HTML-Code is processed.
Very strange...
judebert
Regular
Posts: 2478
Joined: Sat Oct 15, 2005 6:57 am
Location: Orlando, FL
Contact:

Post by judebert »

Apparently others are having the same problem with other blog engines. We'll monitor the situation to determine the cause.

I assume you're in WLW's HTML mode?
Judebert
---
Website | Wishlist | PayPal
TimNiceBut
Regular
Posts: 6
Joined: Sat May 17, 2008 10:56 pm
Location: Ashford, Kent, UK

Post by TimNiceBut »

I'm not sure if this is an overly helpful pointer but I use s9y's xml_rpc from both Emacs and ScribeFire and I do tend to make extensive use of <p> markers and other HTML markup.

Posts through fine from both editors so my guess would be that it's an oddity with WLW.
Freudi
Regular
Posts: 97
Joined: Thu Nov 23, 2006 6:29 am
Contact:

Post by Freudi »

Maybe http://board.s9y.org/viewtopic.php?t=12295&start=15 is worth reading.

Bye,
Freudi
OnIce
Regular
Posts: 9
Joined: Mon Oct 13, 2008 11:19 pm

Post by OnIce »

Still not working... I tried scribefire now and the problem still remains.

"<" and ">" are being stripped from my input... So I really guess it is a php and or xmlrpc problem... maybe a wrong setup on the server. ANY suggestions - anybody?

What security features could there be that keep me from posting html tags? Or what feature might my php installation be lacking that html tags are not being processed?
judebert
Regular
Posts: 2478
Joined: Sat Oct 15, 2005 6:57 am
Location: Orlando, FL
Contact:

Post by judebert »

I'm not aware of anything that would cause this problem.

You could try getting some debug data. Open the serenditpity_xmlrpc.inc.php file and change the $debug_xmlrpc = false; to $debug_xmlrpc = 2; instead. Change the line @define('DEBUG_LOG_XMLRPC', '/temp/rpc.log'); to point to a file that your webserver can write to.

Then try to create another entry. The contents of the entry should be written to the file, and you should be able to see whether the tags are being stripped before or after they get to Serendipity.

You could also install WireShark and watch what's going out of your computer. That can be complicated, so I'd stick with the debug steps first.
Judebert
---
Website | Wishlist | PayPal
OnIce
Regular
Posts: 9
Joined: Mon Oct 13, 2008 11:19 pm

Post by OnIce »

Ok, here is the DEBUG output:

Code: Select all

[23.10.2008 22:08]<?xml version="1.0" encoding="utf-8"?>
<methodCall>
 <methodName>mt.setPostCategories</methodName>
 <params>
  <param>
   <value>
    <string>817</string>
   </value>
  </param>
  <param>
   <value>
    <string>USERNAME</string>
   </value>
  </param>
  <param>
   <value>
    <string>PASSWORD</string>
   </value>
  </param>
  <param>
   <value>
    <array>
     <data />
    </array>
   </value>
  </param>
 </params>
</methodCall>
Array
(
)

fetchCategories: 
Array
(
)

<?xml version="1.0" encoding="UTF-8"?>
<!-- PEAR XML_RPC SERVER DEBUG INFO:

0 - XML_RPC_Value::__set_state(array(
   'me' => 
  array (
    'string' => '817',
  ),
   'mytype' => 1,
)) 
1 - XML_RPC_Value::__set_state(array(
   'me' => 
  array (
    'string' => 'USERNAME',
  ),
   'mytype' => 1,
)) 
2 - XML_RPC_Value::__set_state(array(
   'me' => 
  array (
    'string' => 'PASSWORD',
  ),
   'mytype' => 1,
)) 
3 - XML_RPC_Value::__set_state(array(
   'me' => 
  array (
    'array' => 
    array (
    ),
  ),
   'mytype' => 2,
)) 

vvv POST DATA RECEIVED BY SERVER vvv
<?xml version="1.0" encoding="utf-8"?>
<methodCall>
 <methodName>mt.setPostCategories</methodName>
 <params>
  <param>
   <value>
    <string>817</string>
   </value>
  </param>
  <param>
   <value>
    <string>USERNAME</string>
   </value>
  </param>
  <param>
   <value>
    <string>PASSWORD</string>
   </value>
  </param>
  <param>
   <value>
    <array>
     <data />
    </array>
   </value>
  </param>
 </params>
</methodCall>
^^^ END POST DATA ^^^
-->
<methodResponse>
<params>
<param>
<value><boolean>1</boolean></value>
</param>
</params>
</methodResponse>0 - XML_RPC_Value::__set_state(array(
   'me' => 
  array (
    'string' => '817',
  ),
   'mytype' => 1,
)) 
1 - XML_RPC_Value::__set_state(array(
   'me' => 
  array (
    'string' => 'USERNAME',
  ),
   'mytype' => 1,
)) 
2 - XML_RPC_Value::__set_state(array(
   'me' => 
  array (
    'string' => 'PASSWORD',
  ),
   'mytype' => 1,
)) 
3 - XML_RPC_Value::__set_state(array(
   'me' => 
  array (
    'array' => 
    array (
    ),
  ),
   'mytype' => 2,
)) 

vvv POST DATA RECEIVED BY SERVER vvv
<?xml version="1.0" encoding="utf-8"?>
<methodCall>
 <methodName>mt.setPostCategories</methodName>
 <params>
  <param>
   <value>
    <string>817</string>
   </value>
  </param>
  <param>
   <value>
    <string>USERNAME</string>
   </value>
  </param>
  <param>
   <value>
    <string>PASSWORD</string>
   </value>
  </param>
  <param>
   <value>
    <array>
     <data />
    </array>
   </value>
  </param>
 </params>
</methodCall>
^^^ END POST DATA ^^^

---------------------------------------
[23.10.2008 22:08]<?xml version="1.0" encoding="utf-8"?>
<methodCall>
 <methodName>metaWeblog.editPost</methodName>
 <params>
  <param>
   <value>
    <string>817</string>
   </value>
  </param>
  <param>
   <value>
    <string>USERNAME</string>
   </value>
  </param>
  <param>
   <value>
    <string>PASSWORD</string>
   </value>
  </param>
  <param>
   <value>
    <struct>
     <member>
      <name>title</name>
      <value>
       <string>Geht's noch?</string>
      </value>
     </member>
     <member>
      <name>description</name>
      <value>
       <string><p>Hier also noch ein Test</p> <p>und so weiter... <strike>oder nicht</strike></p></string>
      </value>
     </member>
     <member>
      <name>mt_text_more</name>
      <value>
       <string />
      </value>
     </member>
     <member>
      <name>mt_keywords</name>
      <value>
       <string />
      </value>
     </member>
     <member>
      <name>categories</name>
      <value>
       <array>
        <data />
       </array>
      </value>
     </member>
     <member>
      <name>mt_excerpt</name>
      <value>
       <string />
      </value>
     </member>
    </struct>
   </value>
  </param>
  <param>
   <value>
    <boolean>1</boolean>
   </value>
  </param>
 </params>
</methodCall>
Array
(
)

metaWeblog_editPost
Array
(
    [title] => Geht's noch?
    [description] => pHier also noch ein Test/p pund so weiter... strikeoder nicht/strike/p
    [mt_text_more] => 
    [mt_keywords] => 
    [categories] => Array
        (
        )

    [mt_excerpt] => 
)

fetchCategories: 
Array
(
)

<?xml version="1.0" encoding="UTF-8"?>
<!-- PEAR XML_RPC SERVER DEBUG INFO:

0 - XML_RPC_Value::__set_state(array(
   'me' => 
  array (
    'string' => '817',
  ),
   'mytype' => 1,
)) 
1 - XML_RPC_Value::__set_state(array(
   'me' => 
  array (
    'string' => 'USERNAME',
  ),
   'mytype' => 1,
)) 
2 - XML_RPC_Value::__set_state(array(
   'me' => 
  array (
    'string' => 'PASSWORD',
  ),
   'mytype' => 1,
)) 
3 - XML_RPC_Value::__set_state(array(
   'me' => 
  array (
    'struct' => 
    array (
      'title' => 
      XML_RPC_Value::__set_state(array(
         'me' => 
        array (
          'string' => 'Geht\'s noch?',
        ),
         'mytype' => 1,
      )),
      'description' => 
      XML_RPC_Value::__set_state(array(
         'me' => 
        array (
          'string' => 'pHier also noch ein Test/p pund so weiter... strikeoder nicht/strike/p',
        ),
         'mytype' => 1,
      )),
      'mt_text_more' => 
      XML_RPC_Value::__set_state(array(
         'me' => 
        array (
          'string' => '',
        ),
         'mytype' => 1,
      )),
      'mt_keywords' => 
      XML_RPC_Value::__set_state(array(
         'me' => 
        array (
          'string' => '',
        ),
         'mytype' => 1,
      )),
      'categories' => 
      XML_RPC_Value::__set_state(array(
         'me' => 
        array (
          'array' => 
          array (
          ),
        ),
         'mytype' => 2,
      )),
      'mt_excerpt' => 
      XML_RPC_Value::__set_state(array(
         'me' => 
        array (
          'string' => '',
        ),
         'mytype' => 1,
      )),
    ),
  ),
   'mytype' => 3,
)) 
4 - XML_RPC_Value::__set_state(array(
   'me' => 
  array (
    'boolean' => 1,
  ),
   'mytype' => 1,
)) 

vvv POST DATA RECEIVED BY SERVER vvv
<?xml version="1.0" encoding="utf-8"?>
<methodCall>
 <methodName>metaWeblog.editPost</methodName>
 <params>
  <param>
   <value>
    <string>817</string>
   </value>
  </param>
  <param>
   <value>
    <string>USERNAME</string>
   </value>
  </param>
  <param>
   <value>
    <string>PASSWORD</string>
   </value>
  </param>
  <param>
   <value>
    <struct>
     <member>
      <name>title</name>
      <value>
       <string>Geht's noch?</string>
      </value>
     </member>
     <member>
      <name>description</name>
      <value>
       <string><p>Hier also noch ein Test</p> <p>und so weiter... <strike>oder nicht</strike></p></string>
      </value>
     </member>
     <member>
      <name>mt_text_more</name>
      <value>
       <string />
      </value>
     </member>
     <member>
      <name>mt_keywords</name>
      <value>
       <string />
      </value>
     </member>
     <member>
      <name>categories</name>
      <value>
       <array>
        <data />
       </array>
      </value>
     </member>
     <member>
      <name>mt_excerpt</name>
      <value>
       <string />
      </value>
     </member>
    </struct>
   </value>
  </param>
  <param>
   <value>
    <boolean>1</boolean>
   </value>
  </param>
 </params>
</methodCall>
^^^ END POST DATA ^^^
-->
<methodResponse>
<params>
<param>
<value><boolean>1</boolean></value>
</param>
</params>
</methodResponse>0 - XML_RPC_Value::__set_state(array(
   'me' => 
  array (
    'string' => '817',
  ),
   'mytype' => 1,
)) 
1 - XML_RPC_Value::__set_state(array(
   'me' => 
  array (
    'string' => 'USERNAME',
  ),
   'mytype' => 1,
)) 
2 - XML_RPC_Value::__set_state(array(
   'me' => 
  array (
    'string' => 'PASSWORD',
  ),
   'mytype' => 1,
)) 
3 - XML_RPC_Value::__set_state(array(
   'me' => 
  array (
    'struct' => 
    array (
      'title' => 
      XML_RPC_Value::__set_state(array(
         'me' => 
        array (
          'string' => 'Geht\'s noch?',
        ),
         'mytype' => 1,
      )),
      'description' => 
      XML_RPC_Value::__set_state(array(
         'me' => 
        array (
          'string' => 'pHier also noch ein Test/p pund so weiter... strikeoder nicht/strike/p',
        ),
         'mytype' => 1,
      )),
      'mt_text_more' => 
      XML_RPC_Value::__set_state(array(
         'me' => 
        array (
          'string' => '',
        ),
         'mytype' => 1,
      )),
      'mt_keywords' => 
      XML_RPC_Value::__set_state(array(
         'me' => 
        array (
          'string' => '',
        ),
         'mytype' => 1,
      )),
      'categories' => 
      XML_RPC_Value::__set_state(array(
         'me' => 
        array (
          'array' => 
          array (
          ),
        ),
         'mytype' => 2,
      )),
      'mt_excerpt' => 
      XML_RPC_Value::__set_state(array(
         'me' => 
        array (
          'string' => '',
        ),
         'mytype' => 1,
      )),
    ),
  ),
   'mytype' => 3,
)) 
4 - XML_RPC_Value::__set_state(array(
   'me' => 
  array (
    'boolean' => 1,
  ),
   'mytype' => 1,
)) 

vvv POST DATA RECEIVED BY SERVER vvv
<?xml version="1.0" encoding="utf-8"?>
<methodCall>
 <methodName>metaWeblog.editPost</methodName>
 <params>
  <param>
   <value>
    <string>817</string>
   </value>
  </param>
  <param>
   <value>
    <string>USERNAME</string>
   </value>
  </param>
  <param>
   <value>
    <string>PASSWORD</string>
   </value>
  </param>
  <param>
   <value>
    <struct>
     <member>
      <name>title</name>
      <value>
       <string>Geht's noch?</string>
      </value>
     </member>
     <member>
      <name>description</name>
      <value>
       <string><p>Hier also noch ein Test</p> <p>und so weiter... <strike>oder nicht</strike></p></string>
      </value>
     </member>
     <member>
      <name>mt_text_more</name>
      <value>
       <string />
      </value>
     </member>
     <member>
      <name>mt_keywords</name>
      <value>
       <string />
      </value>
     </member>
     <member>
      <name>categories</name>
      <value>
       <array>
        <data />
       </array>
      </value>
     </member>
     <member>
      <name>mt_excerpt</name>
      <value>
       <string />
      </value>
     </member>
    </struct>
   </value>
  </param>
  <param>
   <value>
    <boolean>1</boolean>
   </value>
  </param>
 </params>
</methodCall>
^^^ END POST DATA ^^^

---------------------------------------
[23.10.2008 22:08]<?xml version="1.0" encoding="utf-8"?>
<methodCall>
 <methodName>metaWeblog.getPost</methodName>
 <params>
  <param>
   <value>
    <string>817</string>
   </value>
  </param>
  <param>
   <value>
    <string>USERNAME</string>
   </value>
  </param>
  <param>
   <value>
    <string>PASSWORD</string>
   </value>
  </param>
 </params>
</methodCall>
Array
(
)

<?xml version="1.0" encoding="UTF-8"?>
<!-- PEAR XML_RPC SERVER DEBUG INFO:

0 - XML_RPC_Value::__set_state(array(
   'me' => 
  array (
    'string' => '817',
  ),
   'mytype' => 1,
)) 
1 - XML_RPC_Value::__set_state(array(
   'me' => 
  array (
    'string' => 'USERNAME',
  ),
   'mytype' => 1,
)) 
2 - XML_RPC_Value::__set_state(array(
   'me' => 
  array (
    'string' => 'PASSWORD',
  ),
   'mytype' => 1,
)) 

vvv POST DATA RECEIVED BY SERVER vvv
<?xml version="1.0" encoding="utf-8"?>
<methodCall>
 <methodName>metaWeblog.getPost</methodName>
 <params>
  <param>
   <value>
    <string>817</string>
   </value>
  </param>
  <param>
   <value>
    <string>USERNAME</string>
   </value>
  </param>
  <param>
   <value>
    <string>PASSWORD</string>
   </value>
  </param>
 </params>
</methodCall>
^^^ END POST DATA ^^^
-->
<methodResponse>
<params>
<param>
<value><struct>
<member><name>userid</name>
<value><string>1</string></value>
</member>
<member><name>dateCreated</name>
<value><dateTime.iso8601>20081023T21:53:37</dateTime.iso8601></value>
</member>
<member><name>postid</name>
<value><string>817</string></value>
</member>
<member><name>description</name>
<value><string>pHier also noch ein Test/p pund so weiter... strikeoder nicht/strike/p</string></value>
</member>
<member><name>title</name>
<value><string>Geht's noch?</string></value>
</member>
<member><name>link</name>
<value><string>https://blog.chaotic.de:443/archives/817-Gehts-noch.html</string></value>
</member>
<member><name>permalink</name>
<value><string>https://blog.chaotic.de:443/archives/817-Gehts-noch.html</string></value>
</member>
<member><name>mt_excerpt</name>
<value><string></string></value>
</member>
<member><name>mt_text_more</name>
<value><string></string></value>
</member>
<member><name>mt_allow_comments</name>
<value><int>1</int></value>
</member>
<member><name>mt_allow_pings</name>
<value><int>0</int></value>
</member>
<member><name>mt_convert_breaks</name>
<value><string></string></value>
</member>
<member><name>mt_keywords</name>
<value><string></string></value>
</member>
</struct></value>
</param>
</params>
</methodResponse>0 - XML_RPC_Value::__set_state(array(
   'me' => 
  array (
    'string' => '817',
  ),
   'mytype' => 1,
)) 
1 - XML_RPC_Value::__set_state(array(
   'me' => 
  array (
    'string' => 'USERNAME',
  ),
   'mytype' => 1,
)) 
2 - XML_RPC_Value::__set_state(array(
   'me' => 
  array (
    'string' => 'PASSWORD',
  ),
   'mytype' => 1,
)) 

vvv POST DATA RECEIVED BY SERVER vvv
<?xml version="1.0" encoding="utf-8"?>
<methodCall>
 <methodName>metaWeblog.getPost</methodName>
 <params>
  <param>
   <value>
    <string>817</string>
   </value>
  </param>
  <param>
   <value>
    <string>USERNAME</string>
   </value>
  </param>
  <param>
   <value>
    <string>PASSWORD</string>
   </value>
  </param>
 </params>
</methodCall>
^^^ END POST DATA ^^^

---------------------------------------
[23.10.2008 22:08]<?xml version="1.0" encoding="utf-8"?>
<methodCall>
 <methodName>mt.getPostCategories</methodName>
 <params>
  <param>
   <value>
    <string>817</string>
   </value>
  </param>
  <param>
   <value>
    <string>USERNAME</string>
   </value>
  </param>
  <param>
   <value>
    <string>PASSWORD</string>
   </value>
  </param>
 </params>
</methodCall>
Array
(
)

<?xml version="1.0" encoding="UTF-8"?>
<!-- PEAR XML_RPC SERVER DEBUG INFO:

0 - XML_RPC_Value::__set_state(array(
   'me' => 
  array (
    'string' => '817',
  ),
   'mytype' => 1,
)) 
1 - XML_RPC_Value::__set_state(array(
   'me' => 
  array (
    'string' => 'USERNAME',
  ),
   'mytype' => 1,
)) 
2 - XML_RPC_Value::__set_state(array(
   'me' => 
  array (
    'string' => 'PASSWORD',
  ),
   'mytype' => 1,
)) 

vvv POST DATA RECEIVED BY SERVER vvv
<?xml version="1.0" encoding="utf-8"?>
<methodCall>
 <methodName>mt.getPostCategories</methodName>
 <params>
  <param>
   <value>
    <string>817</string>
   </value>
  </param>
  <param>
   <value>
    <string>USERNAME</string>
   </value>
  </param>
  <param>
   <value>
    <string>PASSWORD</string>
   </value>
  </param>
 </params>
</methodCall>
^^^ END POST DATA ^^^
-->
<methodResponse>
<params>
<param>
<value><array>
<data>
</data>
</array></value>
</param>
</params>
</methodResponse>0 - XML_RPC_Value::__set_state(array(
   'me' => 
  array (
    'string' => '817',
  ),
   'mytype' => 1,
)) 
1 - XML_RPC_Value::__set_state(array(
   'me' => 
  array (
    'string' => 'USERNAME',
  ),
   'mytype' => 1,
)) 
2 - XML_RPC_Value::__set_state(array(
   'me' => 
  array (
    'string' => 'PASSWORD',
  ),
   'mytype' => 1,
)) 

vvv POST DATA RECEIVED BY SERVER vvv
<?xml version="1.0" encoding="utf-8"?>
<methodCall>
 <methodName>mt.getPostCategories</methodName>
 <params>
  <param>
   <value>
    <string>817</string>
   </value>
  </param>
  <param>
   <value>
    <string>USERNAME</string>
   </value>
  </param>
  <param>
   <value>
    <string>PASSWORD</string>
   </value>
  </param>
 </params>
</methodCall>
^^^ END POST DATA ^^^

---------------------------------------
Hope this helps - as I unfortunately can't read a lot out of it... this output was produced by publishing a single entry with LiveWriter...
judebert
Regular
Posts: 2478
Joined: Sat Oct 15, 2005 6:57 am
Location: Orlando, FL
Contact:

Post by judebert »

Thanks, Onice; that helps.

When you see the XML stuff in your debug log, that's the XML-RPC module on your server showing us what it received or sent. "<methodCall>" means that WLW is telling the XML-RPC module to do something. The stuff between the "<methodName>" is what it's telling XML-RPC to do.

The one we're interested in is <methodname>metaWeblog.editPost</methodName>. That's where WLW tries to send the entry. If you scroll down to the "description" line, you'll see that it's sent your entire blog post, with HTML-encoded entities for the < and >.

Since you've already shown that you can look at and even modify your code, I assume you might want to follow along. You can see what Serendipity is trying to do in the serendipity_xmlrpc.inc.php file. When the XML-RPC server receives this XML from WLW, it's going to call function metaWeblog_editPost, on line 503.

Serendipity retrieves the post on lines 517 and 518, then prints it out a moment later on lines 522 and 523. You can see that it's not processing the description at all; it just grabs the value and prints it out.

If you scroll down in your debug output a bit, you'll see where Serendipity prints the string "metaWeblog_editPost" on a line of its own. Beneath it, it prints out the entry it retrieved from the XML-RPC server. The [description] part has already had its HTML entities removed.

So the problem lies somewhere in the XML-RPC server. WLW is sending encoded entities, but the XML-RPC server is stripping them.

Unfortunately, this is where my knowledge falls over a cliff and plummets to its doom. I don't know why the XML-RPC PEAR package would be working for others and not for you. Maybe Garvin or Grischa will have some greater insight there.

If there's some way to get WLW to stop encoding the entities, maybe it'll send them in a CDATA block or something. It's worth a shot, anyway.
Judebert
---
Website | Wishlist | PayPal
OnIce
Regular
Posts: 9
Joined: Mon Oct 13, 2008 11:19 pm

Post by OnIce »

Thank you very much judebert - that is basically what I read out of the log but it's good to have it confirmed. Which also brings me back to my original question - what feature could my php installation probably miss?

As I mentioned: It is a self-compiled gentoo installation... that is why I am guessing that I am missing some important package... or didn't "switch on" some feature... just don't know which one it could be... any suggestions?
Last edited by OnIce on Sun Oct 26, 2008 7:39 pm, edited 1 time in total.
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Hi!

Can you check if you've got a local PEAR installed, something like in /usr/local/lib/php? This could conflict with the PEAR files loaded with the plugin.

Check if you've got a directory/file called "PEAR/XML/RPC/Server.php". If yes, please rename the whoile "XML" directory temporarily to sth like "old_XML" and see if that makes a difference?

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
OnIce
Regular
Posts: 9
Joined: Mon Oct 13, 2008 11:19 pm

Post by OnIce »

Hey,

Ok - I moved /usr/share/php/XML to old_XML.
That didn't make a difference...

"<" AND ">" still don't get decoded as "<" AND ">"

Also "&#228" "&#252" "&#246" are not getting decoded as Umlaute.

So IMHO the problem lies somewhere within decoding ampersands... any help or idea?

Funny thing: "&#228" for example is given back as #228
as for < is completely deleted.
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Hi!

By chance, are you using apache's mod_security?

I'm still clueless if it works for other people, I wouldn't know if it's really the XMLRPC server or s9y that is interfering?!

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Post Reply