06-21-2017, 04:41 PM
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.
The following warnings occurred: | ||||||||||||
Warning [2] Undefined variable $unreadreports - Line: 26 - File: global.php(961) : eval()'d code PHP 8.2.25 (Linux)
|
us_helpers.php undefined varible
|
06-21-2017, 04:41 PM
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.
06-21-2017, 04:43 PM
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; } }
06-21-2017, 04:45 PM
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
06-21-2017, 04:51 PM
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
06-21-2017, 04:55 PM
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?
06-21-2017, 04:59 PM
I see what happened. it copied the line numbers from haste. i'm updating and trying again. sorry.
06-21-2017, 05:03 PM
Ok, back to same old 169.
06-21-2017, 05:11 PM
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.
06-21-2017, 05:48 PM
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
06-22-2017, 03:30 PM
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. |