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
#11
I'm just running the app as designed. I only mod'd the nav. The log pulled this off the us_helpers.php file. However, there are more errors now. All from yesterday though.

https://hastebin.com/utemepixux.pas
  Reply
#12
what did you do in the nav as thats called on every page too so may well be there, I'm not seeing this error on mamp pro or shared cpanel hosting, 4 installs with error reporting on
  Reply
#13
That's very weird...I would download the master and replace it so you have the default file again...something got messed up somehow and I'm not sure how...Here is the file:
https://hastebin.com/oposugawuc.xml
  Reply
#14
Yes - I also checked my error logs to see if there was something, and there is nothing - so must be a function being called that doesn't have the right parameters so $row can't be defined - or something got changed.
  Reply
#15
the function is called in admin_pages.php

`//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;
}
}'

if that helps in tracking it down
  Reply
#16
I only added a few more links/drop-downs and moved some things around. However, I am wondering if I properly updated my download version.

I originally downloaded the file from the home page and began using it. WOrked fine except the facebook api. I got that working but then it would drop the session if I nav'd over to a page outside the user folder. Noticed some errors. I then realized I was operating 4.7. I updated to 4.8. Still no bueno. I decided to run all the updates from 4.0 to 4.8. Facebook login works now and fewer errors but still have those couple issues.
  Reply
#17
Did you make any changes to header.php?

Can you post your nav file here?

Are you actually seeing the errors on any pages, or just in your error log? If so, which pages? All? If only specific ones, can you post them?

Thank you!
  Reply
#18
Firestorm,

I did notice today when I was in WAMP adding more pages in the admin panel the warming came up in the browser. However, each time I refreshed to add more php files to the database, it threw the warning differently. Large warning profile, partial profile, then no profile.
  Reply
#19
No changes to the header....Header: https://hastebin.com/bubeducute.xml

Nav: https://hastebin.com/ceqimoniqu.xml

Not seeing the errors on production server. Only intermittently on WAMP and in my production server error log
  Reply
#20
I'm out of thoughts...if it is in fact the pages function that is called on admin_pages and that is the only file I can think of - go to the page and see if a new error is produced in the error log...other than that I can only suggest to go to each page you can and see if it produces an error in the error log so we can find the problem file...it's not going to produce an error from us_helpers if you don't go to a page, because the server isn't going to call iteslf, make sense?

Best of luck and hopefully we can figure this out for you.
  Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)