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
verify.php bug and possible solution.
#6
Basically the problem is that when you have a relative path (users/verify.php or just verify.php) then it is relative to your current directory. If you are on a page in the users/ directory then you need to redirect to verify.php but if you are on a page in the root directory (or some other application directory that your developer-who-is-using-US has created for their app) then you need to redirect to users/verify.php (or ../users/verify.php or ../../users/verify.php or etc.).

The right solution is to change the relative redirect into an absolute redirect:

Code:
Redirect::to($us_url_root.'users/verify.php');

but until that can be done across the board in all US scripts (and probably in applications that other people have developed and have used the Redirect::to() call and used relative paths as an argument) then a change/hack such as I have suggested in the link above will get past most of the pain.
  Reply


Messages In This Thread
verify.php bug and possible solution. - by mudmin - 09-06-2016, 01:51 PM
verify.php bug and possible solution. - by mudmin - 09-07-2016, 10:28 PM
verify.php bug and possible solution. - by plb - 09-08-2016, 05:04 AM
verify.php bug and possible solution. - by plb - 09-08-2016, 05:56 AM
verify.php bug and possible solution. - by plb - 09-09-2016, 06:44 AM
verify.php bug and possible solution. - by brian - 09-09-2016, 12:37 PM
verify.php bug and possible solution. - by brian - 09-09-2016, 12:40 PM
verify.php bug and possible solution. - by brian - 09-09-2016, 04:18 PM
verify.php bug and possible solution. - by plb - 09-11-2016, 09:22 AM
verify.php bug and possible solution. - by mudmin - 09-11-2016, 12:46 PM
verify.php bug and possible solution. - by plb - 09-11-2016, 03:36 PM
verify.php bug and possible solution. - by mudmin - 09-11-2016, 06:31 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)