Skip to content
This repository has been archived by the owner on Dec 14, 2023. It is now read-only.

Settings.php error on domain name change #693

Open
musicmunky opened this issue Mar 29, 2017 · 2 comments
Open

Settings.php error on domain name change #693

musicmunky opened this issue Mar 29, 2017 · 2 comments
Labels

Comments

@musicmunky
Copy link

musicmunky commented Mar 29, 2017

If the domain name of the server is changed after the initial ICEcoder setup you will no longer be able to access the application. It fails with the following error sent to the log:

PHP Warning:  include(/var/www/html/icecoder/lib/config-domain_com.php): failed to open stream: No such file or directory in /var/www/html/icecoder/lib/settings.php on line 43
PHP Warning:  include(): Failed opening '/var/www/html/icecoder/lib/config-domain_com.php' for inclusion (include_path='.:/usr/share/pear:/usr/share/php') in /var/www/html/icecoder/lib/settings.php on line 43
PHP Notice:  Undefined variable: ICEcoderUserSettings in /var/www/html/icecoder/lib/settings.php on line 46
PHP Notice:  Undefined index: configCreateDate in /var/www/html/icecoder/lib/settings.php on line 57
PHP Notice:  Undefined index: versionNo in /var/www/html/icecoder/lib/settings.php on line 77  

I was able to get around it after looking at line 43 in settings.php - if you set the "enableRegistration" parameter in config___settings.php back to "true".

To recreate the error, setup a new server and load ICEcoder like normal, then access it via the IP address of the server and unlock the app via that link. Then add a domain name or change the IP address and attempt to load the app again. It should fail with the error above.

Might be worthwhile to have the script check for the existence of the file and recreate it rather than fail with an error.

Note: I am using the most current version of ICEcoder, cloned from GitHub March 29, 2017.

@prolongExistence
Copy link

I'm having the same issue however the only way I can seem to fix it is to delete ICEcoder & reinstall. Every time my local IP changes (which is basically every time I login) I get the error that settings.php could not be found. I noticed that my user config file will get changed to a .old extension and will simply contain 'no data' and the config___settings.php will also get changed to 'no data'

@mattpass mattpass added the Bug label Apr 20, 2017
@mattpass
Copy link
Collaborator

That definitely sounds like a tweak that could be made, thanks for letting me know.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

3 participants