The following warnings occurred: | ||||||||||||
Warning [2] Undefined variable $unreadreports - Line: 26 - File: global.php(961) : eval()'d code PHP 8.2.25 (Linux)
|
Can't add pages to database-HELP!!! - 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: Can't add pages to database-HELP!!! (/showthread.php?tid=184) |
Can't add pages to database-HELP!!! - Mekaboo - 07-14-2016 I have an issue, I can't get the pages to open. I thought I did everything correctly but I still get this error:You must go into the Admin Panel and click the Manage Pages button to add this page to the database. Doing so will make this error go away.- Do I go into my XXAmp server and change something. I want to access the pages before I place them in with the rest of the site. PLEASE HELP Can't add pages to database-HELP!!! - mudmin - 07-14-2016 Sorry for the confusion. Every new page you create needs to be added to the database so you can set proper permissions for it. To do that, go to the userspice admin panel and where it says you have xx pages manage them, click the manage them. This will automatically search your folders for new pages and add them to your database. From there, you can select which user groups can access that page. Can't add pages to database-HELP!!! - mudmin - 07-14-2016 Ooooh. If you want to make them available only to you, then make them admin only. Or make another access level and add yourself to it. A third option is to comment out the line Code: <?php if (!securePage($_SERVER['PHP_SELF'])){die();} ?> Any of those three things will let you get around the blocks. Can't add pages to database-HELP!!! - Mekaboo - 07-14-2016 Thank you so much!! I took the third option and it worked fine Being that Im already using Bootstrap I can take code from somewhere else for the profile page and switch it out in place of the default page? Can't add pages to database-HELP!!! - mudmin - 07-17-2016 Absolutely. So are you saying that you want it to do something other than die()? Can't add pages to database-HELP!!! - mudmin - 07-17-2016 It would be something like Code: <?php if (!securePage($_SERVER['PHP_SELF'])){ Redirect::to('http://google.com');} ?> Can't add pages to database-HELP!!! - Mekaboo - 07-17-2016 Got it, thank ya!!! |