The following warnings occurred: | ||||||||||||
Warning [2] Undefined variable $unreadreports - Line: 26 - File: global.php(961) : eval()'d code PHP 8.2.25 (Linux)
|
Mail 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: Mail error (/showthread.php?tid=852) |
Mail error - MHALL1 - 11-25-2017 Trying to call on the email function and hitting error: PHP Fatal error: require(): Failed opening required 'vendor/autoload.php' (include_path='.:/usr/share/pear:/usr/share/php') in /var/www/html/users/helpers/helpers.php on line 128 I thought the path should be ../vendor/autoload.php but tried that and remained the same. Tried on 4.3.2 & 4.3.4 // Slight update with a bit of context, calling email function from a file that sits in a folder that is different to users but sits at the same level ( has both helpers & init included). Email test page works normally. :\ Mail error - MHALL1 - 11-26-2017 Amended helpers/helpers.php to the following and now working: function email($to,$subject,$body,$attachment=false){ $abs_us_root=$_SERVER['DOCUMENT_ROOT']; require $abs_us_root.'/users/vendor/autoload.php'; Mail error - mudmin - 11-26-2017 Thanks for this. I'm sorry for the slow response. I was on vacation. I'm going to look for other includes that are in the helper files and add that as well. Mail error - Brandin - 11-26-2017 I believe I put this in the to-do list previously, identified it as a problem from my project. Fails outside of the users directory. Mail error - mudmin - 11-27-2017 Dang. I just pushed before seeing this. We have a fix for it. I'll bump it up the todo list. |