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
Page Creation
#1
So general question about page creation, or possibly a bug. My app has a web root ("/") and I installed userspice to the web root where the majority of the files are: /user, /usersc, etc. So I've created a folder called /apps, then /apps/core, /apps/core/message, and inside /apps/core/message there's index.php. So I have my header code:

<pre>
Code:
//UserSpice Includes
require_once '../../../users/init.php';
require_once $abs_us_root.$us_url_root.'users/includes/header.php';
//require_once $abs_us_root.$us_url_root.'users/includes/navigation.php';
if (!securePage($_SERVER['PHP_SELF'])){die();}
</pre>


Upon visiting the page I get the normal error to visit Manage Pages as an admin so the page can be managed. However, I visit Manage Pages and /apps/core/message/index.php doesn't exist, and never gets added. I can manually add it to the database table "pages" and it works fine, until I visit Manage Pages again and the entry gets deleted out of the database.

Is this expected behavior? Should all new pages have to be either in the web root, or nested in /users/?

Thanks
  Reply


Messages In This Thread
Page Creation - by corey_hitt@multiverse.software - 09-06-2017, 02:45 PM
Page Creation - by mudmin - 09-06-2017, 02:55 PM
Page Creation - by corey_hitt@multiverse.software - 09-06-2017, 04:05 PM
Page Creation - by mudmin - 09-06-2017, 04:29 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)