Error with Opencart HTTP 500

Website URL

https://androidheadunit.co.uk/

Error Message

**Warning**: is_file(): open_basedir restriction in effect. File(/home/vol14_6/infinityfree.com/if0_36928445/htdocs/ocartdata/storage/vendor/aws/aws-sdk-php/src/functions.php) is not within the allowed path(s): (/php_sessions:/tmp:..:/var/www/errors:/home/vol14_6/infinityfree.com/if0_36928445/androidheadunit.co.uk/htdocs) in **/home/vol14_6/infinityfree.com/if0_36928445/androidheadunit.co.uk/htdocs/system/vendor.php** on line **11**

**Warning**: is_file(): open_basedir restriction in effect. File(/home/vol14_6/infinityfree.com/if0_36928445/htdocs/ocartdata/storage/vendor/guzzlehttp/guzzle/src/functions_include.php) is not within the allowed path(s): (/php_sessions:/tmp:..:/var/www/errors:/home/vol14_6/infinityfree.com/if0_36928445/androidheadunit.co.uk/htdocs) in **/home/vol14_6/infinityfree.com/if0_36928445/androidheadunit.co.uk/htdocs/system/vendor.php** on line **17**

**Warning**: is_file(): open_basedir restriction in effect. File(/home/vol14_6/infinityfree.com/if0_36928445/htdocs/ocartdata/storage/vendor/mtdowling/jmespath.php/src/JmesPath.php) is not within the allowed path(s): (/php_sessions:/tmp:..:/var/www/errors:/home/vol14_6/infinityfree.com/if0_36928445/androidheadunit.co.uk/htdocs) in **/home/vol14_6/infinityfree.com/if0_36928445/androidheadunit.co.uk/htdocs/system/vendor.php** on line **29**

**Warning**: is_file(): open_basedir restriction in effect. File(/home/vol14_6/infinityfree.com/if0_36928445/htdocs/ocartdata/storage/vendor/ralouphie/getallheaders/src/getallheaders.php) is not within the allowed path(s): (/php_sessions:/tmp:..:/var/www/errors:/home/vol14_6/infinityfree.com/if0_36928445/androidheadunit.co.uk/htdocs) in **/home/vol14_6/infinityfree.com/if0_36928445/androidheadunit.co.uk/htdocs/system/vendor.php** on line **43**

**Warning**: is_file(): open_basedir restriction in effect. File(/home/vol14_6/infinityfree.com/if0_36928445/htdocs/ocartdata/storage/vendor/symfony/deprecation-contracts/function.php) is not within the allowed path(s): (/php_sessions:/tmp:..:/var/www/errors:/home/vol14_6/infinityfree.com/if0_36928445/androidheadunit.co.uk/htdocs) in **/home/vol14_6/infinityfree.com/if0_36928445/androidheadunit.co.uk/htdocs/system/vendor.php** on line **51**

**Warning**: is_file(): open_basedir restriction in effect. File(/home/vol14_6/infinityfree.com/if0_36928445/htdocs/ocartdata/storage/vendor/symfony/polyfill-ctype/bootstrap.php) is not within the allowed path(s): (/php_sessions:/tmp:..:/var/www/errors:/home/vol14_6/infinityfree.com/if0_36928445/androidheadunit.co.uk/htdocs) in **/home/vol14_6/infinityfree.com/if0_36928445/androidheadunit.co.uk/htdocs/system/vendor.php** on line **57**

**Warning**: is_file(): open_basedir restriction in effect. File(/home/vol14_6/infinityfree.com/if0_36928445/htdocs/ocartdata/storage/vendor/symfony/polyfill-mbstring/bootstrap.php) is not within the allowed path(s): (/php_sessions:/tmp:..:/var/www/errors:/home/vol14_6/infinityfree.com/if0_36928445/androidheadunit.co.uk/htdocs) in **/home/vol14_6/infinityfree.com/if0_36928445/androidheadunit.co.uk/htdocs/system/vendor.php** on line **63**

**Warning**: is_file(): open_basedir restriction in effect. File(/home/vol14_6/infinityfree.com/if0_36928445/htdocs/ocartdata/storage/vendor/symfony/polyfill-php81/bootstrap.php) is not within the allowed path(s): (/php_sessions:/tmp:..:/var/www/errors:/home/vol14_6/infinityfree.com/if0_36928445/androidheadunit.co.uk/htdocs) in **/home/vol14_6/infinityfree.com/if0_36928445/androidheadunit.co.uk/htdocs/system/vendor.php** on line **69**

**Warning**: is_file(): open_basedir restriction in effect. File(/home/vol14_6/infinityfree.com/if0_36928445/htdocs/ocartdata/storage/vendor/twig/twig/src/Resources/core.php) is not within the allowed path(s): (/php_sessions:/tmp:..:/var/www/errors:/home/vol14_6/infinityfree.com/if0_36928445/androidheadunit.co.uk/htdocs) in **/home/vol14_6/infinityfree.com/if0_36928445/androidheadunit.co.uk/htdocs/system/vendor.php** on line **75**

**Warning**: is_file(): open_basedir restriction in effect. File(/home/vol14_6/infinityfree.com/if0_36928445/htdocs/ocartdata/storage/vendor/twig/twig/src/Resources/debug.php) is not within the allowed path(s): (/php_sessions:/tmp:..:/var/www/errors:/home/vol14_6/infinityfree.com/if0_36928445/androidheadunit.co.uk/htdocs) in **/home/vol14_6/infinityfree.com/if0_36928445/androidheadunit.co.uk/htdocs/system/vendor.php** on line **78**

**Warning**: is_file(): open_basedir restriction in effect. File(/home/vol14_6/infinityfree.com/if0_36928445/htdocs/ocartdata/storage/vendor/twig/twig/src/Resources/escaper.php) is not within the allowed path(s): (/php_sessions:/tmp:..:/var/www/errors:/home/vol14_6/infinityfree.com/if0_36928445/androidheadunit.co.uk/htdocs) in **/home/vol14_6/infinityfree.com/if0_36928445/androidheadunit.co.uk/htdocs/system/vendor.php** on line **81**

**Warning**: is_file(): open_basedir restriction in effect. File(/home/vol14_6/infinityfree.com/if0_36928445/htdocs/ocartdata/storage/vendor/twig/twig/src/Resources/string_loader.php) is not within the allowed path(s): (/php_sessions:/tmp:..:/var/www/errors:/home/vol14_6/infinityfree.com/if0_36928445/androidheadunit.co.uk/htdocs) in **/home/vol14_6/infinityfree.com/if0_36928445/androidheadunit.co.uk/htdocs/system/vendor.php** on line **84**

**Warning**: is_file(): open_basedir restriction in effect. File(/home/vol14_6/infinityfree.com/if0_36928445/htdocs/ocartdata/storage/logs/error.log) is not within the allowed path(s): (/php_sessions:/tmp:..:/var/www/errors:/home/vol14_6/infinityfree.com/if0_36928445/androidheadunit.co.uk/htdocs) in **/home/vol14_6/infinityfree.com/if0_36928445/androidheadunit.co.uk/htdocs/system/library/log.php** on line **29**

**Warning**: fopen(): open_basedir restriction in effect. File(/home/vol14_6/infinityfree.com/if0_36928445/htdocs/ocartdata/storage/logs/error.log) is not within the allowed path(s): (/php_sessions:/tmp:..:/var/www/errors:/home/vol14_6/infinityfree.com/if0_36928445/androidheadunit.co.uk/htdocs) in **/home/vol14_6/infinityfree.com/if0_36928445/androidheadunit.co.uk/htdocs/system/library/log.php** on line **30**

**Warning**: fopen(/home/vol14_6/infinityfree.com/if0_36928445/htdocs/ocartdata/storage/logs/error.log): Failed to open stream: Operation not permitted in **/home/vol14_6/infinityfree.com/if0_36928445/androidheadunit.co.uk/htdocs/system/library/log.php** on line **30**

**Fatal error**: Uncaught TypeError: fclose(): Argument #1 ($stream) must be of type resource, false given in /home/vol14_6/infinityfree.com/if0_36928445/androidheadunit.co.uk/htdocs/system/library/log.php:32 Stack trace: #0 /home/vol14_6/infinityfree.com/if0_36928445/androidheadunit.co.uk/htdocs/system/library/log.php(32): fclose(false) #1 /home/vol14_6/infinityfree.com/if0_36928445/androidheadunit.co.uk/htdocs/system/framework.php(32): Opencart\\System\\Library\\Log->\__construct('error.log') #2 /home/vol14_6/infinityfree.com/if0_36928445/androidheadunit.co.uk/htdocs/index.php(20): require_once('/home/vol14_6/i...') #3 {main} thrown in **/home/vol14_6/infinityfree.com/if0_36928445/androidheadunit.co.uk/htdocs/system/library/log.php** on line **32**

Other Information

(other information and details relevant to your question)

wow thats a lot of errors… have you only just installed opencart? Might be worth uninstalling and following this guide:

9 Likes

Yeah, i followed the guide but same issue.

Looking more closely at your error, where you’ve set the directory to htdocs/ocartdata

Change it to androidheadunit.co.uk/htdocs/ocartdata

see if that works

3 Likes

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.