Yes, I normally had a add-on that backed up nightly. But obviously it does not work with XF2.0 - I know I should have backed it up manually.
Never had an issue.
With that being said, I will write a cron script to do this from now on.
I figured this out from a few posts here.
$fileDir = '/hackersadvantage/forums';
require($fileDir . '/src/XF.php');
$app = \XF::setupApp('XF\App');
$ip = $app->request->getIp();
$loginService = $app->service('XF:User\Login', $username, $ip);
I am upgrading some php XF1.5 to 2.0
I need to authenticate a user. In 1.5 I used the AutoLoader to access Xenforo_Application object which gave me access to the DB.
Does anyone know a easy way to authenticate a user in XF2.0?
$startTime = microtime(true);
I'm in a real bind here, I have hundreds of customers that can't log into my 3rd party app because somehow you removed access to the old authentication method in /library/Autoloader
I dont have a auto backup program for the db, so I am stuck. Is there a way to brute force the version back...
Ok, found out more info. I was using some legacy xenfo code my php files were calling for external c++ app authentication in Library/Xenforo - you guys did something that it redirects it to a /install folder.
require($fileDir . '/library/XenForo/Autoloader.php')...
You guys must have changed some stuff in User Upgrades and removed some of the finders.
[root@hackersadvantage forums]# cat php_errors.log
[19-Dec-2017 17:38:59 UTC] PHP Fatal error: Class 'XF\Mvc\Entity\Finder' not found in /hackersadvantage/forums/src/XF/Finder/User.php on line 7...
How the heck do I downgrade? I re-uploaded 2.0.0 and its saying "An upgrade was found for a version of XenForo that is newer than the uploaded files. Please reupload all of the files for the new version and reload this page."
My custom app stopped working after 2.0.1, so I need to roll back...
EDIT: Figured it out, your site must use https!!
I can not enter any credit card data in the stripe user account upgrade payment profile. I have tried chrome and IE.
I have added:
$config['enableLivePayments'] = true;
In the config.php
I have made sure I added the callback...
Yeah I was looking at the Attachments, that is how I got it to work somewhat now.
The problem its, its saving the file like a attachment. Its not displaying a new page.
Here is my controller code: