The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Cant setup external login
Hello, I'm trying to set up external login but getting fatal errors that I can't seem to fix.
My script is PHP Code:
Code:
Fatal error: Class 'vB_Request_WebApi' not found in /home/USER/public_html/_vb5/includes/api/interface/collapsed.php on line 38 Fatal error: Class 'vB_Shutdown' not found in /home/USER/public_html/_vb5/core/vb/vb.php on line 502 |
#2
|
||||
|
||||
Did you upload all the files from the package? Based from the error message, it looks like /home/USER/public_html/_vb5/core/vb/request/webapi.php and /home/USER/public_html/_vb5/core/vb/shutdown.php are missing.
|
#3
|
|||
|
|||
Yes I did upload all files, I'm using vb5.2.3, didn't modify anything, uploaded from a fresh download.
Both files exist, both classes are inside those files, but it seems that somewhat they're not being used, and I have no idea what's the problem, reuploading doesnt seem solve it. |
#4
|
||||
|
||||
Where is that external script located? Could you do var_dump(VB_PATH)?
|
#5
|
|||
|
|||
the extrenal script is located at the base dir same dir where core.
var dump output is Code:
string(31) "/home/user/public_html/_vb5" --------------- Added [DATE]1472926519[/DATE] at [TIME]1472926519[/TIME] --------------- Issue was that I defined VB_PATH and is messed up something inside. wish they had documentary so I could actually know what I can and cannot do. |
#6
|
||||
|
||||
So you got it?
I use this code if the external login code is inside the forum directory. Code:
<?php define('CSRF_PROTECTION', false); require_once(__DIR__ . '/includes/vb5/autoloader.php'); vB5_Autoloader::register(__DIR__); vB5_Frontend_Application::init('config.php'); echo $vbulletin->userinfo['username']; |
Благодарность от: | ||
MarkFL |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|