-
Notifications
You must be signed in to change notification settings - Fork 906
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PHP warning #58
Comments
They must have moved the file or something, I just tried myself and got the same error, now I'm basically in a standstill until they fix it |
same |
The file its failing to get is essential, it basically goes in protected/config/config.php without it the site can't operate. Does anyone have a config on hand (blank out database passwords and other stuff ofc) to use temporarily? |
Nevermind I have a temporary fix, we don't even need the configuration. go to line 51 where it says $defaultComponents = json_decode(file_get_contents("http://openbay.isohunt.to/config.json"), true); // $defaultComponents = json_decode(file_get_contents("http://openbay.isohunt.to/config.json"), true); then go through the installer as normal. |
I just opened a pull request to comment the line out for now, probably not worthy of a pull request but ether way. |
@tranquilitycal The fix you suggested hasn't worked for me. The variable $defaultComponents are used elsewhere and so quite rightly, an undefined variable error is thrown. |
How would mine work then? I didn't recieve a undefined variable. Are you using your own database and sphinx when going through the installer? |
I will run again in a few hours to confirm. I may have missed out Sphinx. |
I'm currently working on getting sphinx working at the current moment but that shouldn't stop you from being able to say your using your own even temporarily for now. |
Hi there, file_get_contents(http://openbay.isohunt.to/config.json): failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found How can we fix that? How can we help the Torrent Word? Please, help me here or at kubiakingg@gmail.com |
I tried on https://archive.org/,and they have the file. but its take more time to get http://isohunt.to/openbay/config.json |
I get this warning when trying to install
PHP warning
file_get_contents(http://openbay.isohunt.to/config.json): failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found
/home/raider/protected/installer/controllers/DefaultController.php(51)
39 if (!isset($settings['sphinxOurConfig']))
40 {
41 $dbParameters = array('sphinxHost', 'sphinxPort');
42 foreach($dbParameters as $dbParameter)
43 {
44 if (!isset($settings[$dbParameter]) || !$settings[$dbParameter])
45 $errors[$dbParameter] = true;
46 }
47 }
48
49 if (count($errors) === 0) {
50 // Receive default remote settings
51 $defaultComponents = json_decode(file_get_contents("http://openbay.isohunt.to/config.json"), true);
52 $defaultComponents = $defaultComponents['components'];
53
54 // Build params
55 $params = array(
56 'applicationName' => CHtml::encode($settings['name']),
57 'db' => array(
58 'connectionString' =>
59 'mysql:host=' . (isset($settings['dbOurConfig']) ? $defaultComponents['db']['host'] : $settings['dbHost']) .
60 ';port=' . (isset($settings['dbOurConfig']) ? $defaultComponents['db']['port'] : $settings['dbPort']) .
61 ';dbname=' . (isset($settings['dbOurConfig']) ? $defaultComponents['db']['name'] : $settings['dbName']),
62 'username' => isset($settings['dbOurConfig']) ? $defaultComponents['db']['user'] : $settings['dbUser'],
63 'password' => isset($settings['dbOurConfig']) ? $defaultComponents['db']['password'] : $settings['dbPassword']
Stack Trace
#0
– /home/raider/protected/installer/controllers/DefaultController.php(51): file_get_contents("http://openbay.isohunt.to/config.json")
46 }
47 }
48
49 if (count($errors) === 0) {
50 // Receive default remote settings
51 $defaultComponents = json_decode(file_get_contents("http://openbay.isohunt.to/config.json"), true);
52 $defaultComponents = $defaultComponents['components'];
53
54 // Build params
55 $params = array(
56 'applicationName' => CHtml::encode($settings['name']),
#1
Browse not working, #2
Fixed error in render list #3
server requirements #4
Array to string conversion #5
Please help me to deploy it with Xampp!!! #6
fixed 'brining' to 'bringing' #7
Fixed potential security issues #8
– /home/raider/public_html/index.php(13): CApplication->run()
08 $yii = DIR . '/../protected/vendor/yiisoft/yii/framework/' . (YII_DEBUG ? 'yii.php' : 'yiilite.php');
09 require_once (DIR . '/../protected/vendor/autoload.php');
10 require_once ($yii);
11
12 $config =(is_file('installer.php')) ? 'installer.php' : DIR . '/../protected/config/config.php';
13 Yii::createWebApplication($config)->run();
The text was updated successfully, but these errors were encountered: