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
Can't add folder and contents to database
#1
I am trying to add a subfolder in users called downloads, which contains two files. I've altered line 2 of the z_us_root.php file to show the following:

$path=['','users/','usersc/','/users/downloads/'];

This actually does result in the pages showing up in the page manager, but altering permissions seems to not have any effect. The page still continues to present the message:

"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."

Any ideas on how to fix?
  Reply
#2
In the upper right corner click the gear then go to admin dashboard.

There are 4 panels on the top. Click the third one. Opening it will call all those pages into the database so you can set the permissions for them. Even if you don't set the permissions, the error will go away.
  Reply
#3
Yeah that's the weird part. I've already been into that page and can see that the filepaths are being recognised, but when I try to access I get the error "You must go into the Admin Panel and click the Manage Pages..."
  Reply
#4
Oh, I took another look and you are missing your final " in the array.
  Reply
#5
Yeah I am, Thanks!
  Reply
#6
Now I realise I grabbed that line from here:

https://userspice.com/monitoring-additional-folders/

Also all of a sudden I am locked out of anything in the users folder. Can't work out what's causing that. I've tried a number of combinations for line 2 but can't get past the prompt.

http://pastebin.com/KvDFCq5R
  Reply
#7
Ok, so I came across something I've never noticed before. You can do mydomain.com/downloads but not mydomain.com/users/downloads (without writing an additional function. I'll have to work on that.

In the mean time, if you want mydomain.com/downloads to be monitored, just change line 2 of your z_us_root to
Code:
$path=['downloads/','','users/','usersc/'];

I'll work on a fix
  Reply
#8
Actually, I take that back. Your problem was that you had a slash before users. It should be
$path=['users/downloads/','','users/','usersc/'];

Let me know if that works.
  Reply
#9
Not sure how this happened, but when I went to look at the mysql pages table, there were only three entries in there, adding pages manually seems to bring them back.
  Reply


Forum Jump:


Users browsing this thread: 5 Guest(s)