The following warnings occurred: | ||||||||||||
Warning [2] Undefined variable $unreadreports - Line: 26 - File: global.php(961) : eval()'d code PHP 8.1.2-1ubuntu2.14 (Linux)
|
RESOLVED: I think I broke users/admin_pages.php - 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: RESOLVED: I think I broke users/admin_pages.php (/showthread.php?tid=980) |
RESOLVED: I think I broke users/admin_pages.php - matthewra - 02-26-2018 firt it started giving no response/e blank page now it gives "500 Internal Server Error" other admin pages ok Any idea how to debug? I am not sure if I tried to run "backup proect" bfore issue - backup does no apparent action there is no error_log file created ============== Internal Server Error The server encountered an internal error or misconfiguration and was unable to complete your request. Please contact the server administrator at webmaster@aamdmel.com to inform them of the time this error occurred, and the actions you performed just before this error. More information about this error may be available in the server error log. Additionally, a 500 Internal Server Error error was encountered while trying to use an ErrorDocument to handle the request. RESOLVED: I think I broke users/admin_pages.php - matthewra - 02-26-2018 ah, so there is an error_log in the /users/ folder - 40 MB! RESOLVED: I think I broke users/admin_pages.php - matthewra - 02-26-2018 RESOLVED I think z_us_root.php somehow got deleted error_log - about a million copies of: [26-Feb-2018 21:26:22 Africa/Cairo] PHP Warning: feof() expects parameter 1 to be resource, boolean given in /home/uykg22pvt0en/public_html/users/admin_pagesmk1.php on line 32 [26-Feb-2018 21:26:22 Africa/Cairo] PHP Warning: fgets() expects parameter 1 to be resource, boolean given in /home/uykg22pvt0en/public_html/users/admin_pagesmk1.php on line 33 so issue is in $file = fopen($abs_us_root.$us_url_root."z_us_root.php","r"); while(!feof($file)){ $currentLine=str_replace(" ", "", fgets($file)); if (substr($currentLine,0,5)=='$path'){ //echo $currentLine; //if here, then it found the line starting with $path so break to preserve $currentLine value break; } } |