vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   vBulletin SOAP API (https://vborg.vbsupport.ru/showthread.php?t=100559)

ImportPassion 12-02-2005 01:53 AM

Quote:

Originally Posted by leonsio
for RHEL you should better take Centos RPMs ;)

http://rpm.pbone.net/index.php3?stat...soap&srodzaj=3

no good.

Quote:

php = 5.0.4-4.centos4 is needed by php-soap-5.0.4-4.centos4

leonsio 12-02-2005 05:05 AM

extrackt rpm file with rpm2cpio

kickorg 12-02-2005 11:18 AM

local test on win xp, apache 2.0.55 + php 5.1 as modul + php soap extension

SoapFault Object
(

.... somethingthing .....

[faultstring] => Call to undefined function vbrand()
[faultcode] => SOAP-ENV:Server
)

any idea?

leonsio 12-02-2005 11:25 AM

which vbulletin do you use?
in which folder is server.php located?
if you use other folder than /soap you must edit a patch to you forum at the top of the server.php

vbrand functions is in the functions.php, which is loaded by the constructor of the class
so that i think it can not be found

look at the CWD constant

define('CWD', '../' ); <-- i think you must change this

example to: ./ if you running server.php in the forumroot

kickorg 12-02-2005 11:31 AM

vb 3.5.1 new installed yesterday

path's:

"vbroot"/soap/server.php
"vbroot"/soap/examples/test.php

i also think that functions.php not can be found but i dont know why. i have changed nothing and i follow exactly your instructions. hope u can understand my english :)

p.s.: "i have changed nothing means that i have changed nothing in the server.php class", sure i have changed the needed paras like the key etc..

leonsio 12-02-2005 11:41 AM

hmm it can be a windows specific problem

try to set an absolute path to the CWD constant
and please check a path in the config.php file from vbulletin
(attention windows and linux have different path
c:/forum/ <-- windows
/var/www/forum <-- linux
)

hmm i think i must find anythere a windows pc and test it

but it is not so simple, as it sounds

i have at work only solaris computers, at home i'm using macosx and my root server is linux .....

kickorg 12-02-2005 11:45 AM

ok now it works. great addon man ;)

the error comes because i have not defined in config.php the path to the forum ->

$config['Misc']['forumpath'] = 'path/to/board';

in config.php i read that i must only define this path if vb print an error that i must define it - you know what i mean?

leonsio 12-02-2005 11:47 AM

Quote:

Originally Posted by kickorg
ok now it works. great addon man ;)

the error comes because i have not defined in config.php the path to the forum ->

$config['Misc']['forumpath'] = 'path/to/board';

in config.php i read that i must only define this path if vb print an error that i must define it - you know what i mean?


okay, great i will try to include forumpath check in the construct

kickorg 12-02-2005 05:14 PM

in "server.php" at function "getpost" i have found a the line "print_r($threadinfo)" ->

Code:

        public function getPost($key, $postid)
        {
                global $vbulletin;

                if($this->access_key != $key)
                {
                        throw new SoapFault("Server","Bad Key");
                }

                $postinfo = verify_id('post', $postid, 0, 1);
                $threadinfo = verify_id('thread', $postinfo['threadid'], 0, 1);
print_r($threadinfo);
....


i think u have set this line for debug mode and this should not set in the released version, right?

leonsio 12-02-2005 05:20 PM

hmm yes thx, i will remove it in the next release


All times are GMT. The time now is 05:19 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01290 seconds
  • Memory Usage 1,741KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete