The following warnings occurred:
Warning [2] Undefined variable $unreadreports - Line: 26 - File: global.php(961) : eval()'d code PHP 8.2.25 (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
Problem with custom pages
#1
Hello

I tried to add a custom page to the script. So I created a customPage.php and put it into /usersc/
Then I went to the admin panel to register the page in pages and it showed up correctly.

48 usersc/customPage.php Public

However if I want to load it following error appears:

Warning: require_once(init.php): failed to open stream: No such file or directory in /Applications/XAMPP/xamppfiles/htdocs/project/usersc/customPage.php on line 25

Fatal error: require_once(): Failed opening required 'init.php' (include_path='.:/Applications/XAMPP/xamppfiles/lib/php') in /Applications/XAMPP/xamppfiles/htdocs/project/usersc/customPage.php on line 25

Tile is clearly there. Any solutions?
  Reply
#2
You have to change your init call...

It should be ../users/init.php
  Reply
#3
Ah I see. For some reason I tough this would work automatic.
Thank you!
  Reply


Forum Jump:


Users browsing this thread: 4 Guest(s)