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
/printthread.php 16 require_once



UserSpice
Problem with custom pages - Printable Version

+- UserSpice (https://userspice.com/forums)
+-- Forum: Support Center (https://userspice.com/forums/forumdisplay.php?fid=23)
+--- Forum: UserSpice 4.3 and Below (https://userspice.com/forums/forumdisplay.php?fid=26)
+--- Thread: Problem with custom pages (/showthread.php?tid=791)



Problem with custom pages - komodo - 10-13-2017

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?


Problem with custom pages - Brandin - 10-13-2017

You have to change your init call...

It should be ../users/init.php


Problem with custom pages - komodo - 10-14-2017

Ah I see. For some reason I tough this would work automatic.
Thank you!