Errors with Ngeblog 0.1

0 views
Skip to first unread message

sezera...@gmail.com

unread,
Oct 30, 2006, 11:37:26 AM10/30/06
to Ngeblog Developer
When i tried the code below with Ngeblog 0.1
<code>
<?php
require_once "lib/Ngeblog.php";
$myblog = new Ngeblog($_REQUEST[buser],$_REQUEST[bpass]);
?>
</code>

i get this error
<pre>
Stack trace:
#0 E:\wamp\www\lib\Ngeblog.php(164): Ngeblog-&gt;_authenticate()
#1 E:\wamp\www\lib\Ngeblog.php(131): Ngeblog-&gt;connect()
#2 E:\wamp\www\AjaxBlogger.php(5): Ngeblog-&gt;__construct('[hidden
user name]', 'hidden password')
#3 {main}
thrown in <b>E:\wamp\www\lib\Ngeblog.php</b> on line <b>393</b><br>
</pre>

$_REQUEST[buser] and $_REQUEST[bpass] are tested on blogger.com

any idea?

i use php 5+ (Win32)

by the way v0.0.4 seems to work without problems.

erist...@ngikutin.com

unread,
Oct 30, 2006, 12:55:02 PM10/30/06
to Ngeblog Developer
Hi,

I forgot to mention this in my blog, sorry. Since 0.1, i apply PHP5
exception in Ngeblog, so you must do something like this,

try {


$myblog = new Ngeblog($_REQUEST[buser],$_REQUEST[bpass]);

} catch ( Exception $e ) {
echo $e->getMessage();
}

also you must upload your script to server, somehow Google reject any
attempt to log in to their system from local computer (localhost) using
ClientLogin methods.

regards
-ers

Sezer Akcakaya

unread,
Oct 30, 2006, 3:21:06 PM10/30/06
to ngeblo...@googlegroups.com
OK. i understand.

Thanks so much.

i think you should add a note about this to the class documentation.


--
Makine

Reply all
Reply to author
Forward
0 new messages