#3796 - Trying to use the upgrade system it falls over
| Identifier | #3796 |
|---|---|
| Issue type | Feature request or suggestion |
| Title | Trying to use the upgrade system it falls over |
| Status | Closed (no changes needed) |
| Handling member | Chris Graham |
| Addon | installer |
| Description | Trying to use the upgrade system it falls over |
| Steps to reproduce | Stack trace:
File -> /var/www/vhosts/crocodileproductions.co.uk/hillsideschool/sources/global.php(267) : eval()'d code Line -> 964 Function -> critical_error Args -> a:2:{i:0;s:9:"EMERGENCY";i:1;s:398:"PHP WARNING [2] is_file() [<a href='http://php.net/manual/en/function.is-file.php'>function.is-file.php</a>]: open_basedir restriction in effect. File(themes/ftp6O3uTK/javascript_custom/validation.js) is not within the allowed path(s): (:/tmp/) in sources/global.php(267) : eval()'d code on line 830 (version: 10.0.13, PHP version: 7.1.27, URL: /upgrader.php?type=browse)";}
File -> /var/www/vhosts/crocodileproductions.co.uk/hillsideschool/sources/global.php(267) : eval()'d code Line -> 1011 Function -> _fatal_exit Args -> a:1:{i:0;s:371:"PHP WARNING [2] is_file() [<a href='http://php.net/manual/en/function.is-file.php'>function.is-file.php</a>]: open_basedir restriction in effect. File(themes/ftp6O3uTK/javascript_custom/validation.js) is not within the allowed path(s): (:/tmp/) in sources/global.php(267) : eval()'d code on line 830 (version: 10.0.13, PHP version: 7.1.27, URL: /upgrader.php?type=browse)";}
File -> /var/www/vhosts/crocodileproductions.co.uk/hillsideschool/sources/global.php(267) : eval()'d code Line -> 286 Function -> fatal_exit Args -> a:1:{i:0;s:299:"PHP WARNING [2] is_file() [<a href='http://php.net/manual/en/function.is-file.php'>function.is-file.php</a>]: open_basedir restriction in effect. File(themes/ftp6O3uTK/javascript_custom/validation.js) is not within the allowed path(s): (:/tmp/) in sources/global.php(267) : eval()'d code on line 830";}
File -> /var/www/vhosts/crocodileproductions.co.uk/hillsideschool/sources/global.php(267) : eval()'d code Line -> 880 Function -> _composr_error_handler Args -> a:6:{i:0;s:7:"warning";i:1;i:2;i:2;s:228:"is_file() [<a href='http://php.net/manual/en/function.is-file.php'>function.is-file.php</a>]: open_basedir restriction in effect. File(themes/ftp6O3uTK/javascript_custom/validation.js) is not within the allowed path(s): (:/tmp/)";i:3;s:39:"sources/global.php(267) : eval()'d code";i:4;i:830;i:5;i:4;}
Function -> composr_error_handler Args -> array
File -> /var/www/vhosts/crocodileproductions.co.uk/hillsideschool/sources/global.php(267) : eval()'d code Line -> 830 Function -> is_file Args -> a:1:{i:0;s:106:"/var/www/vhosts/crocodileproductions.co.uk/hillsideschool/themes/ftp6O3uTK/javascript_custom/validation.js";}
File -> /var/www/vhosts/crocodileproductions.co.uk/hillsideschool/sources/global.php(267) : eval()'d code Line -> 116 Function -> find_template_place Args -> a:5:{i:0;s:10:"validation";i:1;s:0:"";i:2;s:15:"Hillside_School";i:3;s:3:".js";i:4;s:10:"javascript";}
File -> /var/www/vhosts/crocodileproductions.co.uk/hillsideschool/sources/global.php(267) : eval()'d code Line -> 497 Function -> javascript_enforce Args -> a:1:{i:0;s:10:"validation";}
File -> /var/www/vhosts/crocodileproductions.co.uk/hillsideschool/sources/global.php(267) : eval()'d code Line -> 832 Function -> erase_cached_templates Args -> a:0:{}
File -> /var/www/vhosts/crocodileproductions.co.uk/hillsideschool/sources/global.php(267) : eval()'d code Line -> 70 Function -> clear_caches_1 Args -> a:0:{}
File -> /var/www/vhosts/crocodileproductions.co.uk/hillsideschool/upgrader.php Line -> 56 Function -> upgrade_script Args -> a:0:{} |
| Funded? | No |


Comments
Somehow the server's PHP open_basedir setting is misconfigured. If you look at the error message it only is including /tmp in the open_basedir.
I'm actually surprised it didn't fail earlier in the process, because PHP scripts are getting loaded up okay, but maybe that is due to some kind of caching allowing those to load regardless of the setting of open_basedir.
Regardless, I'm 100% certain this is a server misconfiguration and not a Composr bug. Check your open_basedir setting, or ask your webhost if it's not something you've configured.