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
us_helpers.php undefined varible
#21
I appreciate the help. I just loged in. I checked the log every click of the way to the admin_pages.php. It threw an error there.
  Reply
#22
here is the function on that page

//Get array of paths, with quotes removed
$lineLength=strlen($currentLine);
$pathString=str_replace("'","",substr($currentLine,7,$lineLength-11));
$paths=explode(',',$pathString);

$pages=[];

//Get list of php files for each $path
foreach ($paths as $path){
$rows=getPathPhpFiles($abs_us_root,$us_url_root,$path);
foreach ((array)$rows as $row){
$pages[]=$row;
}
}
  Reply
#23
Okay, replace your us_helpers file with this, the original:
https://hastebin.com/oposugawuc.xml

And admin_pages with this, the original:
https://hastebin.com/omiwerocut.xml

Refresh and see if it produces an error...if it does we got some work to do lol
  Reply
#24
Yes, same error on line 978 now. Also, it throws a series of numbers in the background of the page behind and below the nav.

https://hastebin.com/izoyasumoc.vbs
  Reply
#25
Have you replaced admin_pages with a custom in usersc/? If so, did you replace this file, or only the one in users/?

Can you post line 978...I don't even have this line in my us_helpers...so I am not sure what is happening now.

@FirstStorm, thoughts?
  Reply
#26
I see what happened. it copied the line numbers from haste. i'm updating and trying again. sorry.
  Reply
#27
Ok, back to same old 169.
  Reply
#28
Ok guys, thank you for the help tonight. Yea, bed time here. I just clicked on all admin pages and checked the log all the way. It appears to only be affected by the admin_pages.php file. If that is all and the page is working, I can live with it.
  Reply
#29
try going into manage pages select the admin_pages.php and see if an admin and or user is assigned to the page and also if its public or private, set it private and with an admin added then check the logs, permissions can be quite problematic in many apps
  Reply
#30
unfortunately that did not work either. it was set correctly but I made it public and stripped the admin from it. tested and then converted back to private w/ admin associated. still same error. the page is working though, so I cant imagine what is actually going wrong.

thank you.
  Reply


Forum Jump:


Users browsing this thread: 6 Guest(s)