The following warnings occurred:
Warning [2] Undefined variable $unreadreports - Line: 26 - File: global.php(961) : eval()'d code PHP 8.1.2-1ubuntu2.14 (Linux)
File Line Function
/global.php(961) : eval()'d code 26 errorHandler->error
/global.php 961 eval
/showthread.php 28 require_once





× This forum is read only. As of July 23, 2019, the UserSpice forums have been closed. To receive support, please join our Discord by clicking here. Thank you!

  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
/userc redirects not working
#1
On the Alpha 3 build I have noticed that the /userc redirects to your page, but needs the init.php to come with it in order to still function properly.

Following the example provided I moved the account.php in the /userc.

Code:
<?php require_once 'init.php'; ?>

Warning: require_once(init.php): failed to open stream: No such file or directory in MyComputer\usersc\account.php on line 21

  Reply
#2
I will definitely look into that. My question is...did you move account.php or copy account.php? The original file still needs to be there. The error makes me think you copied it, but I'm just checking!
  Reply
#3
The redirect not working is easy and simply a documentation lacking on our part. init.php always needs to be "updated" to point to the correct path, since it is considered the anchor. Once the script knows where init.php is, then it can take over and a user can use $abs_us_root and/or $us_url_root as needed.

For a file placed in usersc/ you will need to update the init.php line to read:

Code:
<?php require_once '../users/init.php'; ?>

That instructs it to step back one level (to your userspice root), then move to the users/ folder and finally find the init.php file. This should get you straightened out.
  Reply
#4
I copied account.php into the userc folder. After trying Brian's fix it worked like charm! Thank you for the quick reply.
  Reply
#5
Awesome. Thanks for posting.
  Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)