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
/printthread.php 16 require_once
Warning [2] Undefined property: MyLanguage::$archive_pages - Line: 2 - File: printthread.php(287) : eval()'d code PHP 8.2.25 (Linux)
File Line Function
/printthread.php(287) : eval()'d code 2 errorHandler->error
/printthread.php 287 eval
/printthread.php 117 printthread_multipage



UserSpice
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)

Pages: 1 2 3 4 5


us_helpers.php undefined varible - firestorm - 06-22-2017

try a different local server like mamp for windows etc, try on different php versions, 5.6 and 7 are good, download a fresh copy user spice and use a different program to unzip. the reason i suggest these things is basicly this issue hasnt been raised by anyone else so most likey is isolated at your end, mamp has its issues and unzippers do aswell so changing these thing may fix or may not but least will be on the check list you know . maybe contact your web host if you use one and see if theres something server side that could be conflicting


us_helpers.php undefined varible - jdmfarms - 06-25-2017

thanks. I let it go for now. it is only showing up on my production server, not wamp. As long as it doesn't cause fatal errors, i'll let it go and see if it works itself out through the next few patches or major release. if i begin receiving fatal errors, i'll download a fresh copy and see if that helps.


us_helpers.php undefined varible - Brandin - 06-28-2017

I'm getting this error now too on my admin_pages.php after adding two directories that are in a subfolder of usersc...hopefully this will guide is. It never happened until I moved protected files to this subfolder of /templates/ and included it for page access...


us_helpers.php undefined varible - mudmin - 06-29-2017

I'm keeping an eye on this too. let me know what you all figure out if you beat me to it.



us_helpers.php undefined varible - jdmfarms - 06-29-2017

Based on Brandin's input, I updated my z_us_root.php file to remove my protected directories. still getting the error. now I have to update all my private pages again. Does this not get recorded in the database? I would imagine the privacy settings would be stored in a table.


us_helpers.php undefined varible - Brandin - 06-29-2017

The functions remove files that are no longer there/no longer protected when you reload the page...


us_helpers.php undefined varible - jdmfarms - 06-29-2017

oh. interesting.


us_helpers.php undefined varible - Brandin - 06-29-2017

@jdmfarms - do you have any directories listed in z_us_root.php that has NO files in it (or the directory does not exist)?

It appears as if when you have a directory listed here that has no files in it to find, it calls for an undefined $row in this function.


us_helpers.php undefined varible - jdmfarms - 06-30-2017

Yes, that was it. I had two directories listed that I have on WAMP but not on production.

I've been wondering if the z_us_root could have a scandir function that defines the directory variable for us. I'm sure you guys already thought of that


us_helpers.php undefined varible - Brandin - 08-27-2017

@Mudmin

With this one - could we use the function from the backup script to define the directories in the US directory? Thoughts?