We only help with hosting issues, your issue is related to bad coding or a bad script.
Contact your script author, your developer or upgrade to Hostinger for live chat assistance.
okay well i managed to get onto filemanager on my phone, my .htcaccess file was empty for some reason so put the code back in there and I’m still getting application error. I added:
php_value display_errors 1 as well but nothing shows.
Can I please get help? That was the only file altered that caused this and now it’s back to normal it’s still giving me an error so i just don’t know what to do
Thank you! also don’t if you’ll be able to help with this my public_html folder for my other website: https://jg-ross.000webhostapp.com/ has just completely disappeared now
Warning: file_exists(): open_basedir restriction in effect. File(…/…/classes/class.user.php) is not within the allowed path(s): (/opt/awex-pages:/storage/ssd2/917/12179917) in /storage/ssd2/917/12179917/public_html/includes/config.php on line 38
Warning: file_exists(): open_basedir restriction in effect. File(…/…/…/classes/class.user.php) is not within the allowed path(s): (/opt/awex-pages:/storage/ssd2/917/12179917) in /storage/ssd2/917/12179917/public_html/includes/config.php on line 42
The code it’s referring to is:
//load classes as needed
spl_autoload_register(function ($class) {
So what happens is that if a folder is a few directories away it’ll call that code, how can I get around this error? I was not having an issue with this before the .htaccess file needed to be reset
I’ve fixed it for you. As you can observe in above quoted code, that $classpath was trying to access file outside of “public_html” which was generating open_basedir restriction error. Simple solution was to remove addtional ../../ which fixed the issue.
This is necessary for files in my admin folder, without those extra ones the files will not load.
The admin index page is in users/admin so the extra ones was so the file is able to call it if that makes sense?
Sorry but you can’t access files outside of public_html.
Whatever the path you set for defined variable should be inside public_html then only it will work.
I’m not trying access files outside public html though.
Like I was saying with my example that code is only used when a file needs to go back that amount in order access that file.
This was working yesterday so surely there’s something that can be done?