Bug with xmlrpc plugin
-
mgroeninger
- Regular
- Posts: 546
- Joined: Mon Dec 20, 2004 11:57 pm
- Contact:
It might also be worth checking what $new_include is around that block, too.
Matthew (Feeling generous?)
I dont know if this is the right way to test but here is the code whicht I put in the file:
and thats the output:
Code: Select all
echo ">>> ";
echo "pear: ";
echo S9Y_PEAR;
echo '<br />';
echo "pear path: ";
echo S9Y_PEAR_PATH;
echo " <<<";and thats the output:
>>> pear: 1
pear path: <<<
-
mgroeninger
- Regular
- Posts: 546
- Joined: Mon Dec 20, 2004 11:57 pm
- Contact:
Perfect! Unfortunately, that doesn't tell me much...
Can you do the same thing for the variable $new_include, the include_path ini setting, and the $old_include variable?
Something like:
If the code is working correctly, the first two will be equal. I have no idea what the old_include path will look like.
Is $serendipity['use_PEAR'] still set to false?
Can you do the same thing for the variable $new_include, the include_path ini setting, and the $old_include variable?
Something like:
Code: Select all
echo ">>> ";
echo "New Include Path: ";
echo $new_include;
echo '<br />';
echo "ini path: ";
echo @ini_get('include_path');
echo " ---";
echo '<br />';
echo "Old include path: ";
echo $old_include');
echo " <<<";Is $serendipity['use_PEAR'] still set to false?
Matthew (Feeling generous?)
ok I tried the first mentioned code with pear true and false - same result.
your code:
with $serendipity['use_PEAR'] = false;

your code:
Code: Select all
echo ">>> ";
echo "New Include Path: ";
echo $new_include;
echo '<br />';
echo "ini path: ";
echo @ini_get('include_path');
echo " ---";
echo '<br />';
echo "Old include path: ";
echo $old_include;
echo " <<<";with $serendipity['use_PEAR'] = true;>>> New Include Path: .:/usr/share/php:/usr/share/adodb:/home/noble/www/sub_blog/bundled-libs/:/home/noble/www/sub_blog/bundled-libs/Smarty/libs/:/home/noble/www/sub_blog/:
ini path: .:/usr/share/php:/usr/share/adodb:/home/noble/www/sub_blog/bundled-libs/:/home/noble/www/sub_blog/bundled-libs/Smarty/libs/:/home/noble/www/sub_blog/: ---
Old include path: .:/usr/share/php:/usr/share/adodb <<<
Same output>>> New Include Path: .:/usr/share/php:/usr/share/adodb:/home/noble/www/sub_blog/bundled-libs/:/home/noble/www/sub_blog/bundled-libs/Smarty/libs/:/home/noble/www/sub_blog/:
ini path: .:/usr/share/php:/usr/share/adodb:/home/noble/www/sub_blog/bundled-libs/:/home/noble/www/sub_blog/bundled-libs/Smarty/libs/:/home/noble/www/sub_blog/: ---
Old include path: .:/usr/share/php:/usr/share/adodb <<<
-
mgroeninger
- Regular
- Posts: 546
- Joined: Mon Dec 20, 2004 11:57 pm
- Contact:
Where are you setting $serendipity['use_PEAR']?
Can you do something like this:
That is basically the same code, but it might give us a little more info...
Basically serendipity does not seem to be moving the pear folders to the end of the include path...
You would expect to see this:
Can you do something like this:
Code: Select all
echo ">>> ";
echo "use_pear: ";
echo $serendipity['use_PEAR'];
echo '<br />';
echo "---";
echo '<br />';
echo "New Include Path: ";
echo $new_include;
echo '<br />';
echo "---";
echo '<br />';
echo "ini path: ";
echo @ini_get('include_path');
echo '<br />';
echo " ---";
echo '<br />';
echo "Old include path: ";
echo $old_include;
echo '<br />';
echo " <<<";Basically serendipity does not seem to be moving the pear folders to the end of the include path...
You would expect to see this:
for New Include Path if serendipity saw $serendipity['use_PEAR'] as false. I want to see if serendipity is resetting that variable....:/home/noble/www/sub_blog/bundled-libs/:/home/noble/www/sub_blog/bundled-libs/Smarty/libs/:/home/noble/www/sub_blog/:/usr/share/php:/usr/share/adodb:
Matthew (Feeling generous?)
I put the info $serendipity['use_PEAR'] into the serendipity_config_local.inc.php.
I also updated today to the ne beta 5 version - same problem
output with no settings in the config:
and I am the only one with this problem ?
I also updated today to the ne beta 5 version - same problem
output with no settings in the config:
with setting in the config:>>> use_pear: 1
---
New Include Path: .:/usr/share/php:/usr/share/adodb:/home/noble/www/sub_blog/bundled-libs/:/home/noble/www/sub_blog/bundled-libs/Smarty/libs/:/home/noble/www/sub_blog/:
---
ini path: .:/usr/share/php:/usr/share/adodb:/home/noble/www/sub_blog/bundled-libs/:/home/noble/www/sub_blog/bundled-libs/Smarty/libs/:/home/noble/www/sub_blog/:
---
Old include path: .:/usr/share/php:/usr/share/adodb
<<<
I dont know what you are searching for, but all my hope to fix that problem is resting on your shoulders>>> use_pear:
---
New Include Path: .:/usr/share/php:/usr/share/adodb:/home/noble/www/sub_blog/bundled-libs/:/home/noble/www/sub_blog/bundled-libs/Smarty/libs/:/home/noble/www/sub_blog/:
---
ini path: .:/usr/share/php:/usr/share/adodb:/home/noble/www/sub_blog/bundled-libs/:/home/noble/www/sub_blog/bundled-libs/Smarty/libs/:/home/noble/www/sub_blog/:
---
Old include path: .:/usr/share/php:/usr/share/adodb
<<<
and I am the only one with this problem ?
-
mgroeninger
- Regular
- Posts: 546
- Joined: Mon Dec 20, 2004 11:57 pm
- Contact:
I dont know what you are searching for, but all my hope to fix that problem is resting on your shoulders
And we are looking for the reason that your ini path is not being set correctly.
Basically, we want to see if we can get your ini path to look something like this:
instead of this:.:/home/noble/www/sub_blog/bundled-libs/:/home/noble/www/sub_blog/bundled-libs/Smarty/libs/:/home/noble/www/sub_blog/:/usr/share/php:/usr/share/adodb:
And I am hoping that works... (Still kind of guessing).:/usr/share/php:/usr/share/adodb:/home/noble/www/sub_blog/bundled-libs/:/home/noble/www/sub_blog/bundled-libs/Smarty/libs/:/home/noble/www/sub_blog/:
Could you try setting this:
Code: Select all
$serendipity['use_PEAR'] = 0;Or, if that doesn't work, you could just do something like:
Code: Select all
$new_include = '.:/usr/share/php:/usr/share/adodb:/home/noble/www/sub_blog/bundled-libs/:/home/noble/www/sub_blog/bundled-libs/Smarty/libs/:/home/noble/www/sub_blog/:';Code: Select all
if (function_exists('set_include_path')) {
$use_include = @set_include_path($new_include);
} else {
$use_include = @ini_set('include_path', $new_include);
}You are special!
Matthew (Feeling generous?)
As if you needed it. But yes, I'm watching, too. Of course, that just demonstrates the fundamental fallacy of democracy: it assumes that many people can make a better decision than any single individual.:D I'm sure other folks are watching the thread to make sure I'm doing alright...
You're doing a great job. The path looks like the problem to me, too.
Bwah! There have been other people with similar problems, and that's why the 'use_PEAR' variable is there. Of course, it generally indicates a poorly configured server.And yes, you seem to be the only person with this problem... :D
You are special!
that's a hard judgementjudebert wrote:Bwah! There have been other people with similar problems, and that's why the 'use_PEAR' variable is there. Of course, it generally indicates a poorly configured server.
ok what can I change on the server configuration that my server is in case of PEAR not poorly configured?
It's an dedicated server which 3 friends and myself are administer. So when the Error is there, then tell me where I can look.
Thanks
-
garvinhicking
- Core Developer
- Posts: 30022
- Joined: Tue Sep 16, 2003 9:45 pm
- Location: Cologne, Germany
- Contact:
Hi!
Sorry, this thread is a mess, so I just jump right in:
Please open your serendipity_config.inc.php (NOT the local one) and look at the top where $serendpity['use_PEAR'] = true is defined. There set it to "false".
This should practically set your include_path to what mgroeninger wanted to see:
My belief is simply that the use_PEAR variable is not set at the right place in all of your tests. Maybe the _local.inc.php file is not the place where its really required...
HTH,
Garvin
Sorry, this thread is a mess, so I just jump right in:
Please open your serendipity_config.inc.php (NOT the local one) and look at the top where $serendpity['use_PEAR'] = true is defined. There set it to "false".
This should practically set your include_path to what mgroeninger wanted to see:
Code: Select all
.:/home/noble/www/sub_blog/bundled-libs/:/home/noble/www/sub_blog/bundled-libs/Smarty/libs/:/home/noble/www/sub_blog/:/usr/share/php:/usr/share/adodb:
HTH,
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/
# 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/
ok next try
both code samples give me the same output, I made the chances in the normal config file not the local
In case of this - it's an dedicated server and what means poor configured pear ?
both code samples give me the same output, I made the chances in the normal config file not the local
Code: Select all
$serendipity['use_PEAR'] = false;
if (!isset($serendipity['use_PEAR'])) {
$serendipity['use_PEAR'] = true;
//$serendipity['use_PEAR'] = false;
}Nevertheless - the pathes looking ok - but same problem - error from ecto using rpc calls.>>> use_pear:
---
New Include Path: /home/noble/www/sub_blog/bundled-libs/:/home/noble/www/sub_blog/bundled-libs/Smarty/libs/:/home/noble/www/sub_blog/:.:/usr/share/php:/usr/share/adodb:
---
ini path: /home/noble/www/sub_blog/bundled-libs/:/home/noble/www/sub_blog/bundled-libs/Smarty/libs/:/home/noble/www/sub_blog/:.:/usr/share/php:/usr/share/adodb:
---
Old include path: .:/usr/share/php:/usr/share/adodb
<<<
In case of this - it's an dedicated server and what means poor configured pear ?
-
garvinhicking
- Core Developer
- Posts: 30022
- Joined: Tue Sep 16, 2003 9:45 pm
- Location: Cologne, Germany
- Contact:
Hi gotchi!
Can you please check if the
XML/RPC.php
file exists in either your bundled-libs/ directory or in any other directory of your serendipity installation?
If you use the XML-RPC posting plugin, it should exist in plugins/serendipity_event_xmlrpc/PEAR/XML/RPC.php?
Best regards,
Garvin
Can you please check if the
XML/RPC.php
file exists in either your bundled-libs/ directory or in any other directory of your serendipity installation?
If you use the XML-RPC posting plugin, it should exist in plugins/serendipity_event_xmlrpc/PEAR/XML/RPC.php?
Best 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/
# 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/
sorry for waiting
so - ok - what I wanna ask first if it is correct when I set the path for blogging with any program to
blog.gotchi.at/serendipity_xmlrpc.php
or should I have set the path to an other location? cause also in the bundle directory for the xmlrpc stuff is I file called like the one mentioned before.
answering you question:
the file exists under the folder you mentioned
so - ok - what I wanna ask first if it is correct when I set the path for blogging with any program to
blog.gotchi.at/serendipity_xmlrpc.php
or should I have set the path to an other location? cause also in the bundle directory for the xmlrpc stuff is I file called like the one mentioned before.
answering you question:
the file exists under the folder you mentioned
-
garvinhicking
- Core Developer
- Posts: 30022
- Joined: Tue Sep 16, 2003 9:45 pm
- Location: Cologne, Germany
- Contact:
Hi!
So where exactly does a "RPC.php" file lie in your s9y subdirectories? If you use SSH, you can do that fia "find -name RPC.php" in your blog main directory. Even better would be "updatedb ; locate RPC.php"?
Regards,
Garvin
Usually if you should enter a path, you just enter "/serendipity_xmlrpc.php", because the "blog.gotchi.at" part is a hostname, not a path.gotchi wrote:sorry for waiting
so - ok - what I wanna ask first if it is correct when I set the path for blogging with any program to
blog.gotchi.at/serendipity_xmlrpc.php
So where exactly does a "RPC.php" file lie in your s9y subdirectories? If you use SSH, you can do that fia "find -name RPC.php" in your blog main directory. Even better would be "updatedb ; locate RPC.php"?
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/
# 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/