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 - 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: us_helpers.php undefined varible (/showthread.php?tid=607) |
us_helpers.php undefined varible - jdmfarms - 06-21-2017 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. us_helpers.php undefined varible - jdmfarms - 06-21-2017 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; } } us_helpers.php undefined varible - Brandin - 06-21-2017 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 us_helpers.php undefined varible - jdmfarms - 06-21-2017 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 us_helpers.php undefined varible - Brandin - 06-21-2017 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? us_helpers.php undefined varible - jdmfarms - 06-21-2017 I see what happened. it copied the line numbers from haste. i'm updating and trying again. sorry. us_helpers.php undefined varible - jdmfarms - 06-21-2017 Ok, back to same old 169. us_helpers.php undefined varible - jdmfarms - 06-21-2017 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. us_helpers.php undefined varible - firestorm - 06-21-2017 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 us_helpers.php undefined varible - jdmfarms - 06-22-2017 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. |