The following warnings occurred: | ||||||||||||
Warning [2] Undefined variable $unreadreports - Line: 26 - File: global.php(961) : eval()'d code PHP 8.2.25 (Linux)
|
PHP Fatal error: - 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: PHP Fatal error: (/showthread.php?tid=960) |
PHP Fatal error: - AnasAZ - 02-18-2018 Hi, I have the latest version (4.3.13). I have US installed on Redhat. when I do php any PHP file, it return something like this: <pre> Code: PHP Fatal error: require_once(): Failed opening required 'users/helpers/helpers.php' (include_path='.:/usr/share/pear:/usr/share/php') in /var/www/html/portal/users/init.php on line 23 require_once $abs_us_root.$us_url_root.'users/helpers/helpers.php'; when I run the following commands `echo "<pre>"; var_dump($abs_us_root); var_dump($us_url_root); var_dump($abs_us_root.$us_url_root.'users/includes/header.php'); echo "</pre>"; I get the following output: string(13) "/var/www/html" string(8) "/portal/" string(46) "/var/www/html/portal/users/includes/header.php" Also, I dont know why it complains about (include_path='.:/usr/share/pear:/usr/share/php')? I have no pear installed and /usr/share/php folder is empty! I installed Apache,PHP, and MySQL using default yum repositories. PHP Fatal error: - mudmin - 02-19-2018 Hmm. I don't know. One workaround is to go into init.php and just before the helpers line define your absolute root and your url root manually until they work. On windows my abs/us variables are string(15) "C:/xampp/htdocs" string(9) "/testing/" On centos they are string(22) "/home/myfolder/public_html" string(1) "/" Also, how did you get to 4.3.13. Did you upgrade from earlier versions? PHP Fatal error: - AnasAZ - 02-19-2018 I modified $abs_us_root & $us_url_root to point to the folders as follow: <pre> Code: $abs_us_root="/var/www/html"; $us_url_root="/portal/"; and it worked fine! Thanks! BTW, I was upgrading since 3.9 (as I remember) PHP Fatal error: - mudmin - 02-19-2018 Yeah. I try not to break anything but there are occasional configurations where that needs to be fiddled with. Compared to the old days, it works like magic in 99+{3bc1fe685386cc4c3ab89a3f76566d8931e181ad17f08aed9ad73b30bf28114d} of cases. Glad it's working! |